I’ve been experimenting a bit with the SimpleFOC library and so far I am very impressed.
However I have encountered a problem that I have not been able to fix.
I am using a regular STM32 “Bluepill” and I wasn’t able to increase the PWM frequency, which is currently at around 549 Hz. That’s why my Nema 34 Stepper is making a lot of noise.
Is it because of the stm32_mcu.cpp file or because I am using maple core?
This is my platformio.ini file:
platform = ststm32
board = genericSTM32F103C8
framework = arduino
board_build.core = maple
The driver is connected to pins PB6, PB7, PB8, PB9 and the enable pins are connected to pins PA1 and PA2.
I also tried: driver.pwm_frequency = 25000;, which didn’t work.
Thanks in advance for your help.