|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Gear Tooth Sensor Help
Hey i searched the forums of how the gear tooth sensors works, and how it should be programmed. The problem we have, is that it is not reading any values. All we get is a value of 0, even after putting it less than a millimeter beside a gear of multiple motors. Nothing seems to work! please we need any help we can get, thanks
|
|
#2
|
||||
|
||||
|
Re: Gear Tooth Sensor Help
The geartooth sensors are designed to run off the Digital I/O interrupt ports on the microprocessor. An example of this code is available from Kevin Watson here:
www.kevin.org/frc The interrupt code will handle multiple gear tooth fires per processor loop. The sensors are very fragile. If you think you have done everything properly, and mounted them correctly, you may want to check the outputs over a osciliscope to make sure the sensor is operational, and firing the correct digital pulse. We found that the mounting is very important. We found that this configuration works very well for the kit sensors. ![]() -Hope this helps, let us know if we can help futher. Last edited by imax48236 : 17-02-2007 at 20:26. |
|
#3
|
|||
|
|||
|
Re: Gear Tooth Sensor Help
Hey its me again but on my own account. i still can't seem to get it to work. i also tried the easyC GTS code and it also doesnt work. Anymore suggestions? And we couldnt find the code on kevin's site, we had to put his codes together. could anybody give us a code that is already written for testing purposes? thanks
|
|
#4
|
||||
|
||||
|
Re: Gear Tooth Sensor Help
are you sure it's programming issues? i don't know much about sensors but if that gear tooth sensor is one of the magnetic field ones i won't work on non magnetic metals. i don't know if this helps at all. just giving my input and trying to help.
|
|
#5
|
|||||
|
|||||
|
Re: Gear Tooth Sensor Help
Quote:
The kit GTS are hall effect sensors. They require a magnetic metal to work. |
|
#6
|
|||
|
|||
|
Re: Gear Tooth Sensor Help
we tried the gears that was on the mabuchi motors, do those work?
|
|
#7
|
|||
|
|||
|
Re: Gear Tooth Sensor Help
Quote:
The first one we wired up didn't work at all. Do you have 12V to the power ? I see you have two PWM cables hooked up... |
|
#8
|
|||
|
|||
|
Re: Gear Tooth Sensor Help
What code did you use from Kevin's site?
I'm using the encoders code from his site but im only getting it to work on the first and second input and also only when rotating in one direction... I've read the readme that was included and still nothing works... I've wired the J2 part to the digital inputs and J1 to a circuit breaker for the 12V and still it doesn't work properly... Any help will be appreciated, Thanks Last edited by BLP : 18-02-2007 at 10:43. |
|
#9
|
|||||
|
|||||
|
Re: Gear Tooth Sensor Help
Quote:
If you must use digital inputs 3-6, you'll have to remove a lot of the code in the interrupt service routine that deals with relationships between the two phases of a quadrature signal. Quote:
|
|
#10
|
|||
|
|||
|
Re: Gear Tooth Sensor Help
Quote:
The reason I wanted the 3rd input is because the readme says they are better for getting position. Anyway I got it to work but it counts only once every 3 teeth, it's really strange ![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Gear Tooth Sensor | Nathan | Programming | 4 | 12-01-2008 15:09 |
| Gear Tooth Sensor? | Raikon | Kit & Additional Hardware | 3 | 09-02-2007 16:40 |
| Gear Tooth Sensor | nukem | Programming | 9 | 04-02-2006 20:21 |
| Help with Gear Tooth Sensor | RedOctober | Electrical | 3 | 27-01-2006 18:38 |
| Gear Tooth Sensor | Talha | Electrical | 1 | 23-01-2006 21:29 |