This Python script monitors mouse activity using the pynput library and sends MQTT messages based on mouse events. It logs mouse movements, button presses/releases, and scroll actions. The script utilizes the paho.mqtt.client library to publish messages to an MQTT broker.
The messages are then interpreted by the Pi or Arduino to vibrate the keyboard just like a controller would.
- Rumble motors
- PI or Arduino (to drive the motors)
- 3D printed case to attach to the motors to keyboard (optional)
- MQTT server
You can use what ever pins you want as long as you can use PWM.
Step 1:
- Desktop.py needs to be running to send data to the server
python Desktop.py
Step 2:
python rumbler.py
- Add individual mouse click addressing
