RGB proximity candle

For the midterm Jarrett and I made an LED candle that is controlled with a proximity sensor. The proximity sensor controls the hue of the RGB led, and via serial over bluetooth it controls the volume of a sound file in p5.

Here is an initial test:

IMG_1141

Here is the code on the arduino:

The function that I used to convert hue as one value to RGB is very elegant. It was written by Harley Pebley and can be found here: http://www.skylark-software.com/2011/01/arduino-notebook-rgb-led-and-color_21.html

And here is the p5 sketch used to control the sound via serial:

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *