Tutorial: Enabling the Slider Function

Tutorial: Enabling the Slider Function

Haptic Feedback Evaluation Kit Modes of Operation
Rev2 Intro Mode, Engineering Mode

By default, the Haptic Feedback Evaluation Kit operates with 6 separate buttons when navigating the haptic menu. Users move through the menu options with the Left and Right buttons, but with a simple change to the code, it is possible to enable a ‘slider’ functionality to swipe through the menu options.

Many users, especially those familiar with Rev1, will have noticed that the capacitive touch pads on the Haptic Shield have a total of nine pads on the bottom row, grouped into larger Left, Select and Right buttons. This ‘grouping’ can be removed, enabling us to move the thumb across several pads for navigation.

Button Behaviour

You can see how the system interprets button presses by hovering over (or pressing on) the images of the Haptic Shield below. By default, the nine bottom touchpads are grouped into three buttons:

The system interprets button presses by hovering over the image of the haptic shield

The system interprets button presses by hovering over the image of the haptic shield

By changing the code, we can enable the slider function to separate the buttons and change the navigation style to a ‘swipe’ effect:

Navigation changed so a 'swipe' effect

Navigation changed to a 'swipe' effect

Editing And Upload The Code

  1. Download the sketch you wish to use from our Code and Sketches page, you can use the slider with either the Intro Mode or the Engineering Mod

2. Open the main sketch (.ino) file of either mode

3. Edit line 44 from:



4. Upload the code to the Arduino (shift + U) ensuring the correct COM port is selected (found under Tools -> Port)
5. Swipe your thumb across several pads to move left and right, press the Select button to enter/select the menu operation

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