Name of the file that implements PWM or SPWM sinusoidal modulation?s

Good morning, can someone please tell me the name of the file that implements the PWM or SPWM sinusoidal modulation?

Hi,

You should read the docs or use the search in github:

Hey @DannyJPL,

All our FOC related code is implemented in the BLDCMotor and StepperMotor classes, in the funciton setPhaseVoltage.

For BLDC motors it’s in the src/BLDCMotor.cpp/h:

And for steppers it’s in the src/StepperMotor.cpp/h: