Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Raspberry Pi 4B Ultrasonic Distance Measurement System

Image of Raspberry Pi 4B Ultrasonic Distance Measurement System

Circuit Documentation

Summary

This circuit involves multiple HC-SR04 Ultrasonic Sensors connected to a Raspberry Pi 4B. The sensors are used to measure distances, and the Raspberry Pi processes the data. Resistors are used to manage the signal levels between the sensors and the Raspberry Pi.

Component List

  1. HC-SR04 Ultrasonic Sensor

    • Description: Ultrasonic distance sensor
    • Pins: VCC, TRIG, ECHO, GND
  2. Raspberry Pi 4B

    • Description: Single-board computer
    • 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
  3. Resistor

    • Description: Resistor with 1000 Ohms resistance
    • Pins: pin1, pin2

Wiring Details

HC-SR04 Ultrasonic Sensor 1

  • VCC connected to 5V of Raspberry Pi
  • TRIG connected to GPIO4 of Raspberry Pi
  • ECHO connected to pin2 of Resistor 1
  • GND connected to pin1 of Resistor 2

HC-SR04 Ultrasonic Sensor 2

  • VCC connected to 5V of Raspberry Pi
  • TRIG connected to GPIO17 of Raspberry Pi
  • ECHO connected to pin2 of Resistor 3
  • GND connected to pin1 of Resistor 4

HC-SR04 Ultrasonic Sensor 3

  • VCC connected to 5V of Raspberry Pi
  • TRIG connected to GPIO27 of Raspberry Pi
  • ECHO connected to pin2 of Resistor 5
  • GND connected to pin1 of Resistor 6

HC-SR04 Ultrasonic Sensor 4

  • VCC connected to 5V of Raspberry Pi
  • TRIG connected to GPIO12 of Raspberry Pi
  • ECHO connected to pin2 of Resistor 7
  • GND connected to pin1 of Resistor 8

Raspberry Pi 4B

  • 5V connected to VCC of all HC-SR04 Ultrasonic Sensors
  • GPIO4 connected to TRIG of HC-SR04 Ultrasonic Sensor 1
  • GPIO17 connected to TRIG of HC-SR04 Ultrasonic Sensor 2
  • GPIO27 connected to TRIG of HC-SR04 Ultrasonic Sensor 3
  • GPIO12 connected to TRIG of HC-SR04 Ultrasonic Sensor 4
  • GPIO18 connected to pin1 of Resistor 1
  • GPIO23 connected to pin1 of Resistor 3
  • GPIO24 connected to pin1 of Resistor 5
  • GPIO6 connected to pin1 of Resistor 7
  • GND connected to GND of all HC-SR04 Ultrasonic Sensors and pin1 of Resistor 2, Resistor 4, Resistor 6, and Resistor 8

Resistor 1

  • pin1 connected to GPIO18 of Raspberry Pi
  • pin2 connected to ECHO of HC-SR04 Ultrasonic Sensor 1

Resistor 2

  • pin1 connected to GND of Raspberry Pi
  • pin2 connected to ECHO of HC-SR04 Ultrasonic Sensor 1

Resistor 3

  • pin1 connected to GPIO23 of Raspberry Pi
  • pin2 connected to ECHO of HC-SR04 Ultrasonic Sensor 2

Resistor 4

  • pin1 connected to GND of Raspberry Pi
  • pin2 connected to ECHO of HC-SR04 Ultrasonic Sensor 2

Resistor 5

  • pin1 connected to GPIO24 of Raspberry Pi
  • pin2 connected to ECHO of HC-SR04 Ultrasonic Sensor 3

Resistor 6

  • pin1 connected to GND of Raspberry Pi
  • pin2 connected to ECHO of HC-SR04 Ultrasonic Sensor 3

Resistor 7

  • pin1 connected to GPIO6 of Raspberry Pi
  • pin2 connected to ECHO of HC-SR04 Ultrasonic Sensor 4

Resistor 8

  • pin1 connected to GND of Raspberry Pi
  • pin2 connected to ECHO of HC-SR04 Ultrasonic Sensor 4

Code

No code provided.