Friday, July 22, 2011

Sensing color with the ADJD-S371 + Arduino

So it's been awhile since the last update to this blog. I've been busy with other hobbies and studies that aren't as much fun to make videos for. Anyways, in my last purchase from SparkFun I randomly bought a color sensor. I didn't really have any plans for this sensor, I just bought it cus its cool. It senses color! After some quick thinking, I decided to make a simple demo app to utilize it. It's just a dialog window that sets its background color according to the RGB values returned from the sensor. It's far from perfect, but it's definitely working. It tends to lean too much on the blue channel though. With some adjustments in the code, this could be corrected. The sensor uses I2C, so it's not a simple task to talk to it, but this tutorial made it much easier.