Smart Bell(Automation Project)
This project aims to create a smart doorbell system using an ESP32 microcontroller. The system integrates a relay, buzzer, and transistor to notify users of a visitor's presence, and an RTC (Real-Time Clock) module for timekeeping. The project demonstrates how IoT can be utilized for smart home automation, enhancing security and convenience.
Project : 51
Introduction:
This project aims to create a smart doorbell system
using an ESP32 microcontroller. The system integrates a relay, buzzer, and
transistor to notify users of a visitor's presence, and an RTC (Real-Time
Clock) module for timekeeping. The project demonstrates how IoT can be utilized
for smart home automation, enhancing security and convenience.
Components Used:
- ESP32
Microcontroller: The main control unit that processes inputs and manages
the system.
- Resistors:
For current limiting and protection of components.
- Relay:
Used to control external devices like a doorbell or light.
- Buzzer:
Provides an audible alert when the doorbell is pressed.
- Transistor:
Acts as a switch to control the buzzer and relay.
- RTC
(Real-Time Clock) Module: Keeps track of the current time, allowing for
time-stamped notifications.
- Connecting
Wires: To connect buzzer to the relay.
- Barrel
Jack: To power the ESP32 and other components.
Schematic Diagram:
PCB Design:
- 3D view:
Pin Configuration
- Relay
Control Pin: Connected to D23 of the ESP32.
- Buzzer
Control Pin: Connected to GPIO 18 of the ESP32.
- RTC
Module Pins: Connected via I2C (SDA and SCL pins on ESP32).
- Relay
Control Pin: Connected to D23 of the ESP32.
Libraries Used
1. Wire: For I2C communication with the RTC module.
2. RTC lib: For interfacing with the RTC module.
3. Wi-Fi: For connecting the ESP32 to a Wi-Fi network.
Code:
Code is in the following GitHub repository:
4mrit/open-smart-bell-firmware-esp32
(github.com)
Working:
1.
Initialization:
o The
ESP32 initializes serial communication at 115200 baud rate.
o The
RTC module is initialized for timekeeping.
o Wi-Fi
connection is established using the provided SSID and password.
o Microcontroller
is listening on asynchronous web server to control the time, schedule and other
controls instead of BLYNK.
2.
Main Loop:
o The
main loop does the below mentioned:
-
time sync(1day)
-
Wi-Fi connection (1 min)
3.
Notify User Function:
o Activates
the relay and buzzer to notify the user of a visitor.
o Sends
a notification to the asynchronous web server with a timestamp of the event.
Testing:
1.
Setup: Assemble all components as per the
pin configuration.
2.
Power Up: Power the ESP32 and ensure all
components are properly powered.
3.
Wi-Fi Connection: Ensure the ESP32 is
connected to the Wi-Fi network and can communicate with the Blynk server.
4.
Button Testing: Simulate the doorbell
button press to test the system's response. The relay and buzzer should
activate, and the asynchronous
web server receive a notification.
5.
Monitoring: Continuously monitor the for
notifications to ensure proper functioning in asynchronous web server.
Use of this project:
1. School/Colleges
2. Hospitals
3. As
alarm in house
Conclusion:
The Smart Bell project successfully demonstrates the
use of an ESP32 microcontroller for a smart doorbell system. By integrating a
relay, buzzer, and RTC module, the project provides a reliable and real-time
notification system. The use of IoT technology enhances the functionality and
user experience of traditional doorbell systems, offering both local and remote
alerts.
Group members:
1.
Amrit Paudel (Group Leader)
2.
Sushant Kafle
3.
Bibek Bishwokarma
4.
Bebas Pandey
5.
Kriti Devi Sharma
6.
Biplov Basnet
College Name: Nepathya College