NodeMCU Temp With Webserver

by AndreasO1 in Circuits > Arduino

4771 Views, 21 Favorites, 0 Comments

NodeMCU Temp With Webserver

webtemp.PNG
serOutput.PNG
NodeMCUTempSensor

NodeMCU Temp with Webserver

is easier you think:

you need a ready setup for the arduino IDE.

Easy and Simple Setup:

Node-MCU-Pin-Out-Diagram1.png
ssid_pass.PNG

You need to connect your TempSensor correct! Always look twice! Because the ESP is not 5V friendly :)

You can grab 3.3V and Ground from Nodemcu right from the USB input.

Between +3.3V and digital pin you need a 4.7K resistor! Yes you need it really!

The one free pin go to ground. For the correct wiring, see your datasheet from your tempsensor:

Example for DS18B20 is here:

http://www.reichelt.de/DS-18B20/3/index.html?&ACTI...

The code for Arduino is here:

--

www.quakeit.de/instructs/18b20_to_nodemcu.ino

My Sensor is connected here to GPIO 4 (D2)

Before you start wiring and upload the code and let arduino ide and check it.

When you look your serial output you see the webadress of your NodeMCU and you can copy it in your browser.

Do not forget to setup your ssid and password, so the nodemcu can make a connection to your router:

Some hints for experimenting:

Use a breadboard for easy wiring.

You can build your own test parts your own with a simple PCB:

http://www.reichelt.de/Streifenraster/H25PS050/3/i...

and

http://www.reichelt.de/Stiftleisten/SL-1X36W-2-54/...

its cheap and you can include some parts like resistors, led, sensors... etc.

if you have questions, just ask, and i try to help.