Skip to content

An IoT system that uses an infrared sensor to detect obstacles and triggers a short buzzer beep as an alert.

License

Notifications You must be signed in to change notification settings

Pascalrender/Obstacle-Detector-ESP32

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

# ESP32 Obstacle Detector with Buzzer Alert

## Description
An IoT system that uses an infrared sensor to detect obstacles and triggers a short buzzer beep as an alert.

## Features
- Real-time obstacle detection
- Short beep on first detection (300ms)
- Silent when area is clear
- Live status via Serial Monitor

## Hardware Required
- ESP32 DevKit (WROOM-32)
- IR Obstacle Sensor (KY-032 or similar)
- Passive or Active Buzzer
- Jumper wires

## Pin Connections

| IR Sensor | ESP32   |
|----------|---------|
| VCC      | 3V3     |
| GND      | GND     |
| OUT      | D14     |

| Buzzer   | ESP32   |
|---------|---------|
| +       | D13     |
| –       | GND     |

## How It Works
- `LOW` on D14 → Obstacle detected → **Buzzer beeps once**
- `HIGH` on D14 → Area clear → **Buzzer off**

## Serial Output Example

About

An IoT system that uses an infrared sensor to detect obstacles and triggers a short buzzer beep as an alert.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages