|
Re: Gear Tooth Sensor
To wire the sensor...
Take one end of a pwm cable, and solder it to J2, the black wire to GB (ground-black) the red wire to 5R (+5 volts-red) the white wire to SW (signal white). Connect the other end of this pwm to digital I/O 1.
Take a 2nd pwm cable and solder it to J1, the black wire to GB, the white wired to (12W), the red wire is unused. Connect the other end to a 20amp circut on one of your atc breaker panels.
Mount the sensor from .5 to 2.75 mm away from the gear to be measured.
Repeat this for the second one except connect it to digital I/O 2.
As for the code...
Use encoder 1 and encoder 2, disable the others. Then remove the "Phase B" logic in the interrupt handler for encoder 1 and encoder 2.
If you need more help PM me and I will try to clarify it better
Last edited by Phalanx : 14-01-2007 at 22:43.
|