User manual

15. Provide a RESTART condition and call the device ID with a read bit
I2CBegin(0x53);//deviceID0x29witharead(1)bit
16. Wait to receive an ACK from the Pmod COLOR.
17. Collect all 8 data bytes corresponding to the low and high data byte registers of the clear,
red, green, and blue data, respectively, waiting to receive an ACK from the Pmod Color
between each byte.
I2CReadMultiple(8);//readinthe8dataregisterstakingadvantageoftheaut
oincrementingpointer
18. Send a STOP condition.
ApplicationsInformation
The Pmod COLOR is ideal for fun applications that perform different tasks based on the color of an
object. This is perfect for sorting different objects or controlling a motor based on the detected color
temperature.
DataConversion
The AMS TCS3472 module has four different ADC channels to detect red, green, blue, and clear
ambient light data. Colorimeters of this nature do not have perfect sensing capability so some of the
color sensors, notably green and blue, do not measure the full data range of the data
TimingDiagrams
An example timing diagram for reading and writing to the Pmod COLOR taken from the AMS
datasheet is provided below:
When using an external power supply to run the Pmod, be sure to stay within the parameters provided in Specifications.