Hello
I recently bought a TCS-3200 color sensor and I don't know the pin configuration. I looked at the datasheet, examples. Almost all the examples I found are from Arduino and simply connect the pins.
SDA (B4), SCL (B2) and Sensor Output (B5) in Flowcode 10 in PIC16F887
GND(4) Power supply ground. All voltages are referenced to GND
OE(3) I Enable for fo (active low).
OUT O Output frequency (fo).
S0,S1(1,2) I Output frequency scaling selection inputs.
S2,S3(7,8) I Photodiode type selection inputs
VDD(5) Supply voltage
Could someone help me and find where to connect SDA SCK Sensor Output
I would appreciate it if you could help me.
Thanks
Enrique
Confusion with SDA, SCL, Sensor Output of TCS3200
-
- Posts: 148
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 02, 2020 3:59 pm
- Has thanked: 27 times
- Been thanked: 9 times
Confusion with SDA, SCL, Sensor Output of TCS3200
- Attachments
-
- TCS3200
- sensor_color.jpeg (39.01 KiB) Viewed 2086 times
-
- Valued Contributor
- Posts: 1684
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 374 times
- Been thanked: 583 times
Re: Confusion with SDA, SCL, Sensor Output of TCS3200
Hi
I've not used one but it certainly looks confusing as FC refers to SDA and SCL which are I2C related, but from the datasheets the chip isn't communicating using I2C.
I'm guessing a "typo" and they are refering to S0 / S1 as the component allows for differing scaling options and these pins are used for that. I'm guessing you would "hardwire" S2 / S3 pins as these refer to your photodiode type (ie. r/g/b/clear) and unlikely to change.
So using the default FC component values, I think the following:-
SDA = B4 - connect to S3
SCL = B2 - connect to S2
Sensor Output = B5 - connect to output
I could be totally wrong, and B4 / B2 could be reversed, but it won't blow anything up if I am
Hope this helps.
Regards
EDIT...
Just a thought, did previous versions of this communicate via I2C ?
I've not used one but it certainly looks confusing as FC refers to SDA and SCL which are I2C related, but from the datasheets the chip isn't communicating using I2C.
I'm guessing a "typo" and they are refering to S0 / S1 as the component allows for differing scaling options and these pins are used for that. I'm guessing you would "hardwire" S2 / S3 pins as these refer to your photodiode type (ie. r/g/b/clear) and unlikely to change.
So using the default FC component values, I think the following:-
SDA = B4 - connect to S3
SCL = B2 - connect to S2
Sensor Output = B5 - connect to output
I could be totally wrong, and B4 / B2 could be reversed, but it won't blow anything up if I am

Hope this helps.
Regards
EDIT...
Just a thought, did previous versions of this communicate via I2C ?
-
- Posts: 148
- Joined: Wed Dec 02, 2020 3:59 pm
- Has thanked: 27 times
- Been thanked: 9 times
Re: Confusion with SDA, SCL, Sensor Output of TCS3200
Hello
Thanks You, I really don't have the logic to understand the sensor connection, I saw that in Arduino there are many examples but all the pins are freely connected to any pin, I didn't find a specific connection.
I got an example from Flowcode 7 and it also handles the sensor with I2C.
I'm going to start with this to do tests... you learn by messing around !!!
Best Regards
(This is part of replacing the RFid, I'm still waiting for a couple of these, according to the reader it has a range to detect the TAG from 15 to 30 cm) we'll see if it's true. . .
The examples of the color sensor, I see that it has a range of 1 to 4 cm, but we're going to try it, possibly it will help in some future project
Thanks You, I really don't have the logic to understand the sensor connection, I saw that in Arduino there are many examples but all the pins are freely connected to any pin, I didn't find a specific connection.
I got an example from Flowcode 7 and it also handles the sensor with I2C.
I'm going to start with this to do tests... you learn by messing around !!!

Best Regards

(This is part of replacing the RFid, I'm still waiting for a couple of these, according to the reader it has a range to detect the TAG from 15 to 30 cm) we'll see if it's true. . .
The examples of the color sensor, I see that it has a range of 1 to 4 cm, but we're going to try it, possibly it will help in some future project

-
- Valued Contributor
- Posts: 1684
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 374 times
- Been thanked: 583 times
Re: Confusion with SDA, SCL, Sensor Output of TCS3200
Hi
I'm not seeing aything from datasheets to suggest this or previous model used I2C, so I am quite confused too.
(Edit.. Not got access to FC just now so can't look at source for clues)
I guess the range of the colour sensor would depend on strength of reflected light from target, so 4cm might be a bit of a stretch in your application. Does seem a nice little module though.
regards
I'm not seeing aything from datasheets to suggest this or previous model used I2C, so I am quite confused too.
(Edit.. Not got access to FC just now so can't look at source for clues)
I guess the range of the colour sensor would depend on strength of reflected light from target, so 4cm might be a bit of a stretch in your application. Does seem a nice little module though.
regards
-
- Posts: 148
- Joined: Wed Dec 02, 2020 3:59 pm
- Has thanked: 27 times
- Been thanked: 9 times
Re: Confusion with SDA, SCL, Sensor Output of TCS3200
Hello,
Once the sensor is working, possibly with a small convex glass used in LED lamps, it could perhaps concentrate the reflection of the received color and extend the distance... it's just an idea.
Regards
Once the sensor is working, possibly with a small convex glass used in LED lamps, it could perhaps concentrate the reflection of the received color and extend the distance... it's just an idea.
Regards