![]() ![]() ![]() ![]() ![]() Alan numitron clock Clapclap 2313/1386 SNES Pi Webserver USB Volume/USB toys Smokey amp Laser cutter WordClock ardReveil v3 SNES Arcade cabinet Game boy projects cameleon Home Presence Detector ![]() AlanFromJapan ![]() ![]() ![]() Akizukidenshi Elec-lab Rand Nerd Tut EEVblog SpritesMods AvrFreaks Gameboy Dev FLOZz' blog Switch-science Sparkfun Suzusho Datasheet Lib Reddit Elec Ermicro Carnet du maker (fr) |
Arduino and a buttonLast update: Thu Jun 5 22:25:40 2025
Various notes about buttons, switches, etc...
Buttons 101
Multiple buttons on 1 analog pin![]() This is one of the multiple possible circuit. This one is pulled-down, can read without ambiguity maybe until 5 buttons, but can't read multiple press at the same time. Receipe for n buttons:
The "Rbottom" (on the graph) one is a pull down. For n == 3:
One can find an interresting variant here : http://rayshobby.net/blog/?p=16 Push-on push-off latching switchTurn on/off with one push button only !
![]() EEVblog Dave crazy bloke's version http://www.youtube.com/watch?v=Foc9R0dC2iI |
|||||||||||||||
All content on this site is shared under the MIT licence (do what u want, don't sue me, hat tip appreciated) electrogeek.tokyo ~ Formerly known as Kalshagar.wikispaces.com and electrogeek.cc (AlanFromJapan [2009 - 2025]) |