EDAboard.com | EDAboard.de | EDAboard.co.uk | WTWH Media

TCS34725 Basys3 VHDL

Ask a question - edaboard.com

elektroda.net NewsGroups Forum Index - VHDL Language - TCS34725 Basys3 VHDL


Guest

Tue Mar 26, 2019 3:45 pm   



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.


Guest

Tue Mar 26, 2019 4:45 pm   



On Tuesday, March 26, 2019 at 10:39:32 AM UTC-4, utkud...@gmail.com wrote:
Quote:
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


Guest

Tue Mar 26, 2019 5:45 pm   



On Tuesday, March 26, 2019 at 5:50:17 PM UTC+3, gnuarm.del...@gmail.com wrote:
Quote:
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

Joe Chisolm
Guest

Tue Mar 26, 2019 9:45 pm   



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

Quote:
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


Guest

Wed Mar 27, 2019 3:45 am   



On Tuesday, March 26, 2019 at 12:38:03 PM UTC-4, utkud...@gmail.com wrote:
Quote:
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

elektroda.net NewsGroups Forum Index - VHDL Language - TCS34725 Basys3 VHDL

Ask a question - edaboard.com

Arabic version Bulgarian version Catalan version Czech version Danish version German version Greek version English version Spanish version Finnish version French version Hindi version Croatian version Indonesian version Italian version Hebrew version Japanese version Korean version Lithuanian version Latvian version Dutch version Norwegian version Polish version Portuguese version Romanian version Russian version Slovak version Slovenian version Serbian version Swedish version Tagalog version Ukrainian version Vietnamese version Chinese version Turkish version
EDAboard.com map