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/LAUNCHXL-F28069M: Can I use InstaSPIN-FOC with my on driver board?

Part Number: LAUNCHXL-F28069M
Other Parts Discussed in Thread: CONTROLSUITE, MOTORWARE, DRV8301

Tool/software: Code Composer Studio

Hi,

I'm new to CCS, MotorWare, ControlSuite, and the insane amount of documentation. I'm having issues finding the right information to get started for a project that doesn't use TI's BOOST or driver components. I have all the information for motor parameters, driver board specifics, and user I/O. If anyone has some suggestions or tips for getting a project like this set up so that I can plug and play with the modules/API's for the FOC package, that would be great. If this HW is unable to do the suggested tasks, please let me know.

Thanks,

Logan

p.s. Also, I purchased a controlCARD and eval kit just in case it would be easier to work with.

LAUNCHXL-F28068M

interface with pwm to driver board for a IPM motor thats used as an ISG in automotive applications

  • There are a few good diagrams in the first pages of the InstaSPIN user's guide that demonstrate the SW/HW realms www.ti.com/.../spruhj1f.pdf. Page 28 has a figure that shows the connections between "motor controller" and a DRV8301. For your driver, some or all of these connections may be relevant to your system, that just depends on what your driver implementation looks like.

    At it's core, InstaSPIN interacts with the HW power driver/3-phase inverter through the MCU PWM and ADC drivers. Page 26 of the "InstaSPIN Projects and Labs User's Guide" in MotorWare shows what APIs are necessary to interact with those drivers - namely HAL_writePwmData(), HAL_actAdcInt() and HAL_readAdcData().

    Our DRV8301/8305 have SPI capability for settings and fault capabilities, so our SW has integrated the SPI settings into the projects to account for that. I would suggest adapting the High Voltage Kit labs, as that kit is only an inverter and not an SPI-enabled driver. That said, there is still settings in the user.h that need to match HW settings on your own board, so it's not really a "plug and play" choice. That wouldn't exist as our SW does depend on the HW.. there's no getting around that these two realms are intrinsically connected.

    A good place to start would be reading through the "InstaSPIN Projects and Labs User's Guide" in MotorWare. If you'd rather rip right into code, I would start with lab11, which is a bare-bones implementation of our observer. You'll still need to read through the code, follow the API calls, and see how the initialization flow happens, paying close attention to PWM and ADC inits/calls.

    Sean