ESP8266-12 Blynk Wireless Temperature, Humidity DHT 11 Sensor

48,561

83

13

Intro: ESP8266-12 Blynk Wireless Temperature, Humidity DHT 11 Sensor

in this project using a esp8266, to show the temperature and humidity DHT11 sensor on your smartphone or tablet.

------------------------

the esp8266-12 runs at 3.3V but many sensors operate at 5v, we will use a level logical bidirectional converter to be able to connect.

------------------------
This project is linked to the previous ones, are more projects that can work together to create an automated home.


ESP8266-12 standalone blynk control outlets wireless 433 mhz

Esp8266-12 blynk wireless electric power meter

Step 1: Materials

ESP8266-12 (esp8266-7, ...... , esp8266-12e)

level logic converter bidirectional 3,3v -- 5v

DHT11 temperature and humidity sensor

power regulator 3,3v-5v

Step 2: Connections

ESP8266

VCC +3,3v

CH-PD +3.3v

gpio12 ---- RX0 (low level logic converter)

GND ground

GPIO5 ground

--------------------------------------------------------------------------

logic converter bidirectional

HV +5v

GND ground

RXI --- pin 2 (DHT11)

LV +3,3v

GND ground

RX0 -----gpio12 (ESP8266-12)

---------------------------------------------------------

DHT11 sensor

pin 1 +5v

pin 2 output .---- RXI (high level logic converter)

pin4 ground

Step 3: Blynk App

http://www.blynk.cc/

------------------------------------------

store app

Blynk Apple Store

Blynk Google Play store

------------------------------------------

configure blynk

create new project ( use hardware model esp8266 )

generate AUTH TOKEN

send E-mail TOKEN ( copy TOKEN in the esp8266 sketch)

in the app Blynk use Value Display widget or Gauge widget

Step 4: Sketch

sketch

blynk library

SimpleTimer library

----------------------------------------------------------

to programming the ESP8266-12, I use ide arduino 1.6.5 and CP2102 3.3V USB To UART Serial Interface Module Adaptor ( do not connect the power of the CP2102 to esp8266-12).

-----------------------------------------------------------

ESP8266 sketch
change the sketch in the following lines with your data

char auth[] = "xxxxxxxxxx"; //insert here your token generated by Blynk

Blynk.begin(auth, "ssid", "password!"); //insert here your SSID and password

Step 5: Thaks

Thanks by catoplepa

6 People Made This Project!

Recommendations

  • Audio Contest 2018

    Audio Contest 2018
  • Tiny Home Contest

    Tiny Home Contest
  • Fix It! Contest

    Fix It! Contest

13 Discussions

0
None
kaju666

1 year ago

How to change this projest to use only 3,3 voltage? DHT11 don't need 5v.

0
None
smartie91

2 years ago

i cannot believe there is some many codes on instrutables which will not compile including this one

0
None
catoplepa

2 years ago

I have not changed anything, the pins enter without force and without having to bend

0
None
leenowell1

2 years ago

Thanks very much for getting back to me. Looking at the link, they look like the same ones that I have. How did you get them to have an electrical connection to the holes on your esp-12? As far as I can see the copper connection is on the top only so putting the jumper wire in wouldn't connect. Also, do you push it straight through into the breadboard itself - assume you would need to bend the jumper?

0
None
catoplepa

2 years ago

I use this cables

http://hobbycomponents.com/cables/115-arduino-breadboard-jumper-cable-wires-65-cable-pack

0
None
leenowell1

2 years ago

Hi

Perhaps a silly question but.... What wires are you using to connect the esp to the breadbaord? They look like they connect into the esp holes and form an electrical connection. These are exactly what I am looking for

0
None
catoplepa

2 years ago

thanks for the comments, I will test the proposed changes and possibly will revise the sketch

0
None
tarikgan

2 years ago

hello Akin.
My wiring is stated in the picture. I think it is pretty clear to follow.
I have uploaded my code to GitHub, you can check there:
https://gist.github.com/tarikgan/ccd85b9ced347293a593

0
None
iolanda1

2 years ago

Hey there thanks for sharing this awesome project of yours, I have one little question how do you change "celsius to Fahrenheit" in your sketch code?

0
None
catoplepa

2 years ago

Hi homerruma

I added the library in the step 4

Thanks

1 reply
0
None
catoplepa

2 years ago

Hi, ErwinW4

I think it's possible, but I do not have that version to test

Thanks

Catoplepa

0
None
ErwinW4

2 years ago

Hey nice project.

Is it also possible with ESP8266-1?