Telegram Bot Esp8266-001(Arduino UNO or NodeMCU)
Intro: Telegram Bot Esp8266-001(Arduino UNO or NodeMCU)
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).
STEP 1: Components
To enter IoT world you will need:
- Arduino UNO http://ali.pub/2g9ziq
- Esp8266-001 http://ali.pub/2gnqf3
OR:
- NodeMCU http://ali.pub/2ghaxl
And also breadboard, wires, leds, 100-300ohm resistors.
STEP 2: Connect Esp8266 and Led to Arduino
Connect ESP8266 and LED to Arduino like on image. Connect GPIO0 to ground and reset to reset of Arduino and upload the code.
STEP 3: Create New Telegram Bot
Through Botfather create your new bot. Take his TOKEN
STEP 4: Programming
First of all you download and install libraries
- ESP8266WiFi.h
- WiFiClientSecure.h
- TelegramBot.h
Then upload sketch to arduino
STEP 5: Test...
Send "on" message to your bot. If LED turned on, congratulations.
3 Comments
saiid.bouaziz 3 years ago
J'ai toujours cette erreur lors de la compilation: ESP8266WiFi.h: Aucun fichier ou répertoire de ce type. et pourtant j'ai bien installé les bibliothèques requises.
Merci d'avance pour votre retour.
syahjihan89 4 years ago
i already search at the google and cannot find that can work with this code
matheusvitor 4 years ago