This project implements a smart home system that allows users to monitor and control their devices using two monitoring options:
- Blynk Dashboard
- Telegram Bot
- Blynk Monitoring: A user-friendly dashboard for real-time monitoring and control of IoT devices.
- Telegram Bot Monitoring: Receive notifications and interact with your IoT devices directly from Telegram.
- ESP32 or ESP8266 microcontroller
- DHT11
- MQ2
- Servo Motor
- LED
- Buzzer
- Blynk App
- Telegram app (with your bot configured)
- Arduino IDE with the necessary libraries installed
Connect the IoT devices to the microcontroller following the circuit diagram provided in the repository.
- Create a new project in the Blynk app and note the auth token.
- Configure the WiFi credentials and Blynk auth token in the provided code.
- Create a new bot using BotFather on Telegram and get the bot token.
- Add the bot token and chat ID to the code.
Use Arduino IDE to upload the appropriate code for either Blynk or Telegram monitoring.
- For Blynk, use the Blynk app dashboard.
- For Telegram, use the bot commands to interact with your smart home system.
- Blynk: Monitor device statuses and send commands via the dashboard.
- Telegram: Receive real-time updates and send control commands through the bot.
smart-home-main.ino
: Code for Blynk monitoring.esp-telegram-bot.ino
: Code for Telegram monitoring.config.h
: Contains WiFi credentials, tokens, and other settings.
Cheers