-->
Page 2 of 2

Re: accelstepper and watchdog error

PostPosted: Wed Jul 08, 2020 3:09 am
by Gokhan E
Thank for the explanation. I saw also blocking info but i didn't think it will cause watchdog.
In my situation like you said when i disable sft watchdog it trigger hdw watchdog.
I think of 2 solution.
A- Found a new library. I dont know how :)
B- Run the loop step by step like 50 step by 50 step. In that case it will run like stop go stop go so i dont know how the acceleretion etc... will affect by this.

Re: accelstepper and watchdog error

PostPosted: Wed Jul 08, 2020 9:51 am
by pangolin
A: Google
B: Slowing down your own loop or doing it a line at a time ect its pointless and will do nothing...the problem is in the single line blocking library call.

There is no way you can fix your code with that library, so A is your only option.

Re: accelstepper and watchdog error

PostPosted: Thu Jul 09, 2020 6:05 am
by Gokhan E
Option B worked :) but its funny that motor stop,work,stop,work. Like you said its not an exact solution only temporary one.

I am serching for a library. If i can find one i will write.


Update: It worked with accelstepper without blocking. I needed to change structure. When i clean the code i will post it for others.

Re: accelstepper and watchdog error

PostPosted: Tue Jul 21, 2020 12:17 pm
by Gokhan E