This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Custom Board motoware issues

Hello

We built a custom board design using the hvkit reference design, and trying to run lab5a. We are encountering the following issues. Your help is much appreciated.

1. We are using a Hall Effect Current sensor to get the current feedback form the IGBT branch. Current sensor is such that at 22.22A, it will show 3.3v. So we set the USER_ADC_FULL_SCALE_CURRENT_A = 44.44 and IQ_FULL_SCALE_CURRENT_A = 23. For these two values, the motor spins even at 0 torque, pulling a large amount of current. So we cant really test for other torque levels since 0 torque is not functioning.

2. BUT if we set the USER_ADC_FULL_SCALE_CURRENT = 290.6 and IQ_FULL_SCALE_CURRENT = 150, then at 0 torque,  the motor will draw 0.01A and we see a PWM signal  sent to the IGBTs. At 0 torque the motor does not spin as expected. And at >0 torque the motor spins as expected smoothly.

3. On the voltage feedback side, "U" phase is showing a higher voltage feedback than the other two phases. We are using the same resistor network configuration as the TI hvkit board. We are not sure what causes this issue. The U phase is almost 3x than the other two phases.

4. We are also seeing a swing on the ADC results register, much larger than the hvkit board.

We have tried many many combinations for a few weeks with very little progress. ANy help is much appreciated.

user.h
  • there are clearly issues with the analog sampling circuits, though it's impossible to say exactly what from your post

    these values should not be so different, your voltage scaling circuits have an issue. They are also quite low.

    #define   V_A_offset    (0.03584540844)
    #define   V_B_offset    (0.01353621483)
    #define   V_C_offset    (0.01442599297)

    on the currents, did you check the polarity per SPRUHJ1 5.2.2

    I would check all the scaling calculations per chapter 5 of the UG

  • Hello Chris

    Thank you for your quick response. We redid the voltage divider resistors and was able to overcome the voltage bias value problems. The three phases now come back as 0.250246469, 0.25034362085, 0.2506455183.

    We set the ADC_FULL_VOLTAGE_SCALE = 25 and IQ_FULL_VOLTAGE_SCALE=40

    BUT on the current feedback side, we are still having issues.

    When we set ADC_FULL_CURRENT_SCALE = 44 for a +-22A current, the motor spins even at 0 torque and is not smooth at all. BUT when we increase the ADC_FULL_CURRENT_SCALE = 198 then the motor does not spin at 0 torque, and spins for non 0 torque  values smoothly but slowly. We verified that the hall sensor we used will show 1.65v at 0 amps, and using known current values we did some experiments and extrapolated values shows 3.3v at 22A. 

    Should we use an OP amp based current sensor instead of the hall sensor ? What else can we check  ? We used a hall sensor to limit the loss, as we intend to build a 600v 600a motor controller.

    Thanks ! 

    Thanks !

  • using in phase hall current sensors is fine. are you using 2 or 3?

    did you check the polarity and update the bias per my previous post?

    can you check your HW and verify the conversion of full negative, 0, and full positive amps?

  • Hi Chris.

    Thank you as always.

    We made some changes to the current measuring side and we are now able to get the motor spin at the correct ADC_FULL_CURRENT_SCALE setting. But now we see the following problems

    1. Running lab2a, in the motor identification, the Lsq and Lsd values is about 8x less than expected. We are using the Estun EMJ-04apb22 motor, and running at 20v system bus voltage. We are using high current capable IGBTs.  

    2. If we put the correct motor parameters in the user.h, and run lab5a, the motor spins at 0.33krpm with any torque setting. On the TI development board, increasing torque at no load increases the motor speed. We don't see that now. So we cant seem to increase speed anymore. We see the problem even with lab5b, where changing the speed reference doesn't change the motor speed.  What can we check for this symptom ? Is question number 1 above related ?

    Thank you again !

  • you can't run the ESTUN motor with 20V, it won't ID properly. It's a 165V motor.

    scale your HW to your motors, make sure your resolution is good and scaling and filters are done per the UG.