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.

Want to spin 48V BLDC Motor with DRV8312 and piccolo F28035 in Torque control mode

Other Parts Discussed in Thread: DRV8312, DRV8332

Hi guys,

    I am able to drive 24V BLDC Motor with DRV8312 and piccolo f28035(DRV8312 C2-kit) with the help of Insta Spin GUI in current control mode.

Since insta spin GUI is not compatible for 48V Supply, i am not able to test my 48V BLDC motor. 

As i am new to F28035 MCU,i need help for following things:

1.I want to test my 48V BLDC(Maxon EC flat 60) Motor with help of Insta spin GUI or CCSV4.0 or by any other means.

2.Can i get the source code/any help for F28035 MCU in current control mode to drive 48V BLDC Motor in CCSv4.0 environment.

3.How to dump the code in flash memory of F28035 using CCSv4.0?? 

Any help on above matter would be highly appreciated.

please help.

Thank you in advance 

  • 1.I want to test my 48V BLDC(Maxon EC flat 60) Motor with help of Insta spin GUI or CCSV4.0 or by any other means.
    A: The motor voltage is limited to kit, not InstaSPIN GUI. You can use DR8301-Kit for the 48V motor.

    2.Can i get the source code/any help for F28035 MCU in current control mode to drive 48V BLDC Motor in CCSv4.0 environment.
    A: Both InstaSPIN_BLDC and InstaSPIN_BLDC_GUI_project lab projects provide all source except InstaSPIN_BLDC_Lib.lib. You can enable the motor work in torque current or speed close loop mode by set the build level in BLDC_Int-setting.h without the source code of InstaSPIN_BLDC_Lib.lib.

    3.How to dump the code in flash memory of F28035 using CCSv4.0?
    A: What project lab are you using? InstaSPIN_BLDC_GUI_project is working in flash mode, you can find the diffirence between InstaSPIN_BLDC and InstaSPIN_BLDC_GUI_project, both two use different F28035_xxx.cmd file. You need to use theF28035_FLASH_xx.cmd to enable the code run in flash memory.
  • Thank you Yanming for your quick reply.

    A: The motor voltage is limited to kit, not InstaSPIN GUI. You can use DR8301-Kit for the 48V motor.

    As per datasheet, DRV8312 C2 -kit can handle Supply voltage upto 52V Max. I have attached datasheet here.

    Currently i am using BLDC_sensorless lab project, just to test my 48V BLDC Motor.

    Thank you for second and third solution.

    drv8312_datasheet.pdf

  • Dear Yanming with your help i could able to run Maxon EC flat 60 BLDC motor in Torque control mode with 24V supply.

    But the same code does not work with 48V supply.Here i am using InstaSPIN_BLDC_GUI_project lab project. in CCSv4.0.

    Same 48V BLDC Maxon motor is running with BLDC_Sensorless  lab project but the problem is that  IC DRV8312 is getting heated up.

    I have attached Motor datasheet  also highlighted part number for reference.

    Please help.

    --

    Best regards,

    Anil Gupta

    EC flat 60 bldc datasheet.pdf

  • Anil,

    That GUI is not able to run at 48V supply, as it was hard-coded to 24V. You can instead try running without the GUI and using the watch window to follow the same expressions.

    Sean
  • Sean,

    Thank you for your reply.

    I am not using InstaSpin GUI to run my 48V BLDC motor.Here i am using  InstaSPIN_BLDC_GUI_project  (without  InstaSpin GUI )i.e.CCS lab project to run motor in torque control mode at 48V Supply in CCSv4.0 environment  but no luck.

    Please help.

  • Is DRV8312 C2-kit compatible to drive 48V BLDC Motor???

    Because as per datasheet DRV8312 can accept supply voltage upto 50V. But  when i am using  InstaSPIN_BLDC_GUI_project lab project (i.e.CCS Project ) to run 48V BLDC , it doesn't work. same project works for 24V BLDC Motor.

    I didn't find any document/thread which uses  DRV8312 to drive 48V BLDC motor.

    Please help.

  • Can you please have a try with a different project? As you say, DRV8312 kit should be compatible with 48V motor setup. Instead of InstaSPIN_BLDC_GUI_project, please try with just InstaSPIN_BLDC project. If you are also unable to spin the motor with this project, we will look further into the code to see if there is some hard-coded value that will need to be changed.


    Sean

  • Sean,

    First of all thank you for your answer.

    Now i am able to drive 48V BLDC with InstaSPIN_BLDC lab project using CCSv4.1.

    Here i am using LEVEL6 buildlevel to run in torque control mode.

    I have following doubts regarding the above project.

    1.What are the parameters that needs to be changed to run any BLDC Motor.??

    for example no. of poles,Base frequency,etc.

    2.How to configure commutation logic for particular BLDC Motor.??

    I mean in program what variables needs to be changed??

    3.Is there any Heat sink solution available for DRV8312 IC????

    I read in DRV8312 datasheet, about Thermally enhanced powerpad package but could not able to understand

    how it will help to solve heating problem.

    I mean is it some external component that i should connect to DRV8312 IC??? 

    Please help..

    I would be highly grateful,if i get any help on above matter.

    Thanks in advance.

  • 1. For InstaSPIN_BLDC, the system does not need to know any of the motor parameters. This is one advantage of this control algorithm over FOC. All you will need to change is the motor current rating; this is done in BLDC_Int-Settings.h, under "#define BASE_CURRENT". Please change that value to the rated current for whatever motor you want to run. Also, in BLDC_Int.c, please change the value of IRef depending on how your system is setup. If running at full load, you will need to change IRef closer to 1, to represent a higher duty cycle. If no load, you can leave IRef = 0.1 for lower duty cycle.

    2. For InstaSPIN_BLDC, there is only two commutation logic states: clockwise and anti-clockwise. You change these states by commanding positive or negative torque. If you want to change the motor phase logic, please do so by changing motor phase connection in hardware.

    3. DRV8312 team may be able to better answer this, as our team does not handle support for that device. Looking at the datasheet, it appears as if the DRV8332 is a more robust version of the DRV8312 that can be coupled via heat sink paste to a large heat sink (i.e. piece of metal on the PCB). The external component would be the heat sink, connected via a paste that has low thermal resistance; one is suggested on page 28 of the DRV8312 datasheet

    Sean
  • Sean,

    Thank you so much for your quick response.

    1.I have changed the BASE_CURRENT according to motor datasheet value.

    But Hamming sound is coming from BLDC Motor, when it  is running at high speed.

    So is that problem due to some parameter mismatch???

    3.I didnot find any Heatsink for DRV8312.

    So can i use Heatsink which is available for DRV8332, for DRV8312???

    Any insight is appreciated.

    Please help.

  • Humming can occur due to switching frequency, or unstable speed of the motor.

    1) What is the DC bus voltage? Is the motor operating at rated voltage and speed?

    2) What is the PWM frequency you are operating at? And what is the electrical frequency of the motor itself? We typically need the ratio of (PWM freq/electrical freq) to be as high as possible to increase the number of samples per commutation cycle.

    For the heatsink, I usually see these as just a large piece of metal attached to the PCB and the driver. I do not think we have a specific part number for something like this. Again, you would be better served to ask the motor driver team about this as they design these devices.


    Sean

  • Sean,

    Thank you for your quick response. 

    1.DC Bus voltage is 48 Volts. I think it is operating at rated voltage and speed.

    2.PWM Frequency is 20Khz. You mean to say Base electrical frequency if yes then it is 407Hz.

    According to above parameters Ratio(PWM freq/electrical freq) is 49.14.

    What would be the ideal value of these Ratio???

    Thanks in Advance.

    Please help.

  • Sean,

    I am using InstaSPIN_BLDC  lab project to run BLDC Motor into torque control mode using CCSV4.1.

    This lab project has RAM configs instead of Flash. Because of this reason it does not work after power reset.

    1.How to create FLASH.CMD file so that it will work even after power reset???

    2.I read the following thread for creating FLASH.CMD

    https://e2e.ti.com/support/microcontrollers/c2000/f/171/p/527385/1924485#1924485

    but unable to do so.

    3.In CCS BUILD tab, i did not find build configuration file for FLASH.

    I have attached snapshot for reference.

    Please help.

    Any help on above matter would be highly appreciated.

    Thanks in advance.

    --

    Regards,

    Anil Gupta

    Please help.

  • You'll need to setup a new build configuration for FLASH, please follow the steps I've outlined in this post

    e2e.ti.com/.../538670

    Sean