Step 3Interfacing to the arduino.
The available ps2 libraries for arduino naturally work as a mouse and allow for mouse type input, if you're into such a thing ;)
Below you will find a karduinoss.pde sketch for the arduino based on the ps2 library available on http://www.arduino.cc/playground/ComponentLib/Ps2mouse which will initialize the touch-pad as an absolute xy controller with about ~4000 steps side to side.
The code does some auto-calibration based on the values it gets, and maps the x, y and z values to MIDI controller changes through the use of ttymidi available on http://www.varal.org/ttymidi/.
The karduinoss.pde sketch assumes an LED is connected to pin 3 ,the touch-pad clock on pin 13 and the touch-pad data on pin 12.
karduinoss.pde2 KB| « Previous Step | Download PDFView All Steps | Next Step » |
![]() |
Add Comment
|








































