Liquid color sensor help

Hello everyone,

I am working on a water tester that needs to accurately sense the color and depending on it output a result. my current plan is to use the TCS3200 without its lights. it will be in a dark chamber looking at a clear vial which will be backlit with a white background. would this work?

Thank you,
-Ged

here is a drawing of the testing chamber

That sensor uses reflected light so no material no colour detection, yours will be light through so no material all 4 photodiodes will be lit with white light. why don’t you mock it up without a chamber and see if it works in principal

I think it should work if you keep out stray light. Is the interior of the compartment containing the lights white?

I would add a cover to keep out stray light from above. I would have the vial stick out more: it looks like it would be very hard to get a grip on it. The cover would have a recess to allow it to fit down over the exposed part of the vial.

There appears to be a 12mm hole in the wall under the sensor. That will have to be covered, too.

What are the round features under Led 1 and Led 2 in the B-B section?

If the illumination is not truly "white", the results will be biased by the intensity versus wavelength distribution of the light source.

Fluorescent, white LED and incandescent lights are not "white".

One way to correct for this is to make two sets of measurements, one with a clear sample, the other colored, and scale accordingly.

Please explain what you mean by "color" and "accurately", and how those should relate to the four numbers provided by the sensor.

@johnwasser
thank you for your reply

yes, the inside will be white
the container is also covered.
the 12mm hole will be sealed with black silicone after installing the wiring

in section B-B the holes are to allow the led power wires to pass between the partition visible in section A-A.

@gedd82047 Does TCS3200 work with fluid color? if so, it would be very great because it's very cheap.

I am also working on project to detect color of water after applying some chemical solution.

I think AS7341 is better suited for detecting color of fluid but it's more expensive.

The TCS3200 can be used to measure the absorbance of "colored" fluids, if you pass pure white light through the fluid and expose the sensor to what comes out. The measurement is limited to three broad bands (R, G, B), which does not tell you much but may be useful.

The AS7262 would be more useful.

I don't consider TCS3200 helpful in your case.

I go for AS7341. It's newer version than AS7262 and has more channel.

The AS7262 is not recommended for new designs and seem to be out of stock most places. The AS7341 is close (also seems better in every way) alternative.

Edit:

He figured it out himself.

Honestly I didn't find TCS3200 that much dependable. You'd better consider the other options suggested in this thread.