TCS34725 Basys3 VHDL

Guest
Hi I am trying to use TCS34725 to identify Green and Red Colors, it has I2C interface and i could not find any I2C interface about this and i am not capable to write a protocol code what should I do I am stucked.

I just need when it sees green it turns one led and when it sees red it turns another led.
 
On Tuesday, March 26, 2019 at 10:39:32 AM UTC-4, utkud...@gmail.com wrote:
Hi I am trying to use TCS34725 to identify Green and Red Colors, it has I2C interface and i could not find any I2C interface about this and i am not capable to write a protocol code what should I do I am stucked.

I just need when it sees green it turns one led and when it sees red it turns another led.

I2C is not as simple as SPI. More importantly the TCS34725 device you are trying to read has it's own protocol for reading the data. You will need to develop an I2C interface from the I2C spec to read and write the bytes to the TCS34725. Then you will need to design a controller which understands which bytes need to be written and read and extract the color information.

Do you understand how the TCS34725 works?

--

Rick C.

- Get a 1,000 miles of free Supercharging
- Tesla referral code - https://ts.la/richard11209
 
On Tuesday, March 26, 2019 at 5:50:17 PM UTC+3, gnuarm.del...@gmail.com wrote:
On Tuesday, March 26, 2019 at 10:39:32 AM UTC-4, utkud...@gmail.com wrote:
Hi I am trying to use TCS34725 to identify Green and Red Colors, it has I2C interface and i could not find any I2C interface about this and i am not capable to write a protocol code what should I do I am stucked.

I just need when it sees green it turns one led and when it sees red it turns another led.

I2C is not as simple as SPI. More importantly the TCS34725 device you are trying to read has it's own protocol for reading the data. You will need to develop an I2C interface from the I2C spec to read and write the bytes to the TCS34725. Then you will need to design a controller which understands which bytes need to be written and read and extract the color information.

Do you understand how the TCS34725 works?

--

Rick C.

- Get a 1,000 miles of free Supercharging
- Tesla referral code - https://ts.la/richard11209

No
 
On Tue, 26 Mar 2019 09:38:01 -0700, utkudenizal wrote:

On Tuesday, March 26, 2019 at 5:50:17 PM UTC+3, gnuarm.del...@gmail.com
wrote:
On Tuesday, March 26, 2019 at 10:39:32 AM UTC-4, utkud...@gmail.com
wrote:
Hi I am trying to use TCS34725 to identify Green and Red Colors, it
has I2C interface and i could not find any I2C interface about this
and i am not capable to write a protocol code what should I do I am
stucked.

I just need when it sees green it turns one led and when it sees red
it turns another led.

I2C is not as simple as SPI. More importantly the TCS34725 device you
are trying to read has it's own protocol for reading the data. You
will need to develop an I2C interface from the I2C spec to read and
write the bytes to the TCS34725. Then you will need to design a
controller which understands which bytes need to be written and read
and extract the color information.

Do you understand how the TCS34725 works?

--

Rick C.

- Get a 1,000 miles of free Supercharging - Tesla referral code -
https://ts.la/richard11209

No

You might want to look at using a PCA9564 parallel to i2c controller.
That way you dont have to put a i2c controller in your fpga.
You are still going to have to program the TCS34725 but you could
write and read 8 bits parallel.



--
Chisolm
Republic of Texas
 
On Tuesday, March 26, 2019 at 12:38:03 PM UTC-4, utkud...@gmail.com wrote:
On Tuesday, March 26, 2019 at 5:50:17 PM UTC+3, gnuarm.del...@gmail.com wrote:
On Tuesday, March 26, 2019 at 10:39:32 AM UTC-4, utkud...@gmail.com wrote:
Hi I am trying to use TCS34725 to identify Green and Red Colors, it has I2C interface and i could not find any I2C interface about this and i am not capable to write a protocol code what should I do I am stucked.

I just need when it sees green it turns one led and when it sees red it turns another led.

I2C is not as simple as SPI. More importantly the TCS34725 device you are trying to read has it's own protocol for reading the data. You will need to develop an I2C interface from the I2C spec to read and write the bytes to the TCS34725. Then you will need to design a controller which understands which bytes need to be written and read and extract the color information.

Do you understand how the TCS34725 works?


No

The TCS34725 has registers that you need to read and maybe write to configure the device. I looked at the data sheet once, but I don't recall the details.

The device has light sensors behind color filters. It also has ADC device(s) in it to convert the amount of light falling on the sensors to a numeric value. I think you have to write it to get it to start a conversion, then when it is done read the data. You will need to read the data sheet and understand this device before you do anything else.

Once you read the data sheet, return here and ask questions. I believe you are doing this for a school project, so I'm not going to spoon feed you. Read, try to understand, then ask questions.

--

Rick C.

+ Get a 1,000 miles of free Supercharging
+ Tesla referral code - https://ts.la/richard11209
 

Welcome to EDABoard.com

Sponsor

Back
Top