DeafGuard Alert System

by itaisy in Circuits > Arduino

97 Views, 1 Favorites, 0 Comments

DeafGuard Alert System

WhatsApp Image 2024-03-04 at 20.52.13.jpeg
WhatsApp Image 2024-03-04 at 20.52.16 (1).jpeg
WhatsApp Image 2024-03-04 at 20.52.16.jpeg
WhatsApp Image 2024-03-04 at 20.58.00 (7).jpeg

Introducing the DeafGuard Alert System, a sophisticated solution born out of a shared commitment to inclusivity and safety. This project was conceived with the goal of addressing the unique challenges faced by individuals with hearing impairments, particularly during times of crisis such as wartime in Israel. Our focus is to provide a reliable, comprehensive, and user-friendly alert system that empowers deaf individuals and their loved ones.

Supplies

WhatsApp Image 2024-03-04 at 20.58.00 (2).jpeg
WhatsApp Image 2024-03-04 at 20.58.00 (1).jpeg
WhatsApp Image 2024-03-04 at 20.58.00.jpeg
WhatsApp Image 2024-03-04 at 20.58.00 (6).jpeg
WhatsApp Image 2024-03-04 at 20.58.00 (5).jpeg
WhatsApp Image 2024-03-04 at 20.58.00 (4).jpeg
WhatsApp Image 2024-03-04 at 20.58.00 (3).jpeg

1.ESP32 Development Board:

  • The central processing unit responsible for managing communication, sensors, and interactions within the system.

2.Moisture Sensor:

  • Detects moisture levels, serving as a distress signal when the user needs to notify the dashboard of any urgent situations.

3.Accelerometer (MPU6050):

  • Monitors the user's activity and updates the Blynk dashboard with real-time status, providing valuable insights into movements.

4.Servo Motor:

  • Powers the vibrating button, offering a tactile and visible alert when remotely activated. This provides a physical indication of alerts.

5. Blynk IoT Platform:

  • Facilitates real-time alerts, remote control, and monitoring through the Blynk dashboard. It serves as the interface for users and their loved ones.

6.4 Batteries:

  • Power source for the ESP32 development board and other components, ensuring continuous operation.

7.Rubber Band:

  • Used for securing and attaching components, providing flexibility in the physical assembly of the system.

Video

375.png

Connecting Sensors to the Esp32 Board

FS1K696LTCYAKNM.jpg
FSW9VD4LTCYAKN7.jpg
F55PPFLLTCYAKNT.jpg
FV35ZNSLTCYAKNG.jpg
  • Gather Components:
  • Ensure you have the ESP32 development board, moisture sensor, servo motor, and MPU6050 accelerometer.
  • Identify Connecting Pins:


Refer to the provided pin connections:

  • Moisture Sensor: Pin 32
  • Servo Motor: Pin 15
  • MPU6050 Accelerometer: SDA (Data) - Pin 21, SCL (Clock) - Pin 22

Prepare ESP32 Board:

  • Place the ESP32 development board on a stable surface, ensuring easy access to the pins.

Connect Moisture Sensor:

  • Locate pin 32 on the ESP32 board.
  • Connect the signal wire of the moisture sensor to pin 32.
  • Connect the power and ground wires of the moisture sensor to the corresponding power and ground pins on the ESP32 board.

Connect Servo Motor:

  • Locate pin 15 on the ESP32 board.
  • Connect the signal wire of the servo motor to pin 15.
  • Connect the power and ground wires of the servo motor to the corresponding power and ground pins on the ESP32 board.

Connect MPU6050 Accelerometer:

  • Locate pins 21 (SDA) and 22 (SCL) on the ESP32 board.
  • Connect the SDA (Data) wire of the MPU6050 to pin 21.
  • Connect the SCL (Clock) wire of the MPU6050 to pin 22.
  • Connect the power and ground wires of the MPU6050 to the corresponding power and ground pins on the ESP32 board.

Secure Connections:

  • Ensure that all connections are secure and properly seated.
  • Use jumper wires or connectors to establish reliable connections between components and the ESP32 board.

Organize Wiring:

  • Use zip ties or a rubber band to organize and bundle the wires, reducing clutter and ensuring a neat appearance.

Test Connectivity

F7REMZ0LTCYAKP1.jpg
FIAIJHCLTCYAKO1.jpg

Check Connections:

  • Double-check all connections to ensure they match the specified pins.
  • Ensure there are no loose connections that could disrupt the functionality of the system.

Power On:

  • Insert the batteries into the power supply to power the ESP32 board and connected components.
  • Power on the DeafGuard Alert System and check for any LED indicators or visual cues confirming that the components are operational.


Creating Blynk Dashboard

FHA4NIZLTCYAKOG.jpg
WhatsApp Image 2024-03-04 at 22.22.15.jpeg

Install Blynk App:


Download and install the Blynk app on your mobile device from the respective app store.

Create a New Blynk Project:


Open the Blynk app and sign in or create a new account.

Tap on the '+' icon to create a new project.

Choose the hardware model as "ESP32 Dev Board" and connection type as "Wi-Fi."

Obtain Auth Token:


After creating the project, an authentication token will be sent to your email. Copy this token as it will be needed later in the Arduino code.

Add Widgets to the Dashboard:


Drag and drop widgets onto the dashboard to represent the various components of the DeafGuard Alert System.


Vibrate Switch (V0):

Add a Button widget to the dashboard.

Configure the button to control the vibrate switch.

Set the digital pin to V0.


SOS LED (V1):

Add an LED widget to the dashboard.

Configure this LED to represent the SOS indicator.

Set the digital pin to V1.


Active Label (V2):

Add a Label widget to the dashboard.

Customize the label to display "Active."

Set the virtual pin to V2.


Alert Indicator (V3):

Add an LED widget to indicate alerts based on the correlation between the user's location and the API data.

Configure the LED to represent the alert status.

Set the digital pin to V3.

Adjust Widget Settings:


Customize widget labels, colors, and appearance according to your preferences.

Set the appropriate range or mode for the button and LEDs.

Organize the Dashboard:


Arrange the widgets on the dashboard for a clear and intuitive layout.

Ensure that users can easily understand and interact with the essential components.

Project Settings:


Tap on the gear icon to access project settings.

Adjust settings such as the project name, display mode, and other preferences.


Take note of the virtual pin assignments (V0, V1, V2, V3) for each widget, as these will be referenced in the Arduino code.

Creating Arduino Code for DeafGuard Alert System

צילום מסך 2024-03-04 221824.png
צילום מסך 2024-03-04 221938.png
צילום מסך 2024-03-04 221950.png

1. Write Arduino Code:

Open the Arduino Integrated Development Environment (IDE).

Create a new Arduino sketch.

Copy and paste the provided Arduino code for the DeafGuard Alert System into the sketch.

2. Configure Blynk Authentication:

Obtain the Blynk authentication token from the Blynk app project.

Replace the placeholder "qWGiR6AxsXHj6qDlTk1c6o3iAslNLC1a" with your actual Blynk authentication token in the Arduino code.

3. Update WiFi SSID and Password:

Locate the following lines in the Arduino code:

char ssid[] = "";

char pass[] = "";

4. Update Pin Assignments:

Ensure that the digital and virtual pin assignments in the Arduino code match the configurations set in the Blynk dashboard.

Check that the values assigned to pins, such as BUTTON_PIN (32), SERVO_PIN (15), and virtual pins (V0, V1, V2, V3), align with your physical setup and dashboard configurations.

5. Upload Code to ESP32:

Connect the ESP32 development board to your computer using a USB cable.

In the Arduino IDE, select the correct board model and port from the "Tools" menu.

Click the "Upload" button to compile and upload the Arduino code to the ESP32 board.

Powering On, Testing, and Troubleshooting

WhatsApp Image 2024-03-04 at 20.52.15 (1).jpeg
WhatsApp Image 2024-03-04 at 20.52.15.jpeg

1. Power On DeafGuard Alert System:

Connect the DeafGuard Alert System to a power source.

Ensure that the system is powered on and all components are properly connected.

2. Monitor Serial Monitor (Optional):

Open the Arduino IDE Serial Monitor to view debug information.

Check for any error messages or unexpected behavior during system initialization.

3. Test Blynk Dashboard Integration:

Open the Blynk app on your mobile device.

Run the Blynk project and monitor the dashboard for real-time updates.

Verify that the Vibrate Switch, SOS LED, Active Label, and Alert Indicator respond correctly to user interactions and system conditions.

4. Observe Physical Interactions:

Test the physical components, such as the moisture sensor, accelerometer, and servo motor.

Ensure that these components interact with the Blynk dashboard as intended.

5. Simulate API Response (Optional):

For testing purposes, simulate an API response by modifying the hardcoded JSON in the Arduino code.

Validate the system's response to alert conditions by observing changes in the Blynk dashboard.

6. Troubleshoot and Refine:

If any issues arise, use the Serial Monitor, Blynk app logs, and physical observations to troubleshoot.

Refine the system's behavior based on feedback and testing.

By following these steps, you can power on the DeafGuard Alert System, test Blynk dashboard integration, and address any potential issues through monitoring, simulation, and troubleshooting.

Code

F3A872ULTCYAMNC.png