Mac OS Foot Switch from a Guitar Amp Pedal.

 by aymans
Need a foot pedal for your Mac? Got a two switch guitar pedal and and arduino board lying around? A couple of wires, a three prong 1/4" jack and you're all set. I had to do some audio transcription and used my pedal to play/pause and skip back the video.

This tutorial illustrates making a foot pedal for a Macintosh computer using an Arduino and a 2 switch guitar amp pedal.

You'll have to be a little familiar with soldering and writing simple code.

If you need a guitar amp pedal switch, you can buy one or make one with this other instructable or with this one.
 
Remove these adsRemove these ads by Signing Up

Step 1: Supplies.

1) Guitar Pedal (I'm using a two switch pedal)
2) Arduino (I'm using a Diecimila)
3) Breadboard (or prototype board if you like)
4) Three Conductor 1/4" Stereo Phone Jack (got one at RadioShack)
5) 2 1k ohm resisters
6) Wire (you know whatever you have lying around)
7) Soldering Iron (and Solder will help too)
leahbuechley says: Nov 16, 2008. 7:39 AM
nifty! would love to see a video of you using the pedal at the end :)
aymans (author) in reply to leahbuechleyDec 11, 2008. 11:21 PM
Glad you like it! I added a little demo video as step 12.
RetroTechno says: Nov 30, 2010. 12:59 PM
This is a pretty good intro to what is possible with an Ardurino and a Mac. I think I will find myself coming back to this for reference.
ninjabob7 says: Jun 5, 2010. 5:44 PM
I did something similar with an old USB joystick. Basically I just ran wires from the footswitch and soldered them to where the joystick buttons were. Works great for a 2-button switch, though I'm having some electrical issues trying to add another button. Are there any advantages to the Arduino (besides the possibility of analog inputs?)
aymans (author) in reply to ninjabob7Jun 6, 2010. 11:04 AM
The Arduino lets me talk serial over USB to the mac. So adding new functionality is simplified (hardware wise) but requires a bit of software legwork.
blackwellj says: Jun 21, 2009. 11:22 AM
i have found a progran called apple script proxy which is much simpler and works with no need for 2 apple scripts or command line
blackwellj says: Jun 17, 2009. 9:59 AM
steps 8 9 and 10 all the downloads are .tmp files and dont work properly if i right click on them and save as (i am using mac obviously)
aymans (author) in reply to blackwelljJun 17, 2009. 10:26 AM
So, most of the code is not in a 'ready to run' state. The code in this instructable illustrates a proof of concept. You have to compile the C source (as said in Step 9) and modify some AppleScripts (as said in Step 10) and assemble the App (Step 11). If you Save As... the code on Step 8 and name it .PDE, that should open right up in the Arduino app and print out the button number to the app's serial console.
blackwellj says: Jun 16, 2009. 11:47 PM
sorry that diddnt work all i got was a copy of the page i am on opening
aymans (author) in reply to blackwelljJun 17, 2009. 8:31 AM
if you tell me which code you are trying to download from which step (exactly) i could provide more assistance.
blackwellj says: Jun 16, 2009. 10:53 AM
file downloads dont work and i want to make it:(
aymans (author) in reply to blackwelljJun 16, 2009. 11:16 AM
hi blackwellj, which step are you trying to download the code for? -a.
blackwellj in reply to aymansJun 16, 2009. 12:11 PM
the arduino code and the mac codes all of them they just come up as a .tmp file and open a blank tab thanks for the quick responce james
aymans (author) in reply to blackwelljJun 16, 2009. 1:40 PM
You can hit Control and Click (or Right Click) on one of the files and say "Save Link As...". Save it as the right filename like 'footswitch.pde'. That should download it correctly.
woodythdog says: Dec 28, 2008. 10:05 PM
Hi nice job I hope you don't mind answering a low tech question for me. What is the pinout for you Vox footswitch I assume its something like this can you confirm? Thanks
vox footswitch.JPG
aymans (author) in reply to woodythdogDec 28, 2008. 11:44 PM
Yup, that is correct. I run the + current to the sleeve and measure/test for current at the ring or tip.
woodythdog in reply to aymansDec 29, 2008. 5:56 PM
thanks unfortunately I don't have a footswitch to ring out in fact I am planning to build one for my VOX amp and I have been having a hard time finding a schematic online.
bigredlevy in reply to woodythdogMar 31, 2009. 5:25 AM
me too mate. this drawing is right though. tip switch controls reverb, sleeve switch controls tremolo. closed circuit means effect is bypassed, so if you get two dpdt footswitches you can rig up a status LED for each effect
MisterHay says: Aug 30, 2008. 5:27 PM
You could also accomplish this by wiring the foot switch to the controller of a USB keyboard. I've built one for controlling PowerPoint shows where the right switch connects to the pins for PgDn and the left to PgUp. Yours is more impressive (and reconfigurable) though.
todbot in reply to MisterHayAug 31, 2008. 1:53 PM
I built a synth controller using this technique. Works great for switch-type events, especially if you can make it work for keys that you don't normally use in your sequencer. I did it by taking apart an old USB keyboard and hooking up alternative buttons to the switch points, basically like what's described here: http://www.instructables.com/id/Hacking-a-USB-Keyboard/

The cool thing about aymans hack is that he could pretty easily add some analog foot pedals to the mix, since Arduino has 6 analog inputs.
aymans (author) in reply to todbotSep 2, 2008. 4:28 PM
Totally! I want to hook up a Cry Baby Wah and have it rotate my apps. :)
aymans (author) in reply to MisterHayAug 31, 2008. 10:46 AM
Oh cool - it wasnt obvious how to wire my Arduino to be a USB HID device...so I went this route. Do you have an instructable on how you made your switch?
MisterHay in reply to aymansSep 1, 2008. 2:47 PM
Some day I'll get around to actually posting Instructables myself, but the link that todbot posted is pretty similar to the device that I made.
todbot says: Aug 30, 2008. 2:17 PM
So awesome!
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!