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.

CCS/DRV8301-HC-C2-KIT: Code to implement the clone DRV8301-HC-C2

Part Number: DRV8301-HC-C2-KIT
Other Parts Discussed in Thread: MOTORWARE, DRV8301, CONTROLSUITE, DRV8312

Tool/software: Code Composer Studio

Hello,

We have made a clone of DRV8301-HC-C2 kit for a competition but we are a little unsure of the code . Unfortunately we could not get the code to implement it on code composer studio.Please can anyone give me a code for :

1. An open loop circuit control of speed variation for 48V BLDC 3 phase motor ,which works on gate switching and power mosfets.

2. A closed loop circuit comprising of hall sensor for feedback for the same motor.

The battery capacity is 48V.

Please help us out ,it is urgent .

Also can anyone tell me if we can directly implement the code on a replica PCB using CCS7 but original Texas Instruments components placed on it.

  • We will not be able to provide any tailored code for you aside from what is already available, but from the description you gave, you should be able to use the example code in ControlSUITE and Motorware. Have you downloaded both of these software suites and investigated? Also, which controlCARD are you using? If your hardware is literally a piece-by-piece replica of the DRV8301 EVM (including the ADC channel assignments and feedback circuitry, as well as the integrated driver signal chain), you should find plenty of code examples to implement the functionality you've listed.

    Sean
  • Thank you sir for your reply .Yes we have indeed downloaded the softwares, but we could not get the required code in either , can you please give me the exact location for the codes that I am asking for or maybe the complete code from your examples itself.

  • Which C2000 MCU are you using?

    Sean
  • Sir we are using Picoolo C200 F20835 micro controller card

  • Please have a look at the documentation and CCS project here: C:\ti\controlSUITE\development_kits\DRV8312-C2-KIT_v128\BLDC_Sensored

    You will need to make some changes in the code to match your hardware, but otherwise that project is a great start for your needs. The incremental build project has intermediary steps for both open loop control, as well as sensored control using Hall sensors

    Sean
  • Thank you sir for your help.

    I have three more questions.

    1.Will this code even work on HC-C2 kit,how should I interface the clone and software or will it occur automatically as I connect to the laptop.

    2. What kind of modification does it need for efficient speed control?

    3. Where can I find the meaning and significance of all the header files used?, and is there a consolidated source where I can even read up for the kit and all the components activated using the header file, such as a datasheet.or any source?

    Please oblige and thank you again for your help. 

  • Please read the tutorial in the /~Docs folder of the directory I pointed you towards. If I'm understanding your question correctly, the interface between the HW and SW will be over JTAG to the F28035. If you are using a controlCARD, you'll connect to CCS via mini-USB. If your custom hardware has the device physically on the board, you'd need to have broken out the JTAG signals to a header set that can be used for programming.

    Some of the modifications necessary are ensuring the pin assignments are correct for things like ADC, PWM and SPI -> DRV8301 outputs. This software is intended as a demonstration for sensored BLDC on the DRV8312 kit. Since you're not using that kit, you'll need to make modifications. I encourage you to look into this yourself to get a better understanding of the hardware and software requirements of the project at hand. The functionality can be ported to any hardware as necessary, given that the inputs to the code (ADC, PWM, SPI, Hall sensor GPIO, etc) are correctly assigned.

    Sean
  • Thank You Mr. BIgley for your help. But I am actually very low on time as well as knowledge , please can you help me with the code correction .I have also found a code on DRV8301 ,please help me to simulate it virtually.?

  • Tejasvin, I am closing this thread for now. Please feel free to create a new thread as necessary.

    Sean