Musical RGB Lamp

by Carl Gordon Media in Circuits > Arduino

18393 Views, 323 Favorites, 0 Comments

Musical RGB Lamp

12021991_1126327890729432_2098311437_n.jpg
Musical RGB Lamp

Here is a quick guide showing how I turned my traditional desk lamp into a colorful sound equalizer using Arduino and Processing.

Lamp Setup

pinmapped.jpg

For this specific project you will obviously need a lamp.

I recycled this lamp after it's original bulb broke, inspiring me to replace it with an RGB led.

The RGB led is taped to the inside of the lamp head and I have extended the 4 connecting pins with jumper cables running down the back of the lamp.

These pins are then connected to my Arduino UNO.

I have used an old ski goggle bag to house the Arduino for convenience
but feel free to house it however you like.

The important part here is making sure the Arduino can sit close enough to the lamp head to reach the RGB led.

Processing Setup

Screen Shot 2015-09-17 at 11.13.54 am.png
{"context":{"location":{"href":"https://www.instructables.com/editInstructable/publish/EAVSR51IEM1C9Q6","origin":"https://www.instructables.com","protocol":"http:","host":"www.instructables.com","hostname":"www.instructables.com","port":"","pathname":"/editInstructable/publish/EAVSR51IEM1C9Q6","search":"","hash":""},"jQuery110207309195376326846":1,"gtmHasClickListenerTag":true,"gtmHasLinkClickListenerTag":true,"gtmLinkClickListener":true,"b":{"sizzle-1467265953257":{"parentNode":["575 100",15]}},"h":{}},"selector":"#editor-Object-17"}

Arduino to Processing Setup

Screen Shot 2015-09-17 at 11.09.42 am.png

This Arduino code reads the data from processing (over the 19200baud) and tells the lamp to shine a bright purple/blue when there is little to no sounds and past a certain volume the lamp will shine RGB colours randomly.

Upload this code to your Arduino and run your Processing sketch to power on the lamp.

The lamp will flash and then start in OFF mode but as soon as you clap your hands or play music your new musical RGB lamp will come to life.

E N J O Y the lamp and stay tuned for upgrades and developments ;)

Downloads