View Full Version : Light Sensors
Darb12000
16-03-2006, 23:05
I just bought quite a few omni-wheels and light sensors, and was wondering if a robot able to move toward light is possinle at all.
Kingofl337
21-03-2006, 10:02
Yes you can do that you just need to program it to do so.
basicly if the light gets brighter drive in that direction.
irishninja
03-04-2006, 17:35
What you need to do is buy two light sensors. You put one on the right, one on the left. This enables you to see which value is greater and turn towards that side. Once you have turned to that side and the light is bright enough, which you can do with a simple if statement if a variable with the analog light input is > a number of your choice you drive forward.
If you only have one, you must turn until you have a light input > a numbe rof your choice and then drive forward.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.