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 8Program the Arduino

Program the Arduino
So here, we wanna code up the arduino. You can use whatever pins you like really. Basically, we want to write to the serial port whenever a pin changes. We write a 1 for switch #2 and a "2" for switch #2. Really, you can't chord with this setup (but the code could be changed to allow for that).

Um, use the FootSwitch.pde file to get the code...not the jpg. :)
« 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.