Newbie here!
I’m designing a midi-controlled musical toy orchestrion - piano, drums, etc.
The problem is that the microcontroller has only 27 available output pins, and the piano alone has 30 keys to control.
To solve, I’d like to try multiplexing the microcontroller’s outputs so 5 outputs can drive the entire piano. This would work fine if I only wanted to activate a single solenoid/piano key at a time, but I want to be able to play chords.
Is there a simple way to take a short several-milisecond pulse from the multiplexer and keep that 3.3V signal going to the transistor for a full second after the pulse ends? Would an RC circuit do it, and if so, how big a capacitor would I need?
The transistor at the other end is a TIP102 NPN, and it’s directing 13.8VDC from a big power supply to the solenoid.
Thanks for any advice you guys can give me!