HiGrow ESP32 DHT11 #7070
Replies: 1 comment
-
Posted at 2018-02-14 by Gustav Found a few pins from a lookalike project that seems to work. Problem now is that i try to use the DHT11 module do get the correct values but it throws a nasty looking error:
Any thoughts ? Posted at 2018-02-15 by Wilberforce See here http://forum.espruino.com/conversations/316733/ You might have an earlier firmware that had an issue. Posted at 2018-02-15 by Gustav I tried with both 1v95 and 1v94 and none worked. I tried just choosing a different pin aswell, and then i got
And if i do a normal analogRead on pin 22
Posted at 2018-02-15 by Wilberforce Sorry - your information is a little vague if you want help with this!
Did you get the crash with 1v95? Posting your code might help.
Ok. What pin and did yout try? What are you testing? For the http://www.espruino.com/ESP32#gpio-pins http://www.espruino.com/ESP32#analog-read-write-example You should refer to the pins at the D numbers. The pins on the board may be numbered differently. Espruino uses the chip pin numbering for the esp32. To read ADC0:
Posted at 2018-02-16 by Gustav I got the same error with both versions of Espruino.
When a try pin D22 i get the error that i posted in the top post. Guru meditation.. When i try randomly reading pin D17 with the DHT11 module i get the answer
When i do a analogRead() On pin D22 i get
Sadly i cannot follow the actual pin to the sensor premounted on the board.. But from a look at other projects they use pin 22. Posted at 2018-02-16 by Wilberforce What is the output of This should read the ADC which will be contected to the soil probe. Posted at 2018-02-16 by Gustav analogRead(D35) reads 0, but from what i know the soil pin is D32 and it works, displays 0.8, when i hold my fingers around it displays around 0.4 so it works. Posted at 2018-02-18 by Wilberforce @gfwilliams
https://github.com/espruino/Espruino/blob/master/src/jsdevices.c#L706 ( line 6 below)
EV_EXTI_MAX is defined as: https://github.com/espruino/Espruino/blob/e609b94f83f665c26cf4f86acac068c396427e99/src/jsdevices.h#L54
@jumjum did the setwatch code for ESP32 - so I'm unsure how pin numbers (D22 in this case) is mapping to a channel? Posted at 2018-02-19 by @gfwilliams Thanks - let's figure this one out in the issue you filed on GitHub? Posted at 2018-02-19 by Gustav Great job guys ! no more Meditation error ! but now i get:
When trying to read D22 ? thoughts.. why isnt it recieving any data.. Posted at 2018-02-19 by Wilberforce Did you pull the latest firmware and build? Thanks to @gfwilliams, there is now a fix on the ESP32 if the pin > D15, so this should now work for D22. The firmware bin file can be fetched here: This is now working:
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-02-14 by Gustav
Just got myself this badboy: https://www.aliexpress.com/item/higrow-ESP32-WiFi-Bluetooth-Battery-DHT11-Soil-temperature-and-humidity-sensor-module/32818803204.html
Flashing worked perfect and wifi connection no problems. But now i wonder how am i going to find the pin to read the Temp and humidity from the dht11 ? anyone had this board before? Same as finding the correct pin to read the soil..
Beta Was this translation helpful? Give feedback.
All reactions