Arduino mouse mover
Inside the box
Inside the box
It consists of an arduino uno R3, a PP3 9v battery and a n old radio controlled car servo
Complete unit
Complete unit
The arm is an old Radio controlled car prop shaft but a wooden dowel would work also. It has a croc clip to attach to the mouse cable in order to move it forward and back
In Action!
In Action!
Here's a GIF of it in action!
See below for the code I used:
It is very simple wiring. The output of your servo goes to Pin 9 of the Arduino board.
The other wires of the servo go to power so i powered them directly from the Arduino board, be careful doing this in case your servo draws too much current, you may need an external power supply.
I also wired an LED directly to the 5v power output of the arduino so that I know when it is switched on.