ESP32 Vibration Sensor (SW-420) Project
The ESP32 Vibration Sensor (SW-420) project demonstrates how to interface a vibration sensor with an ESP32 microcontroller to detect vibrations or shocks. This project is valuable for applications where detecting physical movements or impacts is essential, such as in security systems, industrial equipment monitoring, or interactive installations.
Hardware Requirements
- Power Supply
Block Diagram
Circuit Setup
Connecting the Vibration Sensor to ESP32:
Instructions
Setup:
Initialize Serial communication using
Set the pinMode for the vibration sensor pin using
Operation:
- Use
- Print "Vibration detected!" if the sensor state is HIGH (indicating vibration).
- Print "No vibration." if the sensor state is LOW (no vibration detected).
Output:
Continuously monitor and display the vibration sensor state.
Trigger actions based on detected vibrations as required by your application.