Skip to content
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

esp8266 reset issue on this driver #4

Closed
EngrMubasharAli opened this issue Jun 4, 2016 · 5 comments
Closed

esp8266 reset issue on this driver #4

EngrMubasharAli opened this issue Jun 4, 2016 · 5 comments
Assignees
Labels
Milestone

Comments

@EngrMubasharAli
Copy link

hello, on including this driver, esp8266 will repeatedly reset, it seems to take long time on execution, is any one use in their yield(); or delay(); function in files where its stuck for a while to prevent further execution so it may not rest on watch dog

@laurb9
Copy link
Owner

laurb9 commented Jun 4, 2016

Does this happen with the examples ?

@EngrMubasharAli
Copy link
Author

yes, i use example as is , the name of example is 'clock stepper' but its works on Arduino Uno,
i am using esp version 2.0, IDE version 1.6.5

laurb9 added a commit that referenced this issue Jun 6, 2016
both setRPM and setMicrostep calculate timings but only microstep is initialized to 1 by default
minor optimization (exit loop early)
laurb9 added a commit that referenced this issue Jun 6, 2016
add yield() in wait function.
still need to investigate the impact at high speeds and slow Mhz.
@laurb9
Copy link
Owner

laurb9 commented Jun 6, 2016

Try the branch bugfix/esp8266-reset
Also you have to change pin numbers - use D8, D9 and so on instead of 8, 9 etc.

@laurb9 laurb9 self-assigned this Jun 6, 2016
@laurb9 laurb9 added the bug label Jun 6, 2016
laurb9 added a commit that referenced this issue Jun 6, 2016
add yield() in wait function.
still need to investigate the impact at high speeds and slow Mhz.
laurb9 added a commit that referenced this issue Jun 6, 2016
STEP_PULSE needs both rpm and microstep to avoid division by zero (this happened in ESP8266 but not on Arduino)
@EngrMubasharAli
Copy link
Author

the fix use in bugfix/esp8266-reset doesn't give enough pulse to step the motor,

@laurb9
Copy link
Owner

laurb9 commented Jun 9, 2016

Can you clarify that ? Are you referring to timing or something else ? The fix should not have altered the pulse timing, but it maybe there's a logic level mismatch ? the ESP is 3.3V logic.

Also make sure that you are using the pin macros (i.e. D8, D9 etc), not integers like 8, 9...

@laurb9 laurb9 added this to the 1.0.6 milestone Jul 24, 2016
@laurb9 laurb9 closed this as completed Jul 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants