steven834
Newbie level 6
- Joined
- Dec 10, 2014
- Messages
- 14
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 106
I have built in place 22 momentary SPST pushbutton switches with 23 wires (one common wire and 22 separate running to all the switches). Note there is electromagnetic interference noise in the area.
Option one .
Use Arduino Mega2560
Put my common wire to ground
Put a 100 ohm pullup resistor on each separate line and connect each line to a different io port.
Option two
Daisy-chain together three 74HC165N Shift Register and connect to arduino.
I don’t have a clear understanding of exactly how to do this and if I need any resistors or capacitors (I can’t find a wiring diagram).
I think when I use the shift registers I don’t have to program for debounce.
Is one solution better than the other or something else?
Thanks
Steven
Option one .
Use Arduino Mega2560
Put my common wire to ground
Put a 100 ohm pullup resistor on each separate line and connect each line to a different io port.
Option two
Daisy-chain together three 74HC165N Shift Register and connect to arduino.
I don’t have a clear understanding of exactly how to do this and if I need any resistors or capacitors (I can’t find a wiring diagram).
I think when I use the shift registers I don’t have to program for debounce.
Is one solution better than the other or something else?
Thanks
Steven