First things first: This is a great library. Well done and easy to integrate. I'm trying to run a single axis while simultaneously having a PWM switching a gate driver.
Watchdogs and Wifi are disabled. There are three other tasks pinned to core 0. They all read pins and buffer the value. vTaskDelay for two of these tasks is 50 and one uses a vTaskDelay(10).
The problem I have is that above 5khz PWM the Stepper starts to make Problems. At 7khz it starts to vibrate and at 10khz there is no motion left at all. Without PWM or with a PWM about 5khz it works like intended.
It seems that the fast PWM signal won't allow the FastAccel engine to execute it's tasks.
Are there any solutions or known issues for this situation or is it just not possible?
Hi,
First things first: This is a great library. Well done and easy to integrate. I'm trying to run a single axis while simultaneously having a PWM switching a gate driver.
The PWM signal is generated this way:
I run the FastAccelStepper engine on core 0 with:
engine.init(0);
Watchdogs and Wifi are disabled. There are three other tasks pinned to core 0. They all read pins and buffer the value. vTaskDelay for two of these tasks is 50 and one uses a vTaskDelay(10).
The problem I have is that above 5khz PWM the Stepper starts to make Problems. At 7khz it starts to vibrate and at 10khz there is no motion left at all. Without PWM or with a PWM about 5khz it works like intended.
It seems that the fast PWM signal won't allow the FastAccel engine to execute it's tasks.
Are there any solutions or known issues for this situation or is it just not possible?