Blog Portfolio Gallery About Me

RGB Music Lamp

RGB Music Lamp

25-09-2019

Last year I was in my last year of Technasium (more info here). Besides working on projects for our client, we also have (or make) time for our own projects to develop skills ourselves. During this time I was working on a lamp using LED-strips (the ws2812b for those interested). The idea came to mind to create a lamp that took audio as an input and changed the lights according to the music. The idea was quite simple. I had an arduino nano, a power supply of some sort, that could handle up to around 5 amps, the RGB strip and a 3.5mm socket.
After that it was time to design. I made a quite simple design. I have two triangular baseplates. One is filled with nothing, the other contains all the electrical components. Between the baseplates are three acrylic plates. The acrylic has an effect called frosting which causes the light to be diffused, so that we get a more even lighting. In the middle of the lamp is a cylinder with the strip rolled around it. And the product was finished.
When in use the lights would light up when the music would get more intense. It also had a gradient effect, so when the music was quite calm only the LEDs at the beginning of the strip were turned on, but when the music was getting more intense, the light would rise to the top of the lamp, turning more LEDs on and the lower LEDs would get brighter.
If you want to make something like this, or if you are interested in making something similar, here is the code I used. I needed to change it a bit to make it work the way I wanted. Things like deviation threshold, microhone high and low, etc.
Picture of the lamp Yet another image of the lamp

Website made by Timo van Beelen CSS: W3-schools Bootstrap