This project demonstrates real-time Bluetooth communication between two Arduinos, leveraging an ultrasonic sensor and a buzzer to detect obstacles and provide audible warnings. Designed as a cost-effective safety solution, the system can classify zones as "Danger" or "Safe" and alert users in real time.
In safety-critical environments, the need for reliable proximity detection and collision prevention is paramount. Current systems are often costly and complex, limiting their accessibility.
This project focuses on designing a low-cost solution using accessible components to:
- Monitor proximity using an ultrasonic sensor.
- Classify areas as "Danger Zone" or "Safe Zone."
- Trigger a remote audible warning via Bluetooth.
Potential applications include industrial areas, parking systems, and IoT-based safety mechanisms.
- Obstacle Detection: Detects objects within a predefined range.
- Wireless Communication: Uses Bluetooth modules to transmit data between Arduinos.
- Audible Alerts: Triggers a buzzer on the receiving device for real-time warnings.
- Scalability: Modular design for integration with other systems.
Our development journey involved several key steps:
- Component Testing: Ensured all components performed reliably under various conditions.
- Soldering: Assembled the hardware using Arduino Nanos for compact design.
- Bluetooth Setup: Configured HC-05 modules for seamless communication.
- Establishing Communication: Programmed basic Arduino-to-Arduino Bluetooth messaging.
- Fine-Tuning: Calibrated ultrasonic sensor thresholds for accurate range detection.
- Debugging: Resolved hardware and software glitches to achieve stability.
- 2x Arduino Uno
- 2x HC-05 Bluetooth Module
- 1x Ultrasonic Sensor (HC-SR04)
- 1x Buzzer module
- 2x LEDs
- Jumper wires, resistors, and soldering equipment
- Connect the ultrasonic sensor to the first Arduino:
- Trigger Pin → D2
- Echo Pin → D3
- Connect the HC-05 Bluetooth module to each Arduino:
- RX → D10
- TX → D11
- Connect the buzzer module to the second Arduino:
- Positive → D4
- Negative → GND
- Use the provided Arduino sketches in the
codes/folder.master_code.ino: For the transmitting Arduino (with the ultrasonic sensor).slave_code.ino: For the receiving Arduino (with the buzzer).
- Power up both Arduinos.
- Place an object in the ultrasonic sensor’s detection range to observe real-time alerts on the second Arduino.
This project serves as a foundation for more advanced systems, such as:
- Obstacle Detection in Robotics: Enhance navigation and safety.
- Industrial Safety Systems: Prevent accidents in manufacturing plants.
- IoT-Based Smart Homes: Integrate with smart devices for automated alerts.
This project was collaboratively developed by:
We welcome feedback and ideas for future enhancements.



