Line follower with Photoresistors
Hi,
I would like to show you my line follower with Photoresistors. (It's my DIY construction so I don't know is it a good topic there
).
![9437f4461f08e6cdm.jpg](http://images40.fotosik.pl/80/9437f4461f08e6cdm.jpg)
Only what you need to build this sensor are 3 photoresistors (e.g VT935G-B).
![c2391c7392a63330m.jpg](http://images43.fotosik.pl/83/c2391c7392a63330m.jpg)
The ciruit is simple:
![ba370254466c31a6.jpg](http://images43.fotosik.pl/84/ba370254466c31a6.jpg)
My program is using RCTIME Command and copare time from 3 circiut .
There is a short video:
www.youtube.com/watch?v=sKapEdJaOzg
Of course It's only prototype, but I think this sensor can be use in diffrent project with boe-bot
I would like to show you my line follower with Photoresistors. (It's my DIY construction so I don't know is it a good topic there
![blush.gif](http://forums.parallax.com/images/smilies/blush.gif)
![9437f4461f08e6cdm.jpg](http://images40.fotosik.pl/80/9437f4461f08e6cdm.jpg)
Only what you need to build this sensor are 3 photoresistors (e.g VT935G-B).
![c2391c7392a63330m.jpg](http://images43.fotosik.pl/83/c2391c7392a63330m.jpg)
The ciruit is simple:
![ba370254466c31a6.jpg](http://images43.fotosik.pl/84/ba370254466c31a6.jpg)
My program is using RCTIME Command and copare time from 3 circiut .
time1 VAR Word time2 VAR Word time3 VAR Word DO 'first photoresistor HIGH 15 PAUSE 3 RCTIME 15,1, time1 'second photoresistor HIGH 6 PAUSE 3 RCTIME 6,1, time2 'third photoresistor HIGH 0 PAUSE 3 RCTIME 0,1, time3 DEBUG HOME,"time1= ", DEC5 time1 , "time2= ", DEC5 time2,"time3= ", DEC5 time3 IF (time1 > time2 ) AND ( time1> time3 ) THEN PULSOUT 13, 650 ' Left rotate PULSOUT 12, 650 HIGH 14 ENDIF IF ( time3 > time2 ) AND ( time3 > time1) THEN PULSOUT 13, 850 ' Right rotate PULSOUT 12, 850 HIGH 1 ENDIF IF (time2 > time1) AND ( time2> time3 ) THEN PULSOUT 13, 850 ' Forward PULSOUT 12, 650 HIGH 7 ENDIF LOOP
There is a short video:
www.youtube.com/watch?v=sKapEdJaOzg
Of course It's only prototype, but I think this sensor can be use in diffrent project with boe-bot
![smilewinkgrin.gif](http://forums.parallax.com/images/smilies/smilewinkgrin.gif)
Comments
humanoido
There is the same sensor but soldered to copper wire:
In this design, photoresistors have a common mass, so you don't have to conect photoresistor to Vss
(under the robot you can see additional wire, but it's a part from diffrent projekt )