3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Mac OS Foot Switch from a Guitar Amp Pedal.

Step 11Get Running!

Get Running!
Whew. Ok, so we have a Foot Switch, which is wired into a breadboard, which is attached to an Arduino, which is plugged USB into a Mac, which is running a C program that listens to the footswitch and execs applescripts. Yowza!

ok. you should have a folder that looks like this:

.
|-- 1.app
|-- 2.app
|-- arduino-serial-footswitch
`-- arduino-serial-footswitch.c

Open up your terminal app. CD into the directory you made. You can start your little script like:

./arduino-serial-footswitch -p `ls /dev/tty.usbserial*` -b 9600 -R

this runs our script by looking for our Arduino board...if you have more than one plugged in, replace all of `ls /dev/tty.usbserial*` with the path to the device (if you do this dont use the quotes!).

It will appear to do nothing, but your pedal is now live. If your buttons are backwards, you can reverse the wires running to pins 8 & 9. :)

Happy Stomping!
« Previous StepDownload PDFView All StepsNext Step »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
2
Followers
3
Author:aymans
I'm a research scientist at Yahoo! I like making stuff.