Page 1 of 1

Confusion with SDA, SCL, Sensor Output of TCS3200

Posted: Wed Oct 16, 2024 10:18 pm
by ELECTRONICA67
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

Re: Confusion with SDA, SCL, Sensor Output of TCS3200

Posted: Thu Oct 17, 2024 2:58 am
by chipfryer27
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 ?

Re: Confusion with SDA, SCL, Sensor Output of TCS3200

Posted: Thu Oct 17, 2024 5:27 am
by ELECTRONICA67
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 !!! :lol:

Best Regards :D

(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 :!:

Re: Confusion with SDA, SCL, Sensor Output of TCS3200

Posted: Thu Oct 17, 2024 5:46 am
by chipfryer27
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

Re: Confusion with SDA, SCL, Sensor Output of TCS3200

Posted: Thu Oct 17, 2024 6:29 am
by ELECTRONICA67
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