Grove - Haptic Motor
Grove - Haptic motor is a grove module integrated with DRV2605L which will give your project more feelings. This motor is specially designed for various effects, such as ramping the vibration level up and down, for wearables and other IoT devices. Right now we have developed an easy-to-use library which simulate 123 kinds in total of vibrating modes and this will make your prototyping quicker. Also, you can develop more advanced functions with driver DRV2605L which will improve actuator performance in terms of acceleration consistency, start time, and break time and is accessible through a shared I2C compatible bus or PWM input signal.
Features
- More vibration effects.
- Quicken your project prototyping process.
- Easy-to-use library with 123 kinds of vibrating modes.
- Powerful driver to implanting more advanced functions.
More details about Grove modules please refer to [Grove System](https://wiki.seeedstudio.com/Grove_System/)
Specifications
Parameter | Value |
---|---|
Operating voltage | 3.3~5.0 V |
Ripples (at maximum power) | 50~100 mV |
Max power | 750 mW |
I2C speed | 100 kHz |
Vibration effects | 123 types |
Driver | DRV2605L |
Port | I2C |
Default I2C Address | 0x5A |
Platforms Supported
Arduino | Raspberry Pi | |||
---|---|---|---|---|
The platforms mentioned above as supported is/are an indication of the module's software or theoritical compatibility. We only provide software library or code examples for Arduino platform in most cases. It is not possible to provide software library / demo code for all possible MCU platforms. Hence, users have to write their own software library.
Application ideas
- Mobile phone, tablets.
- Wearable devices.
- Remote controls, touch-enabled devices.
- Industrial human-machine interfaces.
Hardware Overview
Front view:
Rear view:
Getting Started
If this is the first time you work with Arduino, we firmly recommend you to see [Getting Started with Arduino](https://wiki.seeedstudio.com/Getting_Started_with_Arduino/) before the start.
Play With Arduino
Hardware
- Step 1. Prepare the below stuffs:
Seeeduino V4.2 | Base Shield | Grove - Haptic motor |
---|---|---|
Get One Now | Get One Now | Get One Now |
- Step 2. Connect Grove - Haptic motor to port I2C of Grove-Base Shield.
- Step 3. Plug Grove - Base Shield into Seeeduino.
- Step 4. Connect Seeeduino to PC via a USB cable.
If we don't have Grove Base Shield, We also can directly connect Grove - Haptic motor to Seeeduino as below.
Seeeduino | Grove - Haptic motor |
---|---|
5V | Red |
GND | Black |
SDA | White |
SCL | Yellow |
Software
- Step 1. Download the Grove_Haptic Motor from Github.
- Step 2. Refer How to install library to install library for Arduino.
- Step 3. Copy the code into Arduino IDE and upload. If you do not know how to upload the code, please check how to upload code.
#include <drv2605.h>
DRV2605 haptic;
void setup()
{
Serial.begin(9600);
/* Software I2C = false, Verbose = true */
if (haptic.init(false, true) != 0) Serial.println("init failed!");
if (haptic.drv2605_AutoCal() != 0) Serial.println("auto calibration failed!");
delay(2000);
}
void loop()
{
/*
unsigned char i;
for(i=1;i<124;i++)
{
Serial.print("Effect No: ");
Serial.println(i);
haptic.drv2605_Play_Waveform(i);
delay(2000);
}
*/
haptic.drv2605_Play_Waveform(118);
delay(2000);
}
- Step 4. We will see the vibration.
Never touch driver DRV2605L which may cause damage to it when it is powered.
Schematic Online Viewer
Resources
- [Library] Grove-Haptic Motor Library
- [Eagle] Grove-Haptic Motor Schematic
- [PDF] Grove-Haptic Motor Schematic.
- [Datasheet] More about drive circuit DRV2605L.
Tech Support
if you have any technical issue. submit the issue into our forum.