Power Trigger
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- hockeyboy423
- Posts: 11
- Joined: Fri Jul 16, 2021 8:28 pm
Power Trigger
Anyone know if there's anyway to get an Audio FX to play a sound when it is given power. I'm attempting to make a device that only places a singular sound once it is plugged in. Is there anyway that I'd be able to wire a loop from one of the triggers to the power input or could I use a trinket to code something to cause the Audio FX to play on power?
- dastels
- Posts: 15674
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Power Trigger
I played around with this and came up with a simple solution. Put a 22uF capacitor between a trigger input (I used 0) and ground (watch the polarity) and a 100k ohm resistor between that the same trigger and Vin (I tested with 5v). The capacitor starts empty so the voltage on the trigger is 0v. So that triggers T00. The capacitor slowly charges through the resistor and eventually the voltage on the trigger pin is high enough to "turn off" so the sound only plays once. You'll get one play when power is applied.
If your sound is short and gets triggered multiple times before the trigger turns off, use a smaller resistor.
Dave
If your sound is short and gets triggered multiple times before the trigger turns off, use a smaller resistor.
Dave
Please be positive and constructive with your questions and comments.