-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
pulseIn cause Nodemcu to reset with some pins. #1149
Comments
Tnx for the info. I get strange results with dustPin set to D3 when I run this program on a arduino (nano or uno) it works OK |
I'll echo this bug as well - running Arduino 1.6.7 with the ESP8266 2.0 branch, using the so-called ESP-201 module. As above, trying to run the pulseIn command on any port but the ones above results in a failure to launch the sketch, and even on those ports it will not allow the wifi to work properly and will fail after 3-4 readings, causing the module to reset. |
I tried latest master with D2, D3, D4 and gave up. pulseIn doesn't look to give correct results (I set a very long timeout and try to switch LOW and HIGH manually.) |
I just ran the above test and tried all the reported-failing pins on a D1 Mini and all seems to be well. Given the age and lack of detail, and the fact that it can't be repro'd, closing. If someone does hit this, please do open a new issue with decoded dumps/etc. |
I have faced this problem today using a NodeMCU. |
Hi, i was trying to make working a SRF04 with my nodemcu and i notice something strange that reboot the board. So i tried to minimize my code for find the problem, and appear that pulseIn is causing the board to reset with some pins. (i don't know how).
With this code, and nothing connected to the board:
I read in serial values of type 1 or 2 and the board keep running with ECHO_PIN set to D1,D2, or D8, but with pins D3,D4,D5,D6,D7,D9,D10 I receive instead something like:
and it reset every 3-4 prints.
Did i miss something in the sketch? Why only 3 pins work?
PS: I tried with 3 different nodemcu boards, ESP12E.
Thanks
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: