Multiple buttons on a single Arduino pin - Conserving Pins//Arduino Tricks

preview_player
Показать описание
In this video I'm showing how you can conserve pins on Arduino projects where you can read the input of multiple push buttons with a single Arduino pin.

#arduino #multiplebuttons #arduinotipsntricks

The technique is very simple and can be implemented in any project with any type of Arduino board. Additionally the same can be applied with any micro controller project.

The project code can be downloaded from GitHub:

The entire schematic is available on EasyEda:

Also you can find me on social media:

--------------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

I wish all the DIY videos I watch were 2 minutes and helpful. Thank you.

bjb
Автор

I love these "Of course!!" moments, where you just understand the ide. Simple and beautiful. Thank you

Oktobermedia
Автор

I used this tutorial a few years ago. And now I'm here again because I don't remember how I did and I need to build something similar again. Thanks a lot!

vitorfox
Автор

One of those basic yet powerful things we often don't consider. Great video.

bigpickles
Автор

such an efficient and clearly explained video! Thank you!

vladcom
Автор

So creative..
I'm looking for such this thing, instead of using I/O Expander..
Thank you, guys. Stay creative.

sukapuratech
Автор

Was running out of I/O for my project. This just saved me three inputs while adding two more buttons. Don't need to detect multiple button presses anyway.

russell
Автор

Sweet! Love it, I'm always messing with the wires so less is better.

Thepracticalengineer
Автор

Video straight to the point and mentioning everything important... AWESOME! also this idea is genious if you run out of pins on your arduinos xD Thanks for the video mate!

deepstonecrypt
Автор

Thanks for this: it's exactly what I was looking for.
Unfortunately, it didn't work at first, as your schematic shows pin A0 being used, whereas the code refers to A1. Once I'd figured that out, no problem, works brilliantly.

masher
Автор

Huh, you're essentially simulating a potentiometer here. Pretty cool, never thought about applying it like that.

Adrian
Автор

Cheers Bill I'm going to try this one day!

TakamiWoodshop
Автор

Simple and objective! Thanks for sharing!

MechDickel
Автор

I have a question my bike has an ECU switch conttoller that has a single button that I press to from Map 1-4 and stay it the selected Map when i turn off & on the bike..Can I use this to make a piggyback invidual button so instead of going in sequence I can just jump to the Map that i want?

FazoRacing
Автор

what would the values be if I'm using 3 buttons?

cormalan
Автор

how should i calculate the resistance to use in a 3v esp?

wmb
Автор

Excellent tutorial, many thanks. I would like to develop a quiz controller, that my students can build, using this system but with eight buttons. The push buttons would need to replace, the onboard, type that you are using with relatively large push buttons. I would then need to get the system to illuminate some kind of display to show which button was the first to be pressed. Would this be possible using your system, please?

rickpalmer
Автор

Soo did you sperate the buttons with the press time? Like each button trigger at the specific press time?

boopeshkumarprabhakaran
Автор

Great solution! Would you recommend to use debounce for the push buttons

ooHowloo
Автор

Is it ok we use the same procedure but using a digital pin not analog?

aliayad