Changing Color floor detection

Hey total newbie question, but I’m working on a school project where I need to develop a device to sense a change in floor color. I will have a rolling vechile that will roll over a different color patch of floor and I need it to stop there. I’m wondering can I use some sort of IR detector or something to send a signal (voltage) that I can use to trigger a braking device. I was thinking a photoresistor (think that’s what it’s called). Any help or links to resources, components, schematics would be very usefull.



Take a look at for information about implementing your own color sensor using LEDs and a photoresistor (CdS cell). There are also color sensors available, and there are links to them from the same page.

- Jan