Hi Folks,
We are trying to get Lab12 working with an incremental encoder (magnetic, quadrature output) on the 69M kit. With this encoder, the motor does not spin.
Here's what we have tried so far.
a. Tested the same board and known motor with two different brand off-the-shelf optical encoders with 250ppr and 1000ppr resolution respectively. It just works out of the box without much effort and very satisfactory performance in terms of position control.
b. Our magnetic encoder is based on AS5045B (from austria microsystems), standard configuration taken from datasheet.
The magnet is well aligned to the shaft and we're able to see the expected quadrature waveforms (A/B/Z) on the oscilloscope when we manually rotate the shaft.
c. After connecting the A/B/Z inputs to the 69M kit and following instructions from the InstaSPIN-MOTION "Position Control Motor Commissioning" document from Adam (Linestream) we're able to see the st_obj.vel.conv.Pos_mrev value gradually increase and increment to 1 after the shaft completes one rotation (manually). This means that the A/B/Z connections and USER_MOTOR_ENCODER_LINES value is correct.
However, the motor does not spin at all when given a speed/position reference.
Questions:
1. Since this is a 4096 ppr encoder, is there a max limit on how large a encoder resolution the eQeP can handle ?
2. The quadrature signals (A/B/Z) show on the scope as expected. Do you suspect any rise time, missing pulses or other signal integrity issue ?
Any suggestions on how to debug this further ?
Note: In all the above experiments, the same, known good motor with proper identification parameters and inertia values was used. So apart from the encoder, there is no other variable.
Thanks for reading through and appreciate any pointers you might have to offer.
cheers,
saturn.