Skip to content

An Arduino-based system that uses an ultrasonic sensor to detect obstacles and an IR remote to switch between detection modes (<= 100 cm, <= 50 cm, or any distance). The LCD display provides real-time feedback, making this project a great example of sensor integration, remote control, and user interaction on microcontrollers.

License

Notifications You must be signed in to change notification settings

adamhammoudd/ultrasonic-ir-obstacle-detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ultrasonic IR Obstacle Detector 🚧📡

This Arduino project uses an ultrasonic sensor and IR remote to switch between modes and detect obstacles at different distance thresholds.

🔧 Features

  • IR remote to switch between:
    • Mode 1: Any distance
    • Mode 2: <= 100 cm
    • Mode 3: <= 50 cm
  • LCD feedback for obstacle detection
  • Real-time distance measurement using HC-SR04

🧰 Hardware Used

  • Arduino Uno
  • HC-SR04 Ultrasonic Sensor
  • IR Receiver
  • IR Remote
  • LCD (I2C 16x2)
  • Breadboard & Jumpers

📷 Device

Device

⚡ Wiring

See wiring_diagrams to access the wiring diagrams.

🎮 IR Remote Codes

See extras/ir_remote_codes.txt for tested codes.

🗂️ How to Use

  1. Upload obstacle_detector.ino to your Arduino.
  2. Connect the hardware as per the schematic.
  3. Use IR remote buttons:
    • "1" → Mode 1 (Any distance)
    • "2" → Mode 2 (<= 100cm)
    • "3" → Mode 3 (<= 50cm)
  4. Watch the LCD for distance or obstacle alerts.

📚 Libraries Required

Install these in the Arduino IDE:

  • IRremote by shirriff or z3t0
  • LiquidCrystal_I2C

or

See libraries to download the necessary libraries.

📜 License

MIT License

About

An Arduino-based system that uses an ultrasonic sensor to detect obstacles and an IR remote to switch between detection modes (<= 100 cm, <= 50 cm, or any distance). The LCD display provides real-time feedback, making this project a great example of sensor integration, remote control, and user interaction on microcontrollers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages