W
W
wolk2016-12-12 13:21:38
Arduino
wolk, 2016-12-12 13:21:38

Arduino. How to recognize color with TCS230 sensor?

I ordered a color sensor
https://ru.aliexpress.com/item/color-recognition-s...
I don't understand how to recognize colors.
The sensor has three filters: red, green and blue.
___________R____G___B
Red: 220 534 540
Blue: 570 355 357
Pale green: 180 173 173
Yellow: 160 225 230
Shouldn't the value with the blue filter (357) stand out against the background of the value with the green filter (355) on the blue color.
I converted the resulting values ​​​​to RGB so that with white it was 255, black - 0. On blue I get (186, 227, 227), on yellow - (248, 238, 238) - this is already in RGB.
I thought that on blue, when using a red or green filter, I would get a value of about 0

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
evgeniy_lm, 2016-12-12
@evgeniy_lm

Like this or that . Even better like this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question