Course Content
IoT Engineering Course using ESP32 with 12 Real-World Projects

Bridge Health Monitoring System using ESP32 and Analog Vibration Sensor

1. Aim

The aim of this project is to monitor bridge vibrations using an analog vibration sensor connected to an ESP32. The sensor continuously measures vibration levels, and the data is transmitted to the Blynk IoT platform through Wi-Fi for real-time monitoring. The system also indicates whether the bridge is in a normal or high-vibration condition.


2. Components Required

S.No Component Quantity
1 ESP32 Development Board 1
2 Analog Vibration Sensor Module 1
3 Breadboard 1
4 Jumper Wires As Required
5 USB Cable 1
6 Wi-Fi Connection 1
7 Computer with Arduino IDE 1
8 Blynk IoT Account 1

3. Components Description

ESP32 Development Board

The ESP32 is a powerful microcontroller with built-in Wi-Fi and Bluetooth. It reads the vibration sensor values and sends the data to the Blynk IoT cloud over a Wi-Fi connection.

Features

  • Built-in Wi-Fi and Bluetooth
  • 3.3V operating voltage
  • Multiple analog input pins
  • Fast dual-core processor
  • Ideal for IoT applications

Analog Vibration Sensor

An analog vibration sensor detects vibrations or shocks and produces an analog voltage proportional to the vibration intensity. The ESP32 reads this voltage using an analog input pin (GPIO34). Higher vibration produces higher analog values.

Features

  • Analog output
  • High sensitivity
  • Easy to interface with ESP32
  • Suitable for vibration monitoring applications

Breadboard

A breadboard is used to make temporary electrical connections without soldering.


Jumper Wires

Jumper wires are used to connect the ESP32 with the vibration sensor.


4. Circuit Connections

Vibration Sensor ESP32
VCC 3.3V
GND GND
AO (Analog Output) GPIO34

Connection Summary

  • Sensor VCC → ESP32 3.3V
  • Sensor GND → ESP32 GND
  • Sensor AO → ESP32 GPIO34

5. Working Principle

  1. The ESP32 supplies 3.3V power to the analog vibration sensor.
  2. The sensor continuously detects vibrations.
  3. The sensor outputs an analog voltage based on the vibration intensity.
  4. ESP32 reads the analog value using GPIO34.
  5. The sensor value is sent to the Blynk cloud using Wi-Fi.
  6. The Blynk dashboard displays the vibration value and bridge condition.
  7. If the vibration exceeds the preset threshold, the LED widget turns ON and the bridge condition changes to High Vibration.

6. Blynk IoT Setup

Step 1

Download and install the Blynk IoT application.

Step 2

Create a Blynk account and log in.

Step 3

Go to Developer Zone.

Step 4

Create a New Template.

  • Template Name: Bridge Monitoring
  • Hardware: ESP32
  • Connection Type: Wi-Fi

Click Done.

Step 5

Create a New Device from the template.

Copy the following:

  • Template ID
  • Template Name
  • Authentication Token

These values will be added to the Arduino code.

Step 6

Create Datastreams.

Datastream 1

  • Name: Vibration Value
  • Virtual Pin: V0
  • Data Type: Integer

Datastream 2

  • Name: LED Status
  • Virtual Pin: V1
  • Data Type: Integer

Datastream 3

  • Name: Bridge Condition
  • Virtual Pin: V2
  • Data Type: String

Step 7

Design the Dashboard.

Add these widgets:

  • Value Display → V0
  • LED Widget → V1
  • Labeled Value (Text Display) → V2

7. Arduino Program

Use the Arduino code you already have with:

  • GPIO34 for analog input
  • V0 for vibration value
  • V1 for LED status (1 = ON, 0 = OFF)
  • V2 for bridge condition (“Normal” or “High Vibration”)

8. Output

  • The vibration value is displayed on the Blynk dashboard.
  • The LED turns ON when the vibration value exceeds the threshold.
  • The LED turns OFF when the vibration is below the threshold.
  • The bridge condition is displayed as:
    • Bridge Condition: Normal
    • Bridge Condition: High Vibration

9. Applications

  • Highway bridge monitoring
  • Railway bridge monitoring
  • Flyover monitoring
  • Smart city infrastructure
  • Structural health monitoring
  • Civil engineering projects

10. Advantages

  • Real-time monitoring
  • Wireless data transmission
  • Low-cost IoT solution
  • Easy to install and maintain
  • Remote monitoring using a mobile phone
  • Early detection of abnormal bridge vibrations

11. Conclusion

The Bridge Health Monitoring System using ESP32 and an Analog Vibration Sensor provides a simple and effective way to monitor bridge vibrations in real time. The ESP32 reads the analog output from the vibration sensor and uploads the data to the Blynk IoT platform over Wi-Fi. Users can monitor vibration levels, view the bridge condition, and observe the LED status through the Blynk dashboard. This project demonstrates the use of IoT for structural health monitoring and can be expanded by integrating additional sensors such as tilt, strain, or temperature sensors for more advanced monitoring.

Scroll to Top