-->
Page 1 of 1

Problem running WiFi and DHT module at the same time

PostPosted: Tue Feb 16, 2016 4:49 pm
by Axiom42
I have a recently purchased ESP8266 breakout board. I followed the code examples in the "essential tutorial" on the adafruit site and everything worked fine, I was able to run all of the samples, connect to a Web site, and GET a page from an HTML server.

When I tried to attach a DHT11 sensor to the board, I got an error that the "dht" module was not available. After some research I found that the 0.95 build 20150318 version of the firmware does not include the "dht" module.

I went to http://nodemcu-build.com/ and built custom firmware that included the "dht" module. After flashing the ESP8266 I'm able to read temperature and humidity data from the DHT11 sensor, but the "wifi" module no longer lists the access points nor does it get an IP address.

Thinking that I might have done something fatal to the wifi circuitry, I re-flashed the 0.95 firmware and tested again. After re-flashing I was once again able to connect to my wifi access point and download a page from the Web.

Does anyone have any advice for how to get both the "wifi" module and the "dht" module to work at the same time? Or do you know where the appropriate forum for this question is?

Thanks,
Chuck

Re: Problem running WiFi and DHT module at the same time

PostPosted: Sat Mar 05, 2016 8:12 am
by TerryE
The DHT module does bit banging for too long and screws up the wifi. We've just been talking about this one the nodemcu issues list. It is recoverable, but not nice to do so. sorry.