Search found 4 matches

by so99999
Fri Dec 18, 2020 3:44 pm
Forum: ESP32 Arduino
Topic: repetitive timerAlarmWrite problem?
Replies: 4
Views: 5084

Re: repetitive timerAlarmWrite problem?

I read a bit about freertos timers but it seems that they have ms resolution and not very high priority. I don't think they are feasible for such a project.
by so99999
Fri Dec 18, 2020 2:20 pm
Forum: ESP32 Arduino
Topic: repetitive timerAlarmWrite problem?
Replies: 4
Views: 5084

Re: repetitive timerAlarmWrite problem?

Thank you. I will investigate the rtos timer. I am not sure but I think its maximum resolution is 1microsecond. This could not be enough for higher micro-stepping settings and for some thread pitches. I tried to put that code into the loop, but the problem still persists. Actually, I don't think the...
by so99999
Fri Dec 18, 2020 11:10 am
Forum: ESP32 Arduino
Topic: repetitive timerAlarmWrite problem?
Replies: 4
Views: 5084

Re: repetitive timerAlarmWrite problem?

This short video shows the problem:
https://www.youtube.com/watch?v=concZ-D ... e=youtu.be
by so99999
Fri Dec 18, 2020 11:04 am
Forum: ESP32 Arduino
Topic: repetitive timerAlarmWrite problem?
Replies: 4
Views: 5084

repetitive timerAlarmWrite problem?

Hello everyone, I am trying to implement a lead screw for a small lathe using an encoder and a stepper motor, both controlled by a esp32 board. The encoder has 1000ppr. My idea was to make the speed of the screw to match the speed of the encoder. The stepper motor is rotated using a hardware timer. ...