jinx
11-24-05, 11:27 PM
Hi,
I have a strange problem with the quadrature decoders on the Servopod. I had code running , making use of the "QUAD0" words to set and read values from the 32-bit counters. I'm reading hall effect sensors which are around 120 degrees apart in phase. They output 5V when high, 1.1 when low.
Since today, the quad encoders seem to give out no changed value as output. The codebase is the same and I've also run the TMR32.txt example on the downloads page. Same result...it outputs 0 or 65536 and does not change, even if I turn the motor shaft.
To isolate a hardware problem with pins, I ran the same code with the same motor on another servopod and same result. However, if I do a PAx ON? for 3 GPIO pins (PA0,1,2) for the three input sensors, I do get a high/low reading as I rotate the shaft. I also tested the pod with probes and the voltage from the sensors was going thru to the quadrature pins as well as the IO pins.
So I do not know where the problem lies. I don't have another 'pure' pair of quadrature inputs to give to the pod pins to test out. The sensors I have are 120 apart in phase, not 90. But this did not seem to make any difference to the decoders last time I ran the code.
Anybody with any ideas or thoughts would be helpful at this point. Thanks!
I have a strange problem with the quadrature decoders on the Servopod. I had code running , making use of the "QUAD0" words to set and read values from the 32-bit counters. I'm reading hall effect sensors which are around 120 degrees apart in phase. They output 5V when high, 1.1 when low.
Since today, the quad encoders seem to give out no changed value as output. The codebase is the same and I've also run the TMR32.txt example on the downloads page. Same result...it outputs 0 or 65536 and does not change, even if I turn the motor shaft.
To isolate a hardware problem with pins, I ran the same code with the same motor on another servopod and same result. However, if I do a PAx ON? for 3 GPIO pins (PA0,1,2) for the three input sensors, I do get a high/low reading as I rotate the shaft. I also tested the pod with probes and the voltage from the sensors was going thru to the quadrature pins as well as the IO pins.
So I do not know where the problem lies. I don't have another 'pure' pair of quadrature inputs to give to the pod pins to test out. The sensors I have are 120 apart in phase, not 90. But this did not seem to make any difference to the decoders last time I ran the code.
Anybody with any ideas or thoughts would be helpful at this point. Thanks!