RelesWemos TelegramBot ESP8266
by jcherreradev in Circuits > Microcontrollers
17 Views, 1 Favorites, 0 Comments
RelesWemos TelegramBot ESP8266


Allows to control relays remotely through a Telegram bot. It uses an ESP8266, which receives commands to turn relays on or off, manage users and configure automatic on/off schedules. In addition.
Features
- ESP8266 connects to the Internet and links to a Telegram bot.
- It receives commands from Telegram to turn on/off relays and configure the system.
- Supports manual and automatic control according to predefined rules.
- Incorporates a system of LED alerts to indicate connection and configuration status.
- Allows management of registered users and relays.
Alerts LEDs
- 🔴 (Red) - No WiFi connection.
- 🔵 (Blue) - No Internet connection.
- 🟡 (Yellow) - No data configured.
- ⚪ (White) - Configuration mode activated.
- 🟢 (Green) - Everything working correctly.
Supplies

- x1 ESP8266 board
- x1 Relay Module (depending on the number of devices to be controlled)
- x1 RGB LED
- x1 Push button
- x4 Resistors
Environment Configuration
Software
- IDE: Arduino IDE v2.3.x
- Board: LOLIN(WEMOS) D1 mini
- Framework: Arduino ESP8266 v3.1.2
- Partition: 4MB(FS: 3MB OTA: 512MB)
Libraries
- WiFiManager v2.0.17 → For WiFi connection configuration.
- UniversalTelegramBot v1.3.0 → For communication with Telegram.
- ArduinoJson v6.21.5 → For handling JSON data.
Flow of Operations
- Startup and Configuration: When the device is turned on, it attempts to connect to WiFi and retrieve stored configurations. If there is no data, it enters configuration mode.
- Interaction with Telegram Bot: Users can send commands to control relays and configure permissions.
- LED alerts: indicate system status in real time.
- Notifications: Messages are sent in Telegram when there are important changes or errors.