Introduction: Clapper With Arduino and Neopixels
Getting all the material ready to be used. Although we need
to use an Arduino PRO mini, we can start using an Arduino UNO for now and we will switch back later.
· Neo pixels strips (a short one and one that would be used)
· Arduino UNO
· Arduino Pro Mini
· 330 Ohms resistor
· Sound sensor
· Two breadboards
· Jumper wires
Step 1: Lighting Up the Neopixels
Now we must check if the Neo pixels can light up with a
simple code, we will check if we can make different colors.
Step 2: Make Lights React to Sound
Connect the sound sensor and check if the sound sensor provides
us accurate values. they should make sense, as you make noise the values should vary from 200~ 700 in our case. But these numbers will differ with different sensor.
The sound sensor measure volume, which the amplitude of the frequency of a sound, the higher the amplitude the higher the reading from the sound sensor will show.
Step 3: Change Color With Sound
Now that we have both the sound sensor and the Neo pixels working,
we can start to play with the code to make the light respond to the sounds you hear. Note that the sound sensor is extremely sensitive when trying to make the lights interactive with the sound reading.
After you get the idea of how to work with the sound sensor and the light, you can make the code so that it will flip the lights off when the sound reaches the amplitude you believe is right. In our case the numerical value was “soundReading”= 500.
the code used for this project is also attached if needed.
Step 4: Final Touch
The next couple steps consist of connecting everything from
Arduino UNO to the Arduino pro mini, make sure to change the number of pixels present on the strip.