5
\$\begingroup\$

I am trying to get a pushbutton working with the Arduino Button tutorial (and the example sketch). Unfortunately, I was not able to find a button like the one in the example and, instead, have a button with two pins from the bottom. (I don't know if this makes a difference - just trying to provide the information).

Below are pictures of my wiring of my breadboard and Arduino board. Am I doing something wrong here?

Full View Close-Up Arduino Close-Up Breadboard

\$\endgroup\$
4
  • 1
    \$\begingroup\$ May i suggest you use fritzing for circuit diagrams. It does them straight on to breadboards and includes Arduinos :). So saves on taking photos. It also runs on windows linux and OS X :). Forgot to mention its also free :) \$\endgroup\$
    – Dean
    Apr 13 '11 at 10:43
  • \$\begingroup\$ +1 for following up your question and sharing your experience with others new to electronics! \$\endgroup\$
    – Dave
    Apr 13 '11 at 12:57
  • \$\begingroup\$ @Dean true, but then we wouldn't have immediately seen the problem with the circuit - @JasCav forgot to bridge the gap! \$\endgroup\$ Apr 14 '11 at 2:29
  • \$\begingroup\$ @Jared Harley yes very true. \$\endgroup\$
    – Dean
    Apr 14 '11 at 8:57
3
\$\begingroup\$

[facepalm]

So, in case it wasn't obvious from the above question, I am new to the electronics side of the house. In fact, one reason I bought an Arduino breadboard, so I could learn about hardware and become more comfortable with it. (As a software developer, I tend to avoid hardware altogether other than understanding the basics of what is going on in my computer. With the level of abstraction in software these days, that is fairly easy to do.) While I was first going to just delete the question (mostly out of embarrassment), I figured I would share what I just learned so it may help others.

Basically, the reason the above wasn't working is explained in this tutorial by Lady Ada (image reposted below):

Breadboard Broken Down

In the image, you can see that there is a series of metal strips underneath the board. The long ones (called rails) connect the outside rows. Because of their length, they can connect 25 (or more) column holes at a time. By doing this, it makes it easy to provide power and ground to an entire column and to eventually feed off of for the board.

The shorter strips (called rows) connect strips of 5 holes. This is where I went wrong. I made the (wrong) mistake of thinking the rows were longer and ran all the way across the row. However, if you look at the image below, you can see that strips only run halfway across the board. Because of this, in the setup I had above, anything connected on the A-E side was not "talking to" anything on the F-J side. So, I moved everything over to one side, and it all works well.

I hope my newbie mistake helps someone else. Good luck!

\$\endgroup\$
2
  • 1
    \$\begingroup\$ You may also want to take note of the reason they don't go across like that. If you look at your Arduino, the socketed microcontroller (an Atmel AVR) has two rows of pins, in what's called a Dual In-line Package (DIP). A major task of the Arduino is to give you those pins accessible as slots, known as a break-out board (it also holds some power circuitry, a USB interface and an oscillator resonator of some sort). The breadboards are meant to do the same thing, so you can put a DIP across the gap. \$\endgroup\$ Apr 13 '11 at 5:40
  • \$\begingroup\$ I'm fascinated by this stuff, haven't taken the plunge yet, and this is just the kind of thing I'd do if I hadn't read about it here first. Thanks for posting and following up. \$\endgroup\$
    – Mark Allen
    Apr 14 '11 at 0:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.