Skip to main content

Motor Folder

components/driving_board/motor


BLDC Motors:

They are used to control the speed of the rover.

bldc.c contains:


The set_bldc_pwm() method. This methods scales the control signal value calculated from control code and adjust the pwm duty cycle outputted by the STM32 accordingly.


Stepper Motors:


stepper.c contains:

stepper.c

The


set_stepper_pwm() method. This methods scales the control signal value calculated from control code and adjust the pwm

frequency outputted by the STM32 accordingly.


Encoders:

read_encoder.c contains:


The read encoders() method.