Haptic joystick buzzer with Arduino - creating different vibration patterns for different joystick movements with ESP32 arduino board.
Get a haptic joystick kit here: Haptic Joystick Module
See full tutorial here: Haptic Feedback Joystick with Arduino
- Wiring Diagram
- Arduino Code
The haptic-joystick library can be downloaded using git:
git clone https://github.com/makerportal/haptic-joystick
Here, we are wiring the analog joystick module and vibration motor to GPIO pins on the ESP32 D1 Mini board:
The wiring table is also given below for reference:
| ESP32 | Joystick | Vibration Motor |
|---|---|---|
| 3V3 | +5V | |
| 5V | VCC | |
| GND | GND | GND |
| D34 | VRX | |
| D35 | VRY | |
| D14 | SW | |
| D2 | IN |
The Arduino code used to control the vibration motor based on joystick movements is given at:
