Zio Haptic Driver + LRA Motor Qwiic Start Guide

31/01/2019

 

This post is part of our Zio Qwiic Start Guide Blog Series.

 

Table of Contents

  1. Overview
  2. Configuring your Haptic Motor Controller
  3. Connection Setup
    • Setup for Y-Axis
    • Setup for Z-Axis
  4. Testing Example Codes
    • Basic Test

 

 

Zio Qwiic Haptic Motor Controller + LRA Motor Overview

 

1.Y-Axis 

  1. Y-Axis Linear Resonance Actuator (LRA) Motor
  2. Qwiic Connectors
  3. Haptic Driver - DRV2605L
  4. INT (Interrupt) Pin
  5. I2C Pullup Resistors

 

2.Z-Axis

 

  1. Z-Axis Linear Resonance Actuator (LRA) Rectangular Motor
  2. Qwiic Connectors
  3. Haptic Driver - DRV2605L
  4. INT (Interrupt) Pin
  5. I2C Pullup Resistors

 


Configuring your Haptic Motor Controller + LRA Motor

 

 Difficulty Level: 

Zio Youngling


 

Helpful Resources:

 

This qwiic guide has a separate post on our development board guides. Check them out below:

Zuino M Uno Qwiic Start Guide
Zuino XS PsyFi32 Qwiic Start Guide


Installing Libraries

 

You need to install the following libraries to your Arduino IDE before you can start programming your Zuino board with Zio Qwiic Haptic Motor Controller + LRA Motor. 

 

Download the following libraries and save it on your local Arduino IDE libraries folder:

Adafruit DRV2605 Library


To install the libraries open your Arduino IDE, go to Sketch tab, select Include Library -> Add .Zip Library. Select the above libraries to be included on your IDE.


 

Connection Set up

 

Setup for Haptic Controller + LRA Motor (Y-Axis)

 


Setup for Haptic Controller + LRA Motor (Z-Axis)

 

 


Testing Example Codes

 

The following example codes work for both Y-Axis and Z-Axis Zio Qwiic Haptic Controller + LRA Motor as both using the same haptic driver DRV2605 and share the same I2C address. 


1.Basic test


Open your Arduino

Go to File > Examples > Adafruit DRV2605 Library > basic

 

 

Open Serial editor to view the results 

 

 

 

Got questions or suggestions? Or just want to greet us? Drop us a comment below!

Leave a Comment