|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Light Sensors
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.
|
|
#2
|
||||
|
||||
|
Re: Light Sensors
Yes you can do that you just need to program it to do so.
basicly if the light gets brighter drive in that direction. |
|
#3
|
||||
|
||||
|
Re: Light Sensors
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Light and Line Following Sensors | jeffmorris | FIRST Tech Challenge | 1 | 15-12-2005 21:57 |
| How many users does it take to change a Light Bulb? | Matt Attallah | Chit-Chat | 4 | 04-09-2004 20:59 |
| pic: Dave demonstrates how IR sensors can be used to call robots to light beacon | CD47-Bot | Extra Discussion | 5 | 10-04-2004 19:44 |
| wiring diagram for light sensors??? | pagemauck | Control System | 1 | 21-01-2004 16:32 |
| Program Code for Light Sensors...etc | Jimbo | Programming | 1 | 08-01-2002 00:36 |