- Joined
- Nov 20, 2007
- Messages
- 11,969
- Reaction score
- 768
- Points
- 188
I think their are a few Arduino users here, so if anyone can give some advice on this it will be most welcome.
I have a four-octave keyboard wired as a 4x12 matrix. One wire connects all keys in an octave, 12 wires got to each note, all C, all C# etc. I also have a ATMega2560 available.
Can I connect the four "octave" lines to the 2560 i/o pins set as outputs "Low", then the 12 "note" lines to the 2560 i/o pins set as "input_pullup"?
Polling the inputs will detect a key press. as they go from hi to low?
That's the starting point.
I'm worried I'm missing something here. Not happy with connecting a pin directly to ground, even if it is through another pin. I realise the potentially high pin is an input, but...
All input appreciated, G.
I have a four-octave keyboard wired as a 4x12 matrix. One wire connects all keys in an octave, 12 wires got to each note, all C, all C# etc. I also have a ATMega2560 available.
Can I connect the four "octave" lines to the 2560 i/o pins set as outputs "Low", then the 12 "note" lines to the 2560 i/o pins set as "input_pullup"?
Polling the inputs will detect a key press. as they go from hi to low?
That's the starting point.
I'm worried I'm missing something here. Not happy with connecting a pin directly to ground, even if it is through another pin. I realise the potentially high pin is an input, but...
All input appreciated, G.
