|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#3
|
||||
|
||||
|
Re: Optical Sensors Used as Encoders?
I dont think this use of tape is allowed by the rules. Last year we used some white paint on a black gear. This year we drilled holes in the gear and put an aluminum plate behind the hole opposite the sensor. It works very well (and we took some weight off doing that
)As for code... Wire the sensors to interrupts (digital pins 1 and 2). You can find some examples in the IR beacon tracker code. Last year I polled the sensors every program cycle and it did not work too well (not fast enough). The interrupt method works perfectly. And dont forget to use the normally high output of the sensors |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Q&A Discuss: Optical sensors with EduBot | CD47-Bot | Extra Discussion | 2 | 01-03-2003 18:37 |
| Q&A Discuss: optical sensors | CD47-Bot | Extra Discussion | 0 | 15-02-2003 22:58 |
| optical sensors | great_one411 | General Forum | 1 | 15-02-2003 19:54 |
| optical sensors acting strangely | rosebud | Electrical | 10 | 03-02-2003 00:29 |
| optical sensors | majormusic2005 | General Forum | 1 | 28-01-2003 20:37 |