Log in

View Full Version : Encoder assistance needed


phillutz
19-02-2005, 11:53
Here are a few lines from Kevins encoder readme.txt


Five things must be done before this software will work
correctly on the FRC-RC:

1) The left encoder's phase-A output is wired to digital input
one and the phase-B output is wired to digital input six.

2) The right encoder's phase-A output is wired to digital input
two and the phase-B output is wired to digital input eight.
...


In other threads it says to wire the hall effect sensor (4 pins) to pwm (3 pins) with pins 3&4 together.

This nets one sensor and only one pwm connection.
1. Is this Phase A or Phase B?
2. Where do I find the other?
3. Or how is this physically wired.

Thanks,

Phil

Mr. Lim
19-02-2005, 12:44
Phil

The navigation code is meant to be run with an encoder, not the Hall Effect sensors.

Encoders will have Phase A and Phase B outputs, whereas your hall effect sensor will only have one output.

To use the Hall effect sensor instead, you will want to use only Phase-A, and then modify the Interrupt Handlers to not check the Phase B output, but to check the direction of the PWM output associated with that hall effect sensor.

Sorry if this is rather vague, but hopefully it will help.

-SlimBoJones...