We finish up our project using I2C on the Quark D2000 development board with the addition of a color sensor and an object color identifier program. Finally, we revisit interfacing the BH1750FVI ambient light sensor using asynchronous mode I2C.
Before continuing in this article, consider reading through part one of the article: Quark D2000 I2C Interfacing: Add a Light Sensor and an LCD
Be sure to consult the reference links below:
- Overview of the Quark D2000 development board
- Using GPIO and PWM on the Quark D2000 development board
- Main Quark D2000 documentation page (links to user guides, design notes, schematics, and more)
- Intel Quark Microcontrollers forum
- Intel System Studio forum
- Where to get the Quark D2000 development board (1) (2)
Add a Color Sensor
Color sensors have been around for a while and I wanted to try my hand at constructing a color identifier. That is, I wanted to build a circuit and program that would identify the color of an object and display that color on an LCD screen.
I chose the Flora color sensor from Adafruit. The module, illustrated below, is based on the TCS34725 color sensor chip and includes an I2C interface.
Read More: Color Sensor and Asynchronous Mode