P.S. Sorry for my English. I am from Croatia.
-Soldering iron and some solder
-Wire clippers or any other cutting tool
-Foot switch (I found mine in my workshop)
-10k pull-down resistor or you can use one integrated in arduino
Computer with Linux (I am using Debian stable (Sid) with XFCE), python with installed serial and OS module and, of course, the Arduino program.
Step 1: The Pedal Switch
First you need to open it and find contacts for the switch.
If you have NC(normally closed), NO(normally opened) and COM(common). Use the NO and COM.
Strip the isolation form the wires off.
Now connect the wires to the NO and COM connectors and close up the casing.
Step 2: Connecting Pedal to the Arduino
Snip the connector into half one connect to pin 8 and other to GND. If you are using external 10 k ohm resistor connect one pin to the pin
8 of the Arduino and second pin to the 5V pin of the Arduino.
Step 3: Computer Part
In Debian type sudo apt-get install arduino python python-serial
Than upload this arduino code to the Arduino. Than open up a terminal console and cd to the location of the foot_pedal.py file. And type python foot_pedal.py