I'm new to electronics and am building a very simple circuit involving a peizo speaker, amplifier IC and LED.
Right now I run the peizo into the amp IC and then take the output to the led. With this when I bang the peizo on the table the LED lights up for a briefly. I'd now like to modify this so instead of the LED immediately going off I'd like it to stay on for a bit longer.
My thinking is to do this I need to use a capacitor and have the peizo trigger the capacitor to dump power into the LED. I'm stuck however trying to think through the circuit. How can I charge up the capacitor and then once fully charged stop the flow of power to the capacitor and then dump it out another path when the peizo triggers?
My thinking is I could use an NPN and have the peizo trigger the gate and then have the capacitor keep the gate open while it also dumps into the LED but I'm still not sure how to initally charge the capacitor.
edit: added schematic