Color Mixing Lamp: Using light detectors to detect change and output through RGB LED

    This project was centered around using phototransistors to detect light, and their output determines how strong the RGB's in the RGB LED shine. The RGB LED is an cathode LED, where the middle left pin is the common ground pin. The phototransistors are connected to the Analog pins 0 - 2, this is so they can detect a multitude of different light levels to output to the LED. The Phototransistors are polar, so a specific pin is either positive or negative.



    It was hard to control the light against the phototransistors since they were so close to each other. If I were to build this on my own recognizance, I would put the phototransistors further apart from each other so it would be easier to control how much light was going into each. Either that or find a contraption to put on each phototransistor so I could control it.


The code utilized the output functions of the phototransistors as the value to input into each respective node of the RGB LED. We hooked up the A0-2 pins as outputs, and gave their values to the RGB nodes.










Comments

Popular posts from this blog

Final Project: Reusing the Snake board design to create Tetris with the Arduino

Art Meets Engineering: Using an Arduino compatible microphone to create light based on sound