On/off switch

478 views
Skip to first unread message

Jason Webb

unread,
Jul 4, 2011, 4:50:16 PM7/4/11
to aud...@googlegroups.com
I'd like to add an on/off switch for my Auduino that does not cut power. I am using the DC barrel jack to power the Arduino, so I can't easily interrupt the power supply that way. I've tried tinkering with some code, but can't seem to get the audio to completely stop.

My on/off button is a toggle switch I have already wired up to digital pin 2, and toggles between +5V and GND just fine (verified in serial monitor). I just need to use that existing toggle switch to make the audio stop when pin 2 goes low.

Thanks!
Reply all
Reply to author
Forward
0 new messages