How to use a different hardware from the hardware used in the example?
3 views (last 30 days)
For the example, 'Hall Offset Calibration for PMSM Motor', the hardware used in the examples are "F28069M Control Card" + DRV8312 Inverter & "LaunchXL F28379D + DRV8305 Inverter".
I want to run the example using my hardware of "LaunchXL F28069M + DRV8301 Inverter".
I had tried to use the blocks for the 'LaunchXL F28069M launchpad", with reference to the example, "Hall Sequence Calibration of 3-phase motor", which utilize the "LaunchXL F28069M launchpad". I had also change the 'Configuration Parameters' to match that of the working example.
However, the motor still does not run.
What changes do I need to make in order for the example to run successfully?
Joel Van Sickel on 28 Sep 2022
it can be fairly challenging to just switch an example and have it work closed loop. There are a number or potential errors that could be made. The best step is to build up small pieces step by step and make sure the system does what you want and expect. This will require some sort of equipment like a scope to ensure the system behaves as you expect. In this case, the first thing you want to do is make sure that you can apply open loop PWM signals from your LaunchXL F28069 on the pins you expect to. After you confirm the PWM is what you want, make sure that you are connecting to the DRV8305 inverter correctly. This could be done open loop to an open circuit or open loop into a high resistive load. Make sure you keep all voltage/current levels safe and don't short any devices. If that is all working, then you should be in a good place to connect your motor. First, you want to try and run the motor open loop and make sure that it spins, then read the sensor values to make sure your hall sensor is working the way that you expect. At any point one of these steps might go wrong and you'll need to calibrate or set up the interface differently until it works. Once all that is working, then you can try and run the motor closed loop.
If you lack a scope, you may want to start with open loop control of the motor.