Light following robot
ltmhall
Posts: 102
I'm designing a robot that will be able to roam towards a light in front of it (like the video in the boe bot video
library). However I will need it to roam towards a light in front of it with the room lights on.
Will I be able to use example in the robotics (pg 215) ?
library). However I will need it to roam towards a light in front of it with the room lights on.
Will I be able to use example in the robotics (pg 215) ?
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
-Derek
Pseudo-code -- there are much more efficient ways to do this, and this doesn't show a difference threshold (e.g. left-right /6) but this illustrates the idea:
The bonus trick is -- deciding when and if the 'bot should "re-calibrate" the ambient light threshold.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
the photoresistor so they won't see the room lights. Is there an actual circuit I can build so I could adjust the
sensitivity of the photoresistors ?
or
(R1/R2) = (Rx/Rs) when G=0V.
by placing a potentiometer in the circuit you can adjust what the ratio will be until you find a suitable value. Placing the pot in different location has a different result but I wont spoil the fun of telling you everything, you can play with the circuit and find out.
Note: The image does not show the pot and light sensor. Also an approx 100 ohm resistor is used in series with the potentoimeter. to test your circuit use a voltmeter where G is.
the bridge. What supply voltage should I apply to the circuit 5V ?
youll want to make a wheatstone bridge for each sensor tho.
-Derek