0

Measuring color of fluid with TCS34725
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Measuring color of fluid with TCS34725

by tinkeringflo on Fri Aug 03, 2018 7:53 am

Hello everyone,

I am having a project where I want to read the color of a fluid in a glass tube (its a ph-Value test for soil).

I am using the Adafruit TCS34725 on an Arduino Uno. I built a dark box where I can insert the glass tube so there no outside interference but only the LED of the Breakout board. I am using the unmodified Sketch from the Adafruit website for Color reading.

The problem is that I only get the readout for a greyish color from the sensor - guess its due to the glare of the LED. Tried different setups also with daylight but the readout is far from the real color of the fluid inside the tube.

I have been looking online for a solution but only found one thread where they did not come to a working conclusion how to handle this.

So I wanted to check with you guys if you had any further suggestions on how to make this work. Please have a look at the attached pictures for the "setup".

Thanks a lot for your support.

Regards,
Flo
Attachments
IMG_20180803_133547.jpg
IMG_20180803_133547.jpg (90.32 KiB) Viewed 162 times
IMG_20180803_133531.jpg
IMG_20180803_133531.jpg (99.85 KiB) Viewed 162 times

tinkeringflo
 
Posts: 2
Joined: Fri Aug 03, 2018 7:41 am

Re: Measuring color of fluid with TCS34725

by adafruit_support_bill on Fri Aug 03, 2018 7:57 am

Your results will be 'colored' by the light reflecting back from your box - as well as possible specular reflections from the glass tube.

One solution would be to put a sheet of white paper on the far wall of the box so the readings are not skewed by the brown cardboard. You may still have issues with the specular reflections from the LED on the glass.

Perhaps a better approach is to turn of the on-board LED and backlight the sample with one of these: https://www.adafruit.com/product/1621

adafruit_support_bill
 
Posts: 71779
Joined: Sat Feb 07, 2009 10:11 am

Re: Measuring color of fluid with TCS34725

by tinkeringflo on Tue Aug 07, 2018 8:43 am

Thanks a lot that worked really well :)

tinkeringflo
 
Posts: 2
Joined: Fri Aug 03, 2018 7:41 am

Re: Measuring color of fluid with TCS34725

by adafruit_support_bill on Tue Aug 07, 2018 8:56 am

Good to hear that worked for you. Thanks for the follow-up.

adafruit_support_bill
 
Posts: 71779
Joined: Sat Feb 07, 2009 10:11 am

Please be positive and constructive with your questions and comments.