Telegram Bot Esp8266-001(Arduino UNO or NodeMCU)

by DaniilZ in Circuits > Arduino

14467 Views, 23 Favorites, 0 Comments

Telegram Bot Esp8266-001(Arduino UNO or NodeMCU)

2.jpg

Hello! In this tutorial i will show you how to control arduino with esp8266-001 and telegram. It opens great opportunities for Internet of Things (IoT).

Components

aRoQGf12Ogs.jpg
NmbmK3l_odE.jpg

To enter IoT world you will need:

OR:

And also breadboard, wires, leds, 100-300ohm resistors.

Connect Esp8266 and Led to Arduino

IOT Weather Station_bb.png

Connect ESP8266 and LED to Arduino like on image. Connect GPIO0 to ground and reset to reset of Arduino and upload the code.

Create New Telegram Bot

drawing2.png

Through Botfather create your new bot. Take his TOKEN

Programming

First of all you download and install libraries

  • ESP8266WiFi.h
  • WiFiClientSecure.h
  • TelegramBot.h

Then upload sketch to arduino

Test...

tg.png
TAHtIXfs26g.jpg

Send "on" message to your bot. If LED turned on, congratulations.

Follow Me :)