Author Topic: Light sensor switch  (Read 1105 times)

0 Members and 1 Guest are viewing this topic.

Offline cameracutTopic starter

  • Beginner
  • *
  • Posts: 1
  • Helpful? 0
Light sensor switch
« on: June 05, 2009, 09:06:33 AM »
Hello, this my first thread so I hope its clear enough for you!

I am in the process of making my first Mini-Sumo 'bot and is in need of a circuit that would allow it to tell the difference of light and dark colored floors. It would be nice if it could be as minimal as possible and have the ability to, when it is dark, have full resistance and when it is light, it will have no resistance. Kinda like if you were to have a normal switch with purely on and off but it will sense the color.

Thanks for any help!

Offline sonictj

  • Supreme Robot
  • *****
  • Posts: 416
  • Helpful? 11
Re: Light sensor switch
« Reply #1 on: June 05, 2009, 03:08:30 PM »
these sensors are designed for this purpose

they aredesigned for an rc timeout, but you can attach a 10k resistor between W and R to create an analog sensor.  to eliminate confusion do to poor labeling on parallax's part I'll give you the pin out for an analog setup.  B = ground, R= signal, W = +5V.

Another option is the pololu qtr line they come in either analog or digital (rc timeout).


Get Your Ad Here