I'm not slacking off. My code's compiling.

RSS
Jul 8

No this is not a computer bomb. It is a color light sensor I2C connected to the sun spot. The apparatus connected on top is what is know as a pin hole. It reduces the amount of light that hits the sensor so that it is easier for it to get an accurate red, green, and blue reading. This application can be used to tell the type of light source that the sensor is reading from i.e. natural light, compact florescent, and LED light sources. 

The sun spot has I2C protocol built into its SDK. The color light sensor is attached to the 3v+, D2, D3, and Gnd pins on the spot. The D2 pin is the SDA connection and the D3 pin is the SCK connection. The spot SDK has methods built in to communicate with various types of I2Cs. The color light sensor has its own registers where the values we want are stored as well as a control register that can be given different commands that can do various things. 

All in all this was a fun project to do with a lot of practical engineering, like creating the pin hole. I had no idea how to create it considering we mounted the sensor on a block of wood. Surprisingly the pin hole was created out of a plastic cup, white and black card paper glued together, and some velcro. The color light sensor was purchased from sparkfun.com and it came assembled on the board which has the pull up resistors already attached so it synched up with no problems to the spot. Eventually this project will be created into a host application that will do the same thing it does now, but show the levels of red, green, and blue and have a fully functional GUI. It could even have the capability to change the capacitance and integration times which will change how the readings come out. This application is barely touched because we had a lot of other projects to work on we just wanted to get it working properly. 

P.S. Sorry if the pictures are kind of bad, I took them on my phone.