How To Connect Multiple Pushbuttons To One Arduino Input

preview_player
Показать описание
In this Tutorial video, I'm going to be showing you how to connect up to 50 pushbuttons to a single Arduino analogue input. This enables you to free up a lot of your IO for sensors, displays, motors and servos, allowing you to build more complex projects.

Components Required

If you've got any Tutorial requests or suggestions, let me know in the comments section below. I'm always looking for suggestions.
Рекомендации по теме
Комментарии
Автор

I have been searching for a simple and affordable solution to control turnouts on my model train layout using pushbuttons. Your explanation is clear and helped me decide that the Arduino together with the PCA9685 servo controller is that way to go. Thank you for that.

kevinchamberlain
Автор

Brilliant! You just saved me so much hassle with too many digital/analogue pins being used.

SamHodby
Автор

i've been looking for this solution for the past 5 months!!!

deletedmediatj
Автор

I'm glad to watching your video. In this video teach me practical learning. Thanks to you. Abdul Basit from Bangladesh.

mohammedabdulbasit
Автор

Your amazing….. thank you so much inspired today 👏👏👏👏👏👏

KSATica
Автор

Excelent explaination. The only thing is that the floating ground was not placed back into the drawing, which is what makes de vudeo stand from others.

casalguayaquil
Автор

all you need is to put as many distinct(not of the same value) resistors in parallel as there are buttons and connect the buttons in series to those resistors, this will give you an unique voltage drop even if multiple buttons are pressed.

varnamq
Автор

Could you make something like this, but with button on/off latch?

Ampereg_
Автор

Awesome tutorial and very clear! Thanks

bluehippotech
Автор

This wouldn't let you detect two buttons being pressed at once right? It would think it's just a different button further down the chain ?

Andrewthegreatish
Автор

I have an arduino project that has a potentiometer on A1 which is used to produce 12 different tones. I want to convert the pot to momentary push buttons so I can play like a piano keyboard. I am thinking your example should work as a solution for me?

mikelee
Автор

Good idea:; resistors, by careful math's, you could maybe do two or more buttons at the same time, I think :)
something like 1000 Ohms is button 1; 2000 Ohms is button 2 and then 3000 Ohms is both buttons, (series) or what ever it is in parallel

D_Printing
Автор

Dear brother can you help me a very small correction in my code

dice
Автор

Why I just learned this after years of Arfuino projects... I feel so dumb rn...

welcometomcdonaldsmayitake
Автор

This is stupid, why do you need resistors for EACH pushbutton???

milespeterson
welcome to shbcf.ru