Pages: [1]   Go Down
Author Topic: 64+ inputs in Arduino  (Read 537 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am working on a project but I will need more than 70+ inputs and also being able to read them simultaneously and send them wirelessly. I have an arduino uno and I was wondering if it is possible to built such a system with the hardware that I have?
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 631
Posts: 50111
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
but I will need more than 70+ inputs
Analog or digital?

Quote
also being able to read them simultaneously
Nothing happens simultaneously. What is your real requirement?

Quote
and send them wirelessly.
How is this relevant?

Quote
I have an arduino uno and I was wondering if it is possible to built such a system with the hardware that I have?
Depends on details you haven't provided.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
but I will need more than 70+ inputs
Analog or digital?

Quote
also being able to read them simultaneously
Nothing happens simultaneously. What is your real requirement?

Quote
and send them wirelessly.
How is this relevant?

Quote
I have an arduino uno and I was wondering if it is possible to built such a system with the hardware that I have?
Depends on details you haven't provided.

Well from analog or digital I would choose the one that allows me to have more inputs. As for the other question, most of them are note relevant you are right. My requirement is to gather input from 64+ buttons as they happen very fast. Like reading a keyboard keypresses!
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 631
Posts: 50111
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Well from analog or digital I would choose the one that allows me to have more inputs.
A switch is a digital device. It is either on or off.

A potentiometer is an analog device. It can return a range of values.

You don't just randomly choose one. You use multiplexers of the appropriate kind, based on the type of device providing the input.

Quote
My requirement is to gather input from 64+ buttons as they happen very fast. Like reading a keyboard keypresses!
My keypresses are not fast at all. Except for the backspace key. I use it a lot.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 545
Posts: 27352
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You can capture the state of as many digital inputs at one time as you want by having them connected to parallel/serial shift registers.
Use 1 Latch/clock pin to capture all inputs at one time, then SPI.transfer()s to move the string as bytes into an array, and send out the array.

http://www.digikey.com/product-detail/en/74HCT597N,652/568-7862-5-ND/1230993

On the other hand, if you want a keypad, then the keypad.h library will support a 72-button keypad with 17 pins, or 81-button keypad with 18 pins.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Well from analog or digital I would choose the one that allows me to have more inputs.
A switch is a digital device. It is either on or off.

A potentiometer is an analog device. It can return a range of values.

You don't just randomly choose one. You use multiplexers of the appropriate kind, based on the type of device providing the input.

Quote
My requirement is to gather input from 64+ buttons as they happen very fast. Like reading a keyboard keypresses!
My keypresses are not fast at all. Except for the backspace key. I use it a lot.

Thanks for the information. I will go for digital. Now is there any way to connect 64+ buttons to an arduino?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You can capture the state of as many digital inputs at one time as you want by having them connected to parallel/serial shift registers.
Use 1 Latch/clock pin to capture all inputs at one time, then SPI.transfer()s to move the string as bytes into an array, and send out the array.

http://www.digikey.com/product-detail/en/74HCT597N,652/568-7862-5-ND/1230993

On the other hand, if you want a keypad, then the keypad.h library will support a 72-button keypad with 17 pins, or 81-button keypad with 18 pins.


Thanks! That was very useful!
Logged

Central MN, USA
Offline Offline
Tesla Member
***
Karma: 74
Posts: 7243
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Regarding this keypad you are talking about, is it something that already exists (you built or acquired it) or is it just a plan? Multiplexing requires the keys to be connected a certain way in a matrix.
Logged


Pages: [1]   Go Up
Jump to: