Hey, gang. I'm not an engineer, so here goes:
I'm building a MIDI keyboard using optocouplers as switches. Each one is mounted on a small PCB with all necessary resistors, etc. included on the board. I'm using the Teensy 3.3v power into a breadboard.
My code uses the Keypad library to capture switch activations in an 8x8 keypad matrix. When I hook up two using the breadboard to set them up on pin 1, everything is okay. Well, as okay as it can be at this point without a fully wired row/column matrix.
As soon as I add a third, all switches stop working. Rather than getting a board LED off event, it merely dims and no signals are sent out from any of the boards. I get that this is a power issue.
My question is, can I somehow feed each coupler 3.3v for a MIDI keyboard? My keyboard has 64 keys.
Naturally, it works great with reed switches because they're pretty dumb, but I'd much prefer the IR interference method for on/off events. If I can't use them, it's not the end of the world. Trouble is, I know they use them on organ keyboards.
Thanks in advance.
I'm building a MIDI keyboard using optocouplers as switches. Each one is mounted on a small PCB with all necessary resistors, etc. included on the board. I'm using the Teensy 3.3v power into a breadboard.
My code uses the Keypad library to capture switch activations in an 8x8 keypad matrix. When I hook up two using the breadboard to set them up on pin 1, everything is okay. Well, as okay as it can be at this point without a fully wired row/column matrix.
As soon as I add a third, all switches stop working. Rather than getting a board LED off event, it merely dims and no signals are sent out from any of the boards. I get that this is a power issue.
My question is, can I somehow feed each coupler 3.3v for a MIDI keyboard? My keyboard has 64 keys.
Naturally, it works great with reed switches because they're pretty dumb, but I'd much prefer the IR interference method for on/off events. If I can't use them, it's not the end of the world. Trouble is, I know they use them on organ keyboards.
Thanks in advance.