2023-01-05 02:33 PM
2023-01-05 02:42 PM
I have a very simple motor control design that will always run the motor at 100% duty cycle with the supply voltage changes being used to control the motor speed. The only concern in the code is to commutate the motor.
I got started with the B-G431 board and used the motor control work bench to generate a 6 step driver, which mostly works.
This code will need to be ported to a custom board - with far less capabilities than the eval board - another task that I'd like to use the motor workbench to solve by code generating the code for me.
If I am running the 3 sets of hi/lo gpio pins at 100% duty cycle, do I need timers and PWM associated with these pins? Can I simplify the code - any suggestions where in the code to look?