Home Creators Posts Import Register Favorites Logout

Content

You can find the Arduino code downloads, Fritzing project, and wiring diagram for both the TCS3200 and TCS34725 colour sensor variations of this project from the following super-secret Patreons-only link!:

https://drive.google.com/open?id=1ZoL8lpIAKk2FbgtDwnLL_TPBV2mk6oxQ

Please note that, for the TCS34725 variation, be sure to download the whole folder linked above, including the /src subfolder and the TCS34725.h file it contains - that's required to create the I2C connection to the sensor module. (to do this, just right-click on the folder shown in the link above and click to download - Google drive will send the whole folder as a zipped up archive).

Comments

Óliver Novelles

Hi Alastair! I love colour sensor, it's amazing. Just one question: On the code you said we can use an RGB LED but, how do we do that? I imagine conections are similar but what code must we change? Thx a lot!

David Bodsworth

Can the SO, S1, S2 and S3 pins on the TCS3200 be shared across a few sensors, using a different pin for each output (like an SPI interface). If so, which do you think would be the best way to code them? Just repeat all the code for each sensor, or put all this code into a for loop for each sensor, or loop through each sensor one colour at a time?