Introduction: Smart House Telegram Bot With Nodemcu (esp8266, Relay, Ds18b20)
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!
Step 1: Components
You will need:
- NodeMCU http://ali.pub/2ghaxl
- ds18b20 http://ali.pub/2gs9o6
- 4x relay board http://ali.pub/2gs9wx
- breadboard, wires, 4.7kohm resistor
- 5v 2a power supply
- telegram account
Step 2: Wiring
Connect all components like on scheme. DONT forget about 4.7kohm resistor for ds18b20.
Attachments
Step 3: Install Libraries
You may do it manually. Go to C/users/user/documents/arduino/libraries
Attachments
Step 4: Get Ds18b20 Adress
Upload sketch to nodemcu and run sketch. Open serial port and get sensor's adress
Attachments
Step 5: Create Telegram Bot
Contact with botfather.
Create new bot.
Take his token.
Step 6: Programming Nodemcu
Connect nodemcu to PC.
Open sketch.
Edit ssid, password, bot token, ds18b20 adress.
Upload sketch to aduino.
Attachments
Step 7: Congratulations
Ccommands for bot:
- 1on, 1off, 2on, 2off, 3on, 3off, 4on, 4off
- temp
Step 8: Contact Me
Join my telegram channel for more projects.
It's my motivation for biggest projects.
Also, my instagram