DS18B20 module hang up ESP8266 ESP-12F? #5626
Replies: 1 comment
-
Posted at 2017-01-09 by countxerox The function getTC() is called inside its own definition, maybe that's why, you could try..
Does that work? Posted at 2017-01-09 by Ollie Which espruino version? Your code runs indefinitely for me using 1.87 and a dev board based on the same chip (either E or F). How are you powering your 12F? Posted at 2017-01-09 by MSol Thanks for your reply! Unfortunately, it does not work also. I have Espruino v1.89. My ESP-12F is powered by external DC +5V 600mA power supplier over DC/DC converter 5V-to-3.3V (see file attached). Posted at 2017-01-09 by MSol Here is file with schematics. Attachments: Posted at 2017-01-09 by Ollie Maybe flash 1.87 to rule a bug rule out. My board is a D1 Mini. Running your exact code I'm into the 1000's on the counter, so your code is ok I'd suggest. Posted at 2017-01-09 by MSol One moment. Let me update firmware... Posted at 2017-01-09 by MSol I have upload 1.87 from http://www.espruino.com/files/ according to "README_flash.txt" and got new problem - firmware does not work. After flash v1.87 firmware, WEB IDE displays correct version:
After flashing of simple test code:
device reboot and hang up again:
Notes: My previous version Espruino v1.89 works fine with above simple test; Now I am using 5V 5A external power supplier; I have tested three devices including "NodeMCU board" - WEB IDE console displays ERROR as above. Posted at 2017-01-09 by Ollie I don't know. I'd be inclined to suggest power - oftentimes ESP8266 weird resets seem to be power related. I can't make out the circuit diagram that well but you have a capacitor in there? What size? I think recommended min is 47uf. Does that say 0.1uf? Posted at 2017-01-09 by Ollie It's not your code anyway. Just turned it off.
Posted at 2017-01-09 by MSol My PCB has two 47uF 16V Tantalum capacitors around DC/DC. I guess, I have found wrong firmware ZIP file, because NodeMCU even board does not work with v1.87. Posted at 2017-01-09 by MSol Ollie, could you give me proper link on v1.87 firmware file? Posted at 2017-01-09 by Ollie Look in espruino.com/binaries that where I go. Posted at 2017-01-09 by MSol Thanks to everybody! Short report:
My test environment consists:
Feel free to contact me if any question. Posted at 2017-01-09 by Ollie How long? I thought you had a count of 36? Did you find the 1.87 binaries in that URI? Sorry poor formatting - mobile as left work Posted at 2017-01-10 by MSol Correct, 36 times with callback function and about 60 otherwise. Yes, I have found 1.87 binary. Unfortunately, it has another problem related to "Send to Espruino" function in WEB IDE (see post #8 above) , i.e. periodic self-reboot. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-01-09 by MSol
Hello,
my DS18B20 test does reboot device after 36 times of data reading (Espruino v1.89). Test code:
Console output:
The call of sensor.getTemp() without callback a little extends the live time.
Thank you in the advance!
Beta Was this translation helpful? Give feedback.
All reactions