Go Down

Topic: Wiring a Button Box (Read 760 times) previous topic - next topic

tuxduino

The buttons common pin should be to ground, not +Vcc. This way you can use internal pullup resistors and have buttons active low.

In your diagram the buttons are active high, but when they're not pressed the arduino input pins are floating, which could cause spurious readings.

CrossRoads

"The buttons common pin should be to ground, not +Vcc. This way you can use internal pullup resistors and have buttons active low."
Exactly!
You do not want ANY button connecting directly to +5V. Only reset should be pulled high, and 10K resistor is all that's needed.
Everything connects to Gnd when pushed, with either the internal pullups used to hold the pins high when the switch is open, or external 10K resistors like on the reset line.
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

rawkstar320

Interesting,
Thanks for the help!  Ill switch it around then (shouldn't be hard) and add the resistor on the reset line.

Thanks again for the help, I appreciate it.

Go Up