I love music and I’ve been practicing playing drums since the time in university. The normal drum set may generate big sound so it is not suitable to use it at my apartment as it may disturb my neighbors. So generally I use the electronic drum when practicing at home, using a headset to hear the music & drum beats. However, after a long time in this way, I found I have hearing damage of my ears, not serious but I must make some changes.
Recently I started to connect a loudspeaker instead of the headset to the electronic drum set.
I can control the basic sound volume through the drum control panel. However, the volume control on the panel makes sense only on the basic volume range, but when I make strong beat on drum the volume still goes higher. How can I know which drum hit volume step on the red line?
#Solution: Make a LED strip reminderI came up with an idea, I want to build up a reminder using LED strip. It can display different color corresponding to the sound volume. I chose Grove Beginner Kit for Arduino which contains the sound sensor, for sound collection as input, and a Grove - WS2813 RGB LED strip as output.
Connect the 4-pin connector of the Grove - RGB LED Strip to the D6 socket of Grove Beginner Kit for Arduino, simple & easy. Then, use a USB cable to connect the Grove Beginner Kit for Arduino to the computer.
The logic is: collect the basic sound from the environment and calculate the average value; Then put this value in different sound volume range with different colors.
2.1: Calculate the average sound value
2.2: Compare the value with different sound value range, and set up the corresponding colors.
For example, if the average sound value is below 300 & over 200, then set up the color value "Red" to 255 and "Green" 255. If the sound value reaches over 400, then the LED strip displays only "Red" color as warning.
Almost done!
2.3: Upload the program to the Grove Beginner Kit for Arduino, and disconnect the USB cable from the computer. Then I used a power bank as power supply.
Let's see how it works. When I play gently, it shows green color. If harder, the yellow color will show up. If the hit is too strong, I can see the red color as warning.
1. The sound value is only the calculated value, for the moment I did not figure out the relation between this value and decibel.
2. The reaction of the LED strip color is a bit slow when I play faster-- the delay from the program is 0.1s.
3. The Grove Beginner Kit for Arduino also contains other modules, I should do this project V2.0 next time! For example, the OLED display can show the real-time value, & button can be the power switch. Also I can use the temperature & humidity sensor to monitor my music room.
Comments