Quantcast
Channel: GBFans.com
Viewing all articles
Browse latest Browse all 2235

Proton Packs • Re: Would like to add power on and off sounds to Spiritminimal.ino

$
0
0
you start moving up to the more advanced code here viewtopic.php?t=43273

Basically, you would want to add a switch for the power on/off, then use a sound board with a speaker amp that can be controlled programmatically from the arduino. You would want to use part of the circuit in this diagram.

Image

of course there are many other options for sound boards and speaker amps that can be chosen but the process would be pretty similar

Pick the power on switch.
const int STARTUP_SWITCH = 6;

you'll want to look at all of the code that has STARTUP_SWITCH referenced and do the same thing with the minimal code. Then copy over the playAudio function and the sound board setup code. Put the sounds on the board that you want, and then call the play function to play it

playAudio(startupTrack, playing);

It would be a good intermediate programming task with arduino

Statistics: Posted by CountDeMonet — September 6th, 2024, 3:22 pm



Viewing all articles
Browse latest Browse all 2235

Trending Articles