|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Gear Sensor
Anyoe now how to use/get the input from the gear tooth sensor? What I'm trying to do is make sure a gear doesn't drop below a certain speed. Any relavant tips would be great.
|
|
#2
|
|||||
|
|||||
|
Re: Gear Sensor
Connect its output to a digital input (any of 1 through 6) on the Robot Controller, then configure the input to cause an interrupt. Increment a counter whenever the interrupt occurs. Separately configure a repeating timer interrupt. Each time the timer goes off, save the value of the gear tooth counter and then reset it to zero for the start of the next time period.
That's the short version. If you don't understand interrupts, ask again. |
|
#3
|
|||
|
|||
|
Re: Gear Sensor
I dont understand the interrupts, can you please explain it to me?
|
|
#4
|
|||||
|
|||||
|
Re: Gear Sensor
See the thread at http://www.chiefdelphi.com/forums/sh...ad.php?t=43244 for information on how to count gear teeth using interrupts. Pay special attention to the post by b_mallerd.
For using timer interrupts, see the Timers White Paper: http://www.ifirobotics.com/docs/time...004-jan-14.pdf |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Gear Tooth Sensor | nukem | Programming | 9 | 04-02-2006 20:21 |
| Gear Tooth Sensor | Talha | Electrical | 1 | 23-01-2006 21:29 |
| Gear Tooth Sensor | AMIRAM | Electrical | 2 | 22-01-2006 04:09 |
| Gear tooth sensor vs. Optical Encoders | Avarik | Programming | 7 | 17-01-2006 10:18 |
| Gear Sensor Competition Usage Feedback | de_ | Electrical | 6 | 15-05-2005 15:15 |