The silencephone is made to disrupt protests. It lights up based on the decibel level of the surrounding protests. Green is for a safe level, yellow is for a warning level and red is the danger level. At the red level, an annoying loud sound will play to disrupt the loud protestors.
For the code, I borrowed the Hello_SoundSensor sketch and added some if statements to check the value of the sound coming in and used the neopixels and the onboard speaker for output. I also used a toggleswitch to turn the device on and off.
Comments