Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Raspberry Pi 4B Ultrasonic Distance Sensor with LED Indicators and Buzzer

View and Edit Project In Cirkit DesignerImage of Raspberry Pi 4B Ultrasonic Distance Sensor with LED Indicators and Buzzer

Circuit Documentation

Summary

This circuit involves a Raspberry Pi 4B controlling three LEDs (red, green, and yellow), a piezo buzzer, and an HC-SR04 ultrasonic sensor. The Raspberry Pi is used to drive the LEDs and the buzzer, and to interface with the ultrasonic sensor for distance measurement.

Component List

  1. LED: Two Pin (red)

    • Pins: cathode, anode
    • Description: A red LED used for visual indication.
  2. LED: Two Pin (green)

    • Pins: cathode, anode
    • Description: A green LED used for visual indication.
  3. LED: Two Pin (yellow)

    • Pins: cathode, anode
    • Description: A yellow LED used for visual indication.
  4. HC-SR04 Ultrasonic Sensor

    • Pins: VCC, TRIG, ECHO, GND
    • Description: An ultrasonic sensor used for distance measurement.
  5. Raspberry Pi 4B

    • Pins: 3V3, 5V, GPIO2, GPIO3, GND, GPIO4, GPIO14, GPIO15, GPIO17, GPIO18, GPIO27, GPIO22, GPIO23, GPIO24, GPIO10, GPIO9, GPIO25, GPIO11, GPIO8, GPIO7, ID_SD, GPIO5, GPIO6, GPIO12, GPIO13, GPIO19, GPIO16, GPIO26, GPIO20, GPIO21, ID_SC, TR01_TAP, TR00_TAP, TR03_TAP, TR02_TAP, RUN, GLOBAL_EN
    • Description: A single-board computer used to control the LEDs, buzzer, and interface with the ultrasonic sensor.
  6. Piezo Buzzer

    • Pins: pin 1, pin 2
    • Description: A piezoelectric buzzer used for sound indication.

Wiring Details

LED: Two Pin (red)

LED: Two Pin (green)

LED: Two Pin (yellow)

HC-SR04 Ultrasonic Sensor

Raspberry Pi 4B

Piezo Buzzer

Code

No code provided for this circuit.


This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and a section for code (if any). Each component is described with its connections to ensure clarity and ease of understanding.