Hi Rui,
I have just built up the DS18B20 temp project on page 133 of the Home Automation Book.
I am using the ESP8266 ESP12E NodeMCU.
The sketch is uploaded successfully. The DS18B20 is wired as shown in your book. I open the serial monitor and see that I have connected to my network, the web server is running and I have an IP address 192.168.1.61 and new client. I open a web browser and enter 192.168.1.61 and it comes up site can’t be reached after a period of time. I have tried Mozilla Firefox, Chrome and Explorer browsers with no success. Any ideas??
What happens in your Arduino IDE serial monitor afterwards? Can you post the exact messages that are being printed there? It will provide the debugging information that I need..
Hi Rui,
This is what is reported in the serial monitor…
Connecting to vodafone208CAC
.
WiFi connected
Web server running. Waiting for the ESP IP…
192.168.1.61
New client
I enter 192.168.1.61 in a web browser and nothing happens.
It should display something afterwards the “New client” message.
I’m sorry for asking again, but are you sure nothing else appears after trying to open the web server page multiple times?
It should print some sort of error/crash message… Often there’s some sort of error trying to read the temperature sensor that causes the server to crash.
Hi Rui,
After about 15 minutes the web browser reports…
This site can’t be reached
192.168.1.61 took too long to respond.
Try:
- Checking the connection
- Checking the proxy and the firewall
- Running Windows Network Diagnostics
ERR_CONNECTION_TIMED_OUT
I looked at my router NAT Mapping Table and the ESP was connected there under 192.168.1.61.
I have soldered the DS18B20 and resistor to wires and inserted them into the breadboard. The result is the same whether I use the breadboard solely or the soldered connections.
Can you try the DS18B20 read sensor example that comes with the library?
Your sensor might be damaged, because of soldering it and it’s causing the failed readings (that crash your web server).
But it’s weird, because it should print mode debugging information in your Arduino IDE serial monitor… Based on that information is very hard to know what’s happening, because I’ve tested the web server today and it’s working fine on my end.
Thanks for your patience!
Hi Rui,
Yes I built the temp sensor and did everything exactly as you described.
The sensor should not be damaged I have three sensors and tried them all using breadboard and soldered.
I have ordered a few more different ESP8266 and will try those. Maybe something weird with the Litgo branded ones I have.
At least this is giving me lots of experience trouble shooting. Are the Arduino scripts you have all in “C” ? Seems they are.
Yes, most of my Arduino sketches are in just Celsius, but they have a section that you can uncomment to put it in Fahrenheit.
For a better debugging, I would probably recommend reading the sensor with an Arduino UNO using the simple examples that comes with the library: https://raw.githubusercontent.com/milesburton/Arduino-Temperature-Control-Library/master/examples/Single/Single.pde
It uses Digital Pin 2 (the serial monitor baud rate is set to 9600).
Does that example work for you?