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.

DRV8312-69M-KIT: Running lab01b, the motor does not rotate

Genius 3095 points

Part Number: DRV8312-69M-KIT

Dear team:

Background: lab01b (InstaSPIN Projects and Labs User’s Guide)

I have changed the program according to the document requirements. After load the project, The LD2 can blink, But the motor did not rotate and I can't measure any waveform (Only DC waveform) at J6-DAC1, DAC2, DAC3 or MOTOR-MOA, MOB, MOC on the broad.

Questions:

1, Can I directly measure the waveform in the figure below on the DRV8312EVM? If so, which terminal should I test?

2, In stap 2a, I need to set the right offset and gain for each PWMDAC channel in proj_lab01b.c and hal.c as below:

// set DAC parameters
 gDacData.ptrData[0] = &gPwmData.Tabc.value[0];
 gDacData.ptrData[1] = &gPwmData.Tabc.value[1];
 gDacData.ptrData[2] = &gPwmData.Tabc.value[2];
 gDacData.ptrData[3] = &gAdcData.V.value[0];
 HAL_setDacParameters(halHandle, &gDacData);

But in lab01b, do the other lines of parameters in the same location need to be commented out?

// set DAC parameters

  gDacData.ptrData[0] = &gPwmData.Tabc.value[0];
  gDacData.ptrData[1] = &gPwmData.Tabc.value[1];
  gDacData.ptrData[2] = &gPwmData.Tabc.value[2];
  gDacData.ptrData[3] = &gAdcData.V.value[0];

//  gDacData.ptrData[0] = &angle_gen.Angle_pu;
//  gDacData.ptrData[1] = &gAdcData.I.value[0];
//  gDacData.ptrData[2] = &gPwmData.Tabc.value[0];
//  gDacData.ptrData[3] = &gAdcData.V.value[0];

  HAL_setDacParameters(halHandle, &gDacData);

The same problem can be found in Step 2b, set the right offset and gain for each PWMDAC channel in proj_lab01b.c and hal.c:

// set DAC parameters
 gDacData.ptrData[0] = &angle_gen.Angle_pu;
 gDacData.ptrData[1] = &gAdcData.I.value[0];
 gDacData.ptrData[2] = &gPwmData.Tabc.value[0];
 gDacData.ptrData[3] = &gAdcData.V.value[0];
 HAL_setDacParameters(halHandle, &gDacData);

Maybe the problem is relatively elementary. I hope you can give me some advice.

Best regards

But the motor did not rotate.

  • Please refer to the user's guide of this kit to ensure the switches and jumpers are set correctly. And then tune the below parameters according to the spec. of the motor.

    #define USER_MOTOR_FREQ_LOW (10.0) // Hz - suggested to set to 10% of rated motor frequency
    #define USER_MOTOR_FREQ_HIGH (100.0) // Hz - suggested to set to 100% of rated motor frequency
    #define USER_MOTOR_FREQ_MAX (120.0) // Hz - suggested to set to 120% of rated motor frequency
    #define USER_MOTOR_VOLT_MIN (3.0) // Volt - suggested to set to 15% of rated motor voltage
    #define USER_MOTOR_VOLT_MAX (18.0) // Volt - suggested to set to 100% of rated motor voltage