Programmer based in Brooklyn, NY
blob.png

@ITP

Color Controller

LED.jpg

I wanted to experiment with RGB color LED and phototransistors, given my interest in visual media and installations. As a starting point, I created a sort of “visual theremin,” which allows you to control color via your hand motions in space.

Breadboard.jpg

I placed four phototransistors in top, bottom, left, and right positions. Moving your hand left/right would control the blue, top/bottom would control the green, and up/down vertically (towards the board) would control the red. In order to get consistence RGB values in the range of 0-255, I needed to tweak the numbers from each of the analog input values based on observation. In the charts below, you can see the input value ranges before and after my calculations.

Because the RGB LED had a common anode, I needed to connect one of the pins to 5V, and the other three input pins provided RGB values in inverse (lower value for stronger color).

Screen%2BShot%2B2019-10-07%2Bat%2B6.03.51%2BPM.jpg
Screen Shot 2019-10-07 at 6.11.27 PM.png
Screen Shot 2019-10-07 at 8.20.41 PM.png

Here’s a video in action. It’s hard to see the color change because of lighting, but it’s happening!