ESP32 and DHT22 abort() crashes #7067
Replies: 1 comment
-
Posted at 2017-12-05 by Wilberforce Sorry, there is an issue with It has been raised on GitHub, however no one has sorted it out. Posted at 2017-12-05 by @gfwilliams ^^ this - DHT11 and DHT22 definitely use setWatch (and also clearWatch) Posted at 2017-12-05 by Disane87 You mean this issue on github? espruino/Espruino#643 Is there any ETA to fix this? Posted at 2017-12-05 by @gfwilliams It's this one: espruino/Espruino#1176
I'm afraid there's no ETA. Nobody makes anything off the ESP8266 or ESP32 ports, so it's very much a free-time project by members of the Espruino community like @wilberforce. It'll get fixed when they feel like it or have a need for it in one of their own projects :) If you need something where someone takes an active role in fixing issues then get an official Espruino board - they're a little more expensive, but that directly pays my salary so I can work full-time to make sure things get fixed in a timely manner :) Posted at 2017-12-05 by Disane87 Ah okay :) Sorry! I guess I have to switch to another solution in the meanwhile. But that projects is very promising! Posted at 2017-12-14 by Wilberforce The It will be in version 1v95, so for now a latest travis build will work: Posted at 2017-12-15 by Disane87 wow, thank you! :) Posted at 2018-02-08 by user73385 I have nearly the exace same problem. So far the OLED runs without any change to my old code, great! But the DHT22 makes me sad.
so i guess i managed to damage my DHT or am i missing sth? mycode:
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-12-05 by Disane87
Hey guys,
thank you for this great project! Currentyl I'm just playing around with some sensors with my ESP32. I'm pretty new to microcontrollers.
I just got a SSD1306 working with espruino on my ESP32, it works flawless. Yesterday I had to connect a DHT22 and my ESP32 keeps crashing after a few measurements of the temp. This code isn't that spectacular, but I really don't know why its crashing. I always get that message:
After the core dump I see:
It doesn't matter how often I read the DHT. It crashes after two measurements and after none.
The DHT is connected to GPIO15 with a pullup resistor (10k). It keeps crashing even without WiFi and a webserver. You can see my wiring (without the oled) attached.
My code:
Does anybody of you have a clue?
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions