Go Down

Topic: 64 digital inputs on Mega 2560 (Read 285 times) previous topic - next topic

artko

Hi,

for an Arduino project I need 64 digital inputs. I'm going to use my Mega, which has 54 pins.

Could anyone tell me what would be the best way to reach those 64 inputs (I have some  experience in soldering, if this would help)?

Thanks in advance

CrossRoads

Mega has 70 inputs.

D0 to D53, digital only.
A0 to A15, analog input or digital, D54 to D69.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

artko


bmbbsr

you can alo use good expanders like the PCF8574 i2c very fast and  can be cascaded to 2000 i/o
within 200ms of interrupt you got the system looped

PaulRB

#4
Dec 27, 2019, 11:51 pm Last Edit: Dec 27, 2019, 11:53 pm by PaulRB
Why do you need 64 digital inputs? What will they be connected to? What is the project? There may be a much simpler way, such as using a matrix.

artko

Why do you need 64 digital inputs? What will they be connected to? What is the project? There may be a much simpler way, such as using a matrix.
I'm building a kind of chess robot, with 64 reed swtiches that recognize each piece

PaulRB

#6
Dec 28, 2019, 08:36 am Last Edit: Dec 28, 2019, 08:37 am by PaulRB
Then you can use a matrix, and only 16 digital pins will be needed. You will need a small diode in series with each reed switch.

How will a reed switch recognise which piece has been placed on a square?

Go Up