Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[General] Arduino float reading

Status
Not open for further replies.

Rohit Choudhary

Newbie level 1
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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top