[General] Arduino float reading

Status
Not open for further replies.

Rohit Choudhary

Newbie level 1
Joined
Jun 13, 2015
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
7
I want to make array of 20 buttons.such that i sud be able to know which button was pressed at what time!
intially i was usiing digital pins of arduino,but it is giving me float value with no proper reading.what sud i do??
 

I want to make array of 20 buttons.such that i sud be able to know which button was pressed at what time!
intially i was usiing digital pins of arduino,but it is giving me float value with no proper reading.what sud i do??

You'll have to use pull-up or down resistors to solve the floating problem. Maybe you already know that.

For so many buttons(more than I/0 pins), if you don't want to use shift registers, maybe the analog pin could be used w/ resistors set up as voltage dividers and say 4 buttons
for each analog input. Each of the 4 buttons, when pressed, would give a unique value.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…