Color Sensor TCS3200

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
kalmar79
Posts: 45
Joined: Sun Aug 20, 2017 8:18 pm
Been thanked: 4 times
Contact:

Color Sensor TCS3200

Post by kalmar79 »

Hello from Costa Rica, Central america. I want to learn about how to make the flowchart for a sensor color TCS3200 with a pic 16F88 and 4Mhz crystal, is possible this??
color-sensor-tcs3200.jpg
color-sensor-tcs3200.jpg (54.22 KiB) Viewed 7124 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Color Sensor TCS3200

Post by Benj »

Hello from the UK :D

I beleive a component already exists. Please see the link below for the wiki page on the component and an example.
https://www.matrixtsl.com/wiki/index.ph ... 424cbca6b0

kalmar79
Posts: 45
Joined: Sun Aug 20, 2017 8:18 pm
Been thanked: 4 times
Contact:

Re: Color Sensor TCS3200

Post by kalmar79 »

Hi, can I replace the EBM018 for TC3200? And I want to use the PIC 16F88 or 877A. :?

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Color Sensor TCS3200

Post by Benj »

Hello,

The EBM018 is basically just the TCS3200 on a PCB with an LED, much like the boartd you showed in your picture.

The 88 or 877A should be fine.

Let us know how you get on.

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: Color Sensor TCS3200

Post by LeighM »

Hi,
The EBM018 component won't work directly with the TCS3200,
as our EBM018 also has a serial controlling interface device that is used to set the S0 to S3 configuration inputs.
So you will need to make your own port pin connections to S0 to S3 to set the colour filter and frequency range of the TCS3200.
Once you have done that, you can then probably use the GetFrequency macro of the EBM018 component to read the relative light intensity.
Note that all the other macros of the EBM018 component will not do anything, as they expect the EBM018 interface.
The following example page should help you...
http://www.matrixtsl.com/wikiv7/index.p ... 424cbca6b0
Hope that helps,
Leigh

kalmar79
Posts: 45
Joined: Sun Aug 20, 2017 8:18 pm
Been thanked: 4 times
Contact:

Re: Color Sensor TCS3200

Post by kalmar79 »

Thanks for your tips. I will try to review your information because I am interested in learning to use the device with flowcode.

BatmanSterling
Posts: 5
Joined: Mon Dec 11, 2017 4:01 pm
Been thanked: 1 time
Contact:

Re: Color Sensor TCS3200

Post by BatmanSterling »

Hi everyone,

First of all I'm sorry to post my question here, I don't find where I can create a new Topic...
This is almost the same theme, I'm using the color-sensor EMB018 in Flowcode 6.
I created almost the same programm as the example in the help page : http://www.matrixtsl.com/wiki/index.php ... :_Sensors)
But I have a problem ; I have an issue of rusults at the step of "GetFrequency". If you watch the example programm, the RGB values are collected and disp on the LCD, but in mine the sensor isn't able to get the frequency of the red, blue and green after put the filter of each color.
I don't know if my issue is because of my connecting on the pins, or if the color objet has to be link with the sensor.
I join my programm if someone would kindly help me...

//First in the programm the switch in front of the purple led has to be activate. Then the issue is in the macro "TestViolet".
Programme TCS.fcfx
(18.42 KiB) Downloaded 501 times
Again I'm sorry if it's not the right place, I will repost it in an other place if I have to. I'm sorry for my english ;)
Thanks a lot.
BatmanSterling.

Post Reply