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.

DRV8323R: Custom motor driver not working

Part Number: DRV8323R
Other Parts Discussed in Thread: DRV8323,
  • A custom motor driver based on BOOSTXL-DRV8323RH design fails to run the motor and ends up frying itself and the mosfets. The circuit is designed based on TI designs and recommendations for the same.
  • Hi Aniket,

    Thank you for posting to the Motor Driver's forum!

    It could be that your IDRIVE setting is too high, I would suggest lowering it to see if this fixes the issue.

    Additionally, the following FAQ has some great tips on debugging common issues in BLDC motor drivers:

    Best,

    ~Alicia

  • I finally got the motor working in a controlled manner. I am still using the lowest IDRIVE setting ( IDRIVE  shorted to ground). The motor spins but makes a rough noise. I am using a 16 kHz PWM. Here is the trace for one of the Mosfets gate. It should be trapezoidal, but can't figure out the reason for the following shape.

  • Hi Aniket,

    For the trace shown above, is it GHx/GLx/SHx?

    Best,

    ~Alicia

  • Hi,

    Here is the trace for one of the Mosfets gate. It should be trapezoidal, but can't figure out the reason for the following shape.

    Is it GHx, GLx, or Watergate? Without know the voltage/division -- not obvious to me -- I don't know what I am looking at. Please don't let us guessing as no help to you.

    Brian

  • The given trace is for GHA. Same traces observed for GHx and GLx. Other details about the circuit ias as follows:

    VM = 52.1 V

    VDRAIN = 52.1 V

    VCP = 63.9 V

    DVDD = 3.3 V

    CPH = 52.0 V and CPL = 0.0 V

  • Hi Aniket, 

    Would it be possible for you to share a waveform of the hall sensor output and SHx node together?

    Best,

    ~Alicia

  • Hi,

    Here is the trace for one of the Mosfets gate. It should be trapezoidal, but can't figure out the reason for the following shape.

    If the waveform is GHx, then it should be in 16khz PWM shape, not trapezoidal. Why do you expect it to be trapezoidal (or sinusoidal in an idea case)? You have to do a low pass filter in order to see the trapezoidal shape of the 6-step Hall commutation.

    Brian

  • sure. Ill share it in a day or two.

  • I have a BOOSTXL-DRV8323RH EVM Board by TI. I have configured it in 1xPWM mode. I observe the motor performance on the EVM board and also the waveforms at various nodes to that of my custom board. The voltages posted in the earlier post were found similar to that of EVM board. Also I observed a neat trapezoidal waveform at GHx as opposed to by custom board. I think if I resolve this issue, then the motor performance may improve. 

  • Hi,

    Also I observed a neat trapezoidal waveform at GHx as opposed to by custom board.

    Post a picture is better.

    Brian

  • Hi Aniket,

    Based on your initial waveform that you shared, could it be possible that the hall sensors and motor phase wires are misaligned? You seem to be experiencing something similar to other users who found that their hall sensors were misaligned and saw that correcting this fixed the issue. 

    Please see the E2E threads below:

    Incase there is some misalignment, the following FAQ can help fix this:

    Best,

    ~Alicia

  • Hello Alicia, I do agree with your point. Infact, I faced the same issue a couple of months ago while testing BOOSTXL EVM Board. I did get it resolved and got the board and motor working perfectly. 

    But this time I am sure that its not the issue. As I have mentioned before I regularly check the motor used with BOOSTXL Board to check validity of the motor and my connections too. 

    Also, as per your suggestion I'll go through the threads and FAQs as well.

    Thanks you.

  • GHx is 16khz pwm and should have the same peak voltage instead of a trapezoidal shape. What is the time T shown below?

    The captured scope waveform missed many important parameters such as the voltage scale and time scale, and so I don't know if the pic shows many hundreds pwm cycles or something else. Again, there is no reason for the GHx to have different voltage level as shown.

    Brian

  •   Hi Alicia, as per your suggestion here is the plot of HALL Sensor A (yellow) and SHA (green). The small bump at the beginning (right) goes to the end (left) if I change the direction of the motor. Also, I tried changing the bypass capacitors at the hall sensor input to 1 uF instead 1 nF, but no difference. This plot is for 1 uF setting. 

  • Hi,

    HALL Sensor A (yellow) and SHA (green).

    Hall signal looks normal. SHx could be distorted due to motor BEMF, so why not capture GHx together with Hall signal, as it should have the same peak voltage every pwm cycle.

    Brian


  • GHA (yellow) and HALL A (green) 

    The peak-peak voltage for hall Sensor is ~ 3.3 V as expected.

    The peak-peak voltage for GHA is ~ 5-7 V .

    The time period for the entire waveform between each hall A trigger is 53 ms.

  • Also when I zoomed in on the plot which itself is made up of several square waves.

        

  • Hi Aniket,

    As a sanity check, as all of this is occurring, do you notice the nFault pin being driven low? Also are you using the SPI variant or the H/W variant?

    Best,

    ~Alicia

  •   Hi Alicia, as per your suggestion here is the plot of HALL Sensor A (yellow) and SHA (green).

    OK, now we get something.

    The GHA has 3 levels: 0v, HV1, and Hv2 where HV2 > HV1. Let me explain why we see two level HV1 and HV2 instead of just HV2. During 6-step Hall commutation, each phase goes through 3 states: 0v (with lower FET turned on), HV2 (when upper FET turned on) and floating at HV1 (when both FETs turned off), according to  the table below. During Fets turned off, the voltage at SHA is driven by the other phase that being PWM via the motor coils.

    So nothing is wrong with the waveform and you should not expect to see a trapezoidal waveform.

    Brian

  • Also when I zoomed in on the plot which itself is made up of several square waves.

    These are 16khz pwm square waves as expected. 

    Brian

  • No faults raised by DRV. And I am using  Hardware variant DRV8323RH.

  • Hello Brian, Thanks for the detailed explanation. Let me show you my problem in more detail as well. Here are the two waveforms observed from BOOSTXL board and custom board. Both traces are SHA at same frequency (16 kHz) and same duty cycle (10 %). 

    BOOSTXL SHA.

    GHA for BOOSTXL BOARD   

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    CUSTOM DRIVER SHA

    SHA for CUSTOM DRIVER 

    Ill also upload the video for MOTOR running using both BOOSTXL and Custom Board. The motor starts and runs smoothly with no audible noise or any significant vibrations with BOOSTXL Board. Whereas, using Custom Driver the motor needs a kick-start and also makes an audible noise and vibrations while running. 

    I want to obtain the same performance with the custom board as observed on BOOSTXL board. Also, the MOSFETs keep frying at higher speeds i.e. with 50% duty cycle. 

  • Performance with BOOSTXL BOARD

  • performance with custom board

  • Comparing both the boards for same motor, same frequency and same pwm duty cycle.

    The only difference I observed was the trapezoidal waveform for GHx obtained with BOOSTXL BOARD as in contrast to that obtained from my custom board. 

    Hence, I want to obtain the same waveform at the GHx pins of the CUSTOM BOARD as well. That will surely improve the motor performance.

  • Hi Aniket,

    Thanks for the information! Today is a TI holiday, we will aim to provide a response by the end of the week.

    Regards,

    Anthony 

  • Please capture 3 phase voltage, as I think one of the phase does not have proper signal 

    Brian

  • Here is the phase voltage for coil A. Vin = 51.1V, PWM is at 16 kHz and 10% duty cycle. Peak to peak voltage 50.1V. 

     

    IDENTICAL traces for coil B and coil C too. With same peak to peak voltage of 50.1 V.  

  • BOOSTXL SHA.

    GHA for BOOSTXL BOARD   

    The Boostxl waveform conformed to the table below, but your customer waveform does not. I will point out where is the problem as I continue to edit this post because I couldn't add more pic to it for some reasons by the forum website.

    Each commutation cycle is about 8 divisions based on scope capture, and so there are 3 equal parts on the time scale: 2.7 div pwm, 2.7 div zero volt (low FET turned on), and 2x of 1.3div of floating voltage (both FETs are off). Let's look at phase A on the table below: hi-z, then 2x pwm = 2.7div, then hi-z, then 2.7 div of 0V. This logic is matched with the waveform above.

    Now, let's look at the customer waveform: each commutation cycle is about 5 div, so the pwm = 1.8div and 1.8div of 0v. The floating is about 0.8div each. This issue is right after the pwm section, there is no floating FETs but instead the lower FET is ON. This caused the problem and the motor noise. You should look to see why the lower FET is turned on instead of off at step 4 of the 6 step table below.

    Are you using 1x PWM mode or some other input mode?

    Brian

  • Hi Aniket,

    VM = 52.1 V

    VDRAIN = 52.1 V

    VCP = 63.9 V

    DVDD = 3.3 V

    CPH = 52.0 V and CPL = 0.0 V

    Looking back at your specified voltage and the recommended operating conditions of the device, it seems as though your VM is fairly high. 

    Please refer to the following FAQ about how to avoid an overvoltage damaging your motor drive system:

    Best,

    ~Alicia


  • GHA (yellow) and HALL A (green) 

    The peak-peak voltage for hall Sensor is ~ 3.3 V as expected.

    The peak-peak voltage for GHA is ~ 5-7 V .

    The peak-peak of GHA of 5-7v is super low; you should double check as I don't believe it - with 51 on the FET Drain, there is no way the high FET can turn on with just 7v p-p.  Also why I couldn't tell the v/div on your captured scope screen? Can you teach me how to read the signal voltage on the scope?

    I expect the GHA signal to have the "float" level right after the PWM section, just like the "float" before the PWM. 

    Could you capture these signals on the same screen: GHA, GLB, GLC. This will help to explain why GHA has the weird shape.

    Brian

  • Hello Alicia, 

    The specified voltages are well within the prescribed range of 8 to 54 V. Also I have tested the exact same setup on the BOOSTXL BOARD. 

  • Hello Brian, I apologise for the mistake in previous post.  I actually have some difficulty in measuring voltages on my CRO. I was sure that the hall sensor Signal must jump from 0V - 3.3V. I tried to measure the GHx peak to peak using the same reference level. But I think I must have made some error while calculating the voltages.  Since the motor is running there is no way that the GHx pin has anything less than VM.  Let me get back to you in a couple of hours. Will figure out the CRO issue or atleast get the same data using DMM.  Also, I have a 2 channel CRO. Will try to get all three traces in pairs of 2 each.

  • Hello Brian, here are the traces you asked for. VM = 51.4 V, PWM = 16 kHz, 10% dutycycle

  • I am using  1x PWM mode for which MODE pin is left open (Hi-Z state) as mentioned in DRV8323 datsheet. 

  • Also, the pwm is generated using and extyernal square wave generator at 5V peak to peak voltage and the ground and PWM o/p pin connected to that of drivers ground and PWM pins.

  • Hello Brian, here are the traces you asked for. VM = 51.4 V, PWM = 16 kHz, 10% dutycycle

    Hi Aniket,

    To make life easier for everyone: line up the waveform bottom 0v on the grid and the pwm cycle (the period of each cycle) start point on the grid. This practice helps to measure the voltage and time much easy than what you posted.

    I will check out the scope captures.

    Brian

  • Could you capture these signals on the same screen: GHA, GLB, GLC. This will help to explain why GHA has the weird shape.
    Hello Brian, here are the traces you asked for. VM = 51.4 V, PWM = 16 kHz, 10% dutycycle

    Hi Aniket,

    I asked for GHA and GLB, GLC. Not all GHx as you had captured. The GLb and GLc will help to explain why the GHA doesn't have the floating section after the pwm. Pay attention here: Gate Low B and Gate Low C, not GHB and GHC.

    Why do I want to see GLB and GLC? if they turned on then the lower FETs are grounded which cause the missing "floating" section on GHA.

    Brian

  • Also, what's wrong with your scope or probes: Some pic with waveform having 3 div p-p, and some with only 2 div p-p? Are these waveforms captured with the same supply to the FET drain of 52v?  

    Brian

  •   Hi Alicia, as per your suggestion here is the plot of HALL Sensor A (yellow) and SHA (green)

    I think the root cause of the problem is that the Hall sensors are connected incorrectly to the driver chip input pins. 

    For output SHA, during the normal pwm section, the Hall A signal should be high, not low. 

    Check if the Hall sensor signals are inverted on the board.

    Brian

  • Hi,

    Could you post the scope waveform of SHA and SHC captured together on the same pic? Pic below shows the GHA and GHC, but I want to see signals at SHA and SHC (which are connected to the motor wires).

    As I pointed out before, the Hall signal relative to the GHx signals are inverted. However looking at the all the gate signals, GHx and GLx, and they don't seem to cause the problem of missing "floating" section after the PWM section.

    Brian

  • Hello Brian, I did check the hall sensors and everything is as described by the DRV8323 datasheet.  

  • I was also faced the same issues, finally hall inputs interchanged, after properly hallU,V,W my drive was working. I used 1x PWm using DRV8323R.

  •  if all hall sensor inputs are correct the waveform will be like this. And try to run your motor at less than 10khz pwm in.

  • Hello Brian, I did check the hall sensors and everything is as described by the DRV8323 datasheet.  

    Really? Pic below shows GHA and GLA are pwm during Hall A is low, and you are saying it is correct based on the 8323 datasheet?

    Look at the table below and tell us at what step in the table that  GHA with pwm when Hall A is low. I had pointed to this problem 7 days ago. There are only 6 steps so you have 1/6 probability of point to the right step, but I am sure you can't find the correct one.

    Hi Alicia, as per your suggestion here is the plot of HALL Sensor A (yellow) and SHA (green).

     

    Brian

  •    

    Hello Brian, this is what I meant when I said,  hall sensors are connected according to DRV datasheet. INLA = HALL_A, INHB = HALL_B, INLB = HALL_C. As I have mentioned earlier I do check the same motor in BOOSTXL kit using the same configurations as with Custom driver. I did compare the waveforms from  both the drivers and I do agree with the inconsistencies. Hence, I am posting this in the forum. Hope to get this issue resolved with your help. I have provided the data you have asked for. I would appreciate a decent tone and less sarcasm in your replies. I understand and share the same frustration. As per your previous suggestion of HALL sensors out of sync, have checked the PCB for the same as well. I have the configuration as INLA = HALL_A, INHB = HALL_B, INLB = HALL_C. I have tested the other combinations and that didn't help. 

  • here are the schematics for the board. Sorry for not uploading it sooner. Had some issues with EAGLE. custom1.pdfcustom2.pdf