Smart House Telegram Bot With Nodemcu (esp8266, Relay, Ds18b20)

by DaniilZ in Circuits > Remote Control

20404 Views, 32 Favorites, 0 Comments

Smart House Telegram Bot With Nodemcu (esp8266, Relay, Ds18b20)

nodemcu tg ds relay.jpg

In this tutorial i will show you how to create telegram bot and control house using it.

But firstly, subscribe my Telegram channel, and discover new projects faster then others. It's motivation for me.

Let's go!

Components

tg node comp.jpg

You will need:

Wiring

Untitled Sketch 2_bb.jpg
photo_2018-04-26_20-40-13.jpg

Connect all components like on scheme. DONT forget about 4.7kohm resistor for ds18b20.

Install Libraries

You may do it manually. Go to C/users/user/documents/arduino/libraries

Downloads

Get Ds18b20 Adress

DS18B20-Arduino-Tutorial-2-Output.jpg

Upload sketch to nodemcu and run sketch. Open serial port and get sensor's adress

Create Telegram Bot

create bot.png

Contact with botfather.

Create new bot.

Take his token.

Programming Nodemcu

ard.png

Connect nodemcu to PC.

Open sketch.

Edit ssid, password, bot token, ds18b20 adress.

Upload sketch to aduino.

Downloads

Congratulations

work.png

Ccommands for bot:

  • 1on, 1off, 2on, 2off, 3on, 3off, 4on, 4off
  • temp

Contact Me

Join my telegram channel for more projects.

It's my motivation for biggest projects.

Also, my instagram