Color Sensor with BASYS3 VHDL

Thread Starter

kmesne

Joined Mar 13, 2019
4
Hi, I need to make a circuit which does the following thing:


When it sees a red object it will send output 0 until it sees a green object (like a well colored cubic toy), after it sees green it will send output 1 until it sees red again. ( If it is hard to implement I'm ok with just output 0 when it sees red and outputs 1 when it sees green, I mean it is ok if the outputs not continuous but it would be great if they are continuous)


I have basys3 and have to use VHDL. I think I should use TCS34725 sensor https://www.adafruit.com/product/1334 but I'm not sure I just assumed, I would be really glad if someone helps


Some extra questions: If it is possible I will implement it on a toy RCcar is it possible to connect it with Bluetooth module to get inputs or how should I do it ?- I can use another board JUST FOR CONNECTIONS my main Project should be on BASYS-3


Thanks
 
Hi, I need to make a circuit which does the following thing:


When it sees a red object it will send output 0 until it sees a green object (like a well colored cubic toy), after it sees green it will send output 1 until it sees red again. ( If it is hard to implement I'm ok with just output 0 when it sees red and outputs 1 when it sees green, I mean it is ok if the outputs not continuous but it would be great if they are continuous)


I have basys3 and have to use VHDL. I think I should use TCS34725 sensor https://www.adafruit.com/product/1334 but I'm not sure I just assumed, I would be really glad if someone helps


Some extra questions: If it is possible I will implement it on a toy RCcar is it possible to connect it with Bluetooth module to get inputs or how should I do it ?- I can use another board JUST FOR CONNECTIONS my main Project should be on BASYS-3


Thanks
No need to start two threads, as has been noted.

I don't know squadoosh about BASY-3 in particular and VHDL, in general. I can tell you, however, that I have used the TCS34725 sensor before and it can do what you describe once you understand how it works - and it has an I2C interface. You can see an example here https://www.allaboutcircuits.com/projects/quark-d2000-dev-board-i2c-interfacing-color-sensor-asynchronous-mode/ and probably many more elsewhere.

There are newer and better chips now, but that one will do it just fine I think because you only need a simple discrimination between two different colors that are not close to each other.

Somebody else can comment on the rest. :)
 
Top