Paul

Results 53 comments of Paul

Another option to address the step signal generation issue would be to use the Remote Control (RMT) module (https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/rmt.html), using this approach the Step signal frequency could be set by...

so all this POC code is basically to show that there are other ways to generate pulses than the current approach which is basically bit-banging. But it requires quite some...

I will investigate a bit further in the near future, but it is a time consuming change, but certainly a good one in regards to stability and much cleaner signal...

@Humanoidx did you try the changes suggested by 3ricj in his opening post? By changing the core for the service you will probably reduce jitter quite a bit and you...

@xander-m2k thank you for your input. Just a minor "correction": as far as I am aware, core 1 is running at the very same speed as core 0. But due...

@xander-m2k thanks for the update about the ticks, I checked the documentation of FreeRTOS (https://www.freertos.org/implementation/a00011.html) to better understand this task management routine. I read it a bit differently than your...

@xander-m2k as suggested I updated the README file with some content on the jitter topic

@hnnswldschtz thanks for the link, this is an interesting piece of information and might be useful in the future. Unfortunately, I do not see any explanation why the ledpwm function...

I started experimenting a bit again on this topic, the MCPWM peripheral seems not to be present in the ESP32-C3 and ESP32-S2 variants, thus I am not fancying this approach....

are you using microstepping on your stepper driver? Also for testing set maybe a larger position value to rule out problems with the acceleration on a short trip