Codes and Arduino Sketches for the Haptic Feedback Evaluation Kit

Codes and Arduino Sketches for the Haptic Feedback Evaluation Kit

The following Modes of Operation downloads are compatible with the Haptic Feedback Evaluation Kit Rev2 Arduino 1.6.0. Older versions of the Modes of Operation, for example, users of Arduino 1.0.x or for Rev1, can be downloaded here. If you are unsure which revision of the kit you have, please visit this page.

The files are all contained in a downloadable zip and if you have any ideas for what else you would find useful, why not email us?

There are three modes of operation, it's strongly recommended you visit the User Manual documentation to get the most out of each mode. There are also a series of example applications that are built on the Development Mode. The Shield Test and Grip Test codes are to verify the correct operation of the Haptic Feedback Evaluation Kit.

Intro Mode

Intro Mode Screenshot

Intro mode screenshot

Tutorials and walk through examples taking you through the basic concepts of haptic feedback and vibration alerting. Great for non-technical users, or those looking to refresh on concepts before moving forward with development.

Main sections include:

  • Quick-Start Demo - Experience haptic feedback and vibration alerting in 1 minute!
  • Haptic Feedback Tutorial - An in-depth look at haptic feedback vibrations
  • Vibration Alerting Tutorial - An Introduction to a simpler alerting alternative
  • DRV2605 Overview - Information on the DRV2605 chip used by this kit

Engineering Mode

Engineering Mode Screenshot

Engineering mode screenshot

This program is used to start writing your own code. It handles the initialisation of the pins, I2C bus, and the serial port. Advanced users will find the DRV2605 Arduino Library Reference useful, but those unfamiliar with Arduino programming may find the tutorials and examples more beneficial to get started.

Start connecting your own sensors and reading their values or communicating with other devices, then play the desired haptic effect through the grip or an external actuator.

Note that the OLED screen is not used by the Development Mode as it is designed to be very simple. This means that nothing will appear on it and the pins that were required to drive it are now available. The Pin Mapping will help you identify which pins are free.

Development Mode

DevelopmentmMode screenshot

Development mode screenshot

Directly access every haptic effect built into the DRV2605 and each of the effect libraries in the True Haptics menu. You can cycle through the actuators in the grip at the press of a download button for a quick comparison. There are 123 effects in total (each grouped into similar categories) and 6 libraries, #1-5 for the ERMs and #6 for the LRA.

The Vibration Alerting menu allows you to build your own vibration pattern. Select from wave shape, power, on time, and off time to customise the pattern and play the result on the ERM of your choice.

For this mode, it is strongly recommended you download the User Manual as it explains the features available. The True Haptic Menu Map, Effect Table, and Actuator Table are also useful resources.

Shield Test

Shield test screenshot

Shield test screenshot

A simple test program to help with troubleshooting the Haptic Shield. It auto-calibrates the LRA on the shield, then runs the user through a test of each capacitive touch download button. After the test is complete it continues to play an effect through the LRA.

Grip Test

Grip test screenshot

Grip test screenshot

A simple test program to help with troubleshooting the Haptic Grip. It auto-calibrates each of the actuators in the grip, then continually plays an effect on the chosen actuator. You can cycle through the 3 ERMs and LRA by pressing the PMD download button.

Contact Us

1.07 Canterbury Court
1-3 Brixton Road, London, SW9-6DE
[email protected]
+44 (0) 1932 252 482
(English / FR / DE / ES / IT)
+44 (0) 1932 325 353
Precision Microdrives
Mon. – Fri. 9:00 – 18:00 (BST / UTC)
* Charges vary depending on service provider and country