Issue with TI Launchpad F28069M with DRV8301
6 views (last 30 days)
Show older comments
I am using a TI Spin Motor Kit with the TI Launcpad F28069M and a DRV8301 inverter. However, the MATLAB examples provided are designed for the TI Launcpad F28069M with inverter DRV8305. I would like to run the following MATLAB example with my setup:
What changes are required in the hardware configuration, software (GPIOs, ADC channels, scaling factors, etc.), and control setup to adapt this example from DRV8305 to DRV8301 with Launcpad F28069M?"
0 Comments
Answers (2)
Aabha
on 19 Aug 2025
I understand that you want to run the “Run ThreePhase AC Motors OpenLoop Control & Calibrate ADC Offset” example with the DRV8301 inverter. According to the details provided in the following documentation link, the example supports both DRV8301 and DRV8305 under the model variant ‘mcb_open_loop_control_f28069MLaunchPad’ when paired with the ‘F28069M LaunchPad’: https://www.mathworks.com/help/mcb/gs/run-three-phase-AC-motors-open-loop-control-calibrate-adc-offset.html
Some configuration changes need to be made in the model, for example changing the GPIO pin in the ‘Hardware Enable Block’, or changing the ‘Inverter Enable Logic’ which are specified in the following documentation link: https://www.mathworks.com/help/releases/r2024b/mcb/gs/run-three-phase-AC-motors-open-loop-control-calibrate-adc-offset.html
These changes can be made in the variables defined in the initialization script, ‘OpenloopMotorControlCallback.m’.
Additionally, you can refer to the following file exchange example that uses DRV8301 inverters for other specific configuration settings: https://www.mathworks.com/matlabcentral/fileexchange/49109-dual-motor-control-with-ti-launchxl-f28069m-launchpad
I hope this helps.
0 Comments
saish
on 19 Aug 2025
Edited: saish
on 19 Aug 2025
Hey Ankit,
The DRV8305 and DRV8301 mainly differs in enable pin logic and current sense/ SPI settings, rest all is same. In order to run the example you mentioned on DRV8301 instead of DRV8305 do the following things so to match the required settings.
- Set the models’s “DRV830x Enable” to “GPIO12” and clear faults.
- Set DRV8301 current gain at certain value ( you can try x20, x60 and x80 and choose one which works well) and clear faults.
- Map Ia, Ib, Vdc to the pins your board actually uses.
- Enter your shunt value and chosen gain to compute the A/count according to the following formula -
A/count = (ADC full scale volts/ 4096) / (shunt value * Gain)
Follow the given steps for Offset Calibration -
- Disconnect motor phases
- Run the host model, look at Median of Ia/Ib
- Paste those numbers as Offsets so zero current shows as ~0
At last connect the phases, set some speed say 500 rpm and step by some value say 100 rpm. If it stalls at higher speed, change the correction factor up a little. This would help you run the model “OpenloopMotorControlF28069mLaunchPad” from the models given in the documentation mentioned by you.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!