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.

Arcade Button MIDI Controller

Step 5Wiring

Wiring
With all of the components securely fitted inside the enclosure, it's time to work out what needs to be wired where.

The ATMega328 chip used on the Arduino contains internal pull-up resistors, so we won't need to wire individual resistors for each of the arcade buttons. This greatly simplifies the controller wiring. So all that needs to be done to wire the arcade buttons is to solder one leg to ground, and connect the other leg to one of the digital inputs on the Arduino board.

That said, pin 13 can not be used as a digital input with the internal pull-up resistor. See the pullup resistors section in the Digital Pins article on the Arduino website for the reasons why. For this pin we'll be using an external pull-down resistor. If you're unsure what a pull-up/pull-down resistor does, check out this great tutorial on ladyada.net .

Wiring the potentiometers requires a ground wire, a wire to the one of the Arduino analogue inputs, and a third +5V wire. As the potentiometer is rotated or adjusted, the resistance of the potentiometer changes between the ground and +5V wire. According to Ohm's law, voltage = current*resistance, so with a constant input current and a variable input resistance, the output voltage will be variable. It's this variable voltage that the Arduino reads on the analogue pins.

The attached wiring diagram (created with the great Fritzing software) shows how to wire up each of the components to the Arduino board. The black wire represents ground, the red wire represents +5V, the purple and orange wires are digital inputs to the Arduino, and the blue and green wires are analogue inputs to the Arduino. Note that the ground wires and +5V wires have been bridged between the buttons and potentiometers.

Before proceeding to the next step you may find it helpful to print out a copy of the wiring diagram to refer to whilst you solder.
« Previous StepDownload PDFView All StepsNext Step »
7 comments
Jul 29, 2011. 6:27 AMheadsdeep says:

you rule .
thank you so much for this perfectly put down info

i hope you make piles of cash and or happiness


question one can i extend this with the arduino mega

by just following the above diagram but with many more buttons and sliders?

question 2 is it possible to insert simple leds that only light up when you hit the button?

if so where would theey go in this scematic?
thank you much
sherwood
Jul 31, 2011. 12:30 AMheadsdeep says:
thank you a million

i made the mistake of working an infared sensor into the design befor finding out if it would work like the pots in this sketch.

would an infared pot work at a pot with no other wiring just black red and yellow
i assume red 5v black ground and yellow signal.

your thoughts.

also are you in sf or england?
Jul 31, 2011. 6:21 PMheadsdeep says:
i thought you were too nice to be an from the u.s.a.

i do not know what make ore model this sensor is but its yellow plastic with 2 black
nuts to skrew in to case

it has a red plastic window at the top

on the bottom it has a tiny tiny skrew(a pot of sorts i assume)
and 3 wires red black and yellow

i got it on ebay for an arduino board but they had no docs.
Apr 17, 2011. 10:11 AMredtraceur says:
IS it possible to re upload the wiring diagram for Fritzing or give an alternate link i try to download but it is a .tmp file not matching withc fritzing .fz
Apr 20, 2011. 8:03 AMredtraceur says:
Lol that was more than simple thanks a lot for the reply, im trying this may be on weekend till i get the materials and components.
Feb 26, 2011. 12:45 AMtrainables says:
Thanks for the wiring diagram! Much easier to follow than schematics only.

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!
29
Followers
1
Author:fraganator