Other Parts Discussed in Thread: DRV8301, MOTORWARE
Hello,
I have the end goal of running the DRV8301-HC-EVM w/ an Electrocraft BLDC motor and AMS AS5040 Magnetic Rotary Encoder in the configuration shown in Figure 1-14, of the InstaSPIN-FOC and Motion User's Guide, with FAST providing commutation and the encoder being used to give position control over the motor.
I have run through all the MotorWare tutorials, and am currently on tutorial 12a. I've verified my magnetic encoder is working properly, and am attempting to hook it up to the DRV8301 board. The only information I can find is on P13 of the DRV8301 HW Guide, where it indicates the connections for J4 Header (for optional encoder) as:
Pin1 - E1A
Pin2 - E1B
Pin3 - E1C
Pin4 - VCC_5V
Pin5 - Gnd
I have attached my encoder in the following manner:
Pin1 - Encoder Channel A
Pin2 - Encoder Channel B
Pin3 - Encoder Index
Pin4 - Disconnected (running encoder circuit off separate power for now)
Pin5 - Gnd
My motor is connected with Phase A to DRV8301 A, Phase B to DRV8301 B, Phase C to DRV8301 C, so I assume it is connected properly.
I did have to change USER_IQ_FULL_SCALE_FREQ_Hz to a larger number, as my motor has only 2 poles, which was triggering the USER_ErrorCode_RoverL_estFreq_Hz_High error.
Upon changing gMotorVars.SpinTAC.VelIdRun to '1', I can hear a PWM whine coming from the motor, and the rotor locks, when I am assuming it should begin to spin. I have experimented with changing the order of the motor phases, but don't see a difference. Any ideas on what could be causing this problem?
Thanks,
Niels