Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸš— Parking-Sensor

This project is a simple but effective car parking sensor system built using an Arduino board, an ultrasonic distance sensor, a buzzer, and an RGB LED. The sensor continuously measures the distance to the nearest object (e.g., a wall or another car) and provides both auditory and visual feedback to help with parking.


πŸ“¦ Features

  • Real-time distance measurement using an ultrasonic sensor
  • Variable-pitch sound alerts via a buzzer (higher pitch = closer object)
  • RGB LED status indication:
    • πŸ”΄ Red: Object very close (under 20cm)
    • 🟑 Yellow: Caution zone (20–50cm)
    • 🟒 Green: Safe distance (50–100cm)
    • πŸ”΅ Blue: No object detected / out of range

πŸ”§ Components Used

  • Arduino Uno
  • Ultrasonic sensor (HC-SR04)
  • Passive buzzer
  • RGB LED (common cathode)

πŸ› οΈ How It Works

  • The ultrasonic sensor (HC-SR04) is connected to digital pins 6 (trigger) and 5 (echo).
  • The buzzer is connected to digital pin 7.
  • The RGB LED is connected to PWM-enabled pins 9 (Red), 10 (Green), and 11 (Blue).
  • The sensor reads distance in centimeters.
  • If the distance is greater than 100cm, the LED turns blue and no sound is emitted.
  • If the object is within 100cm, the buzzer emits a beep with a frequency that increases as the object gets closer.
  • The RGB LED color reflects the distance range.

WhatsApp Image 2025-04-05 at 19 08 25_7d5e2b78


About

Simple parking sensor created using an Arduino Uno board, an ultrasonic sensor and a buzzer.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages