-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reset Loop while using WebServer on 8266 #3
Comments
Hmm, I'll have to break out my ESP8266 to test, but sounds like it might be a power issue if the ESP is hardware resetting (esp. if you're powering the motor from the ESP directly - you should use a separate 5v DC power supply) |
I was using a separate power supply for the motor and the ESP. I was able to get it working using the AccelStepper library. |
Cool, glad you got it working - I'll leave this issue open as a reminder to
test both libs with my ESP to see why this one is choking
…On Thu, Apr 6, 2017 at 11:18 AM, Markus Neuhoff ***@***.***> wrote:
I was using a separate power supply for the motor and the ESP. I was able
to get it working using the AccelStepper library.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AH9UjpiS9JXzP7BWOXoZNjYhyruWqb5Jks5rtQJegaJpZM4MyWrg>
.
|
I've got the same with external power supply. Also, the issue occurs even if the motor is completely disconnected from anything (only ESP, usb cable and PC). So, it's seems like some software failure. I noticed the it happens when rotation is invoked for more than 90-120 degrees (regardless by steps or by degrees). My sketch is simple:
The the stack trace is:
Hope this helps |
A bit more googling suggested that the key thing here is:
just before the stack trace (esp8266/Arduino#2240). Specifically "Soft WDT reset". This is ESP-specific watch dog doing reset when it doesn't get the control back in a reasonable time (and that is a huge difference from "delay()" call). Arduino doesn't have this mechanism as it doesn't have a network stack running in background and thus can do "delayMicroseconds" as much as it wants. |
I am trying to run a very basic web server (relevant code included below) and am stuck in a reset loop. The starting setup line is never reached. I am using platformio to include the library and compile the code. Ultimately, I'd like to be able to trigger two stepper motors and an LED from a website hosted on the ESP. I have tried a number of variations on how to construct the stepper object with the same result each time. Any ideas? Thanks!
The text was updated successfully, but these errors were encountered: