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

Aruna , need some help. #23

Open
dkelly324 opened this issue Oct 10, 2017 · 4 comments
Open

Aruna , need some help. #23

dkelly324 opened this issue Oct 10, 2017 · 4 comments

Comments

@dkelly324
Copy link

I'm trying open and close my vertical blinds with your wemo emulator. Everything works fine until I increase the run time on either a servo or stepper. Alexa will tell me something went wrong and do another run. I've added a 6 second delay after test lights on and off in the single switch example and the same thing happens. Help

@kakopappa
Copy link
Owner

can you share your code? You must be blocking the loop()

@dkelly324
Copy link
Author

dkelly324 commented Oct 10, 2017 via email

@dkelly324
Copy link
Author

dkelly324 commented Oct 10, 2017 via email

@kakopappa
Copy link
Owner

kakopappa commented Oct 11, 2017

your problem is you are using delay(). Delay will block the main loop and stops everything (except interrupts) try using a timer to control the stepper.

https://playground.arduino.cc/Code/AvoidDelay
https://forum.arduino.cc/index.php?topic=355651.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants