Raspberry Pi 4B Controlled Robotic Car with Ultrasonic Sensor and Motor Drivers
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes a Raspberry Pi 4B, multiple Hobby Gearmotors with 48:1 gearbox, L293D Motor Driver Expansion Boards, an Ultrasonic Sensor, and a 7.4V power source. The circuit is designed to control the motors and read data from the ultrasonic sensor using the Raspberry Pi.
Component List
Raspberry Pi 4B
- Description: A powerful single-board computer used for various applications.
- 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
Hobby Gearmotor with 48:1 gearbox
- Description: A small DC motor with a gearbox for increased torque.
- Pins: pin 1, pin 2
L293D Motor Driver Expansion Board Mini 4CH 4 Channel Motor Drive
- Description: A motor driver board used to control DC motors.
- Pins: A-, A+, B-, B+, GND, VIN, VCC, IN1, IN2, IN3, IN4, EN1, EN2
7.4V Power Source
- Description: A power source providing 7.4V.
- Pins: +, -
Ultrasonic Sensor
- Description: A sensor used to measure distance by using ultrasonic waves.
- Pins: +VCC, Trigger, Echo, GND
Wiring Details
Raspberry Pi 4B
5V is connected to:
- +VCC of the Ultrasonic Sensor
- VCC of the L293D Motor Driver Expansion Board (Instance 1)
- VCC of the L293D Motor Driver Expansion Board (Instance 2)
GND is connected to:
- GND of the Ultrasonic Sensor
- GND of the L293D Motor Driver Expansion Board (Instance 1)
- GND of the L293D Motor Driver Expansion Board (Instance 2)
GPIO14 is connected to IN3 of the L293D Motor Driver Expansion Board (Instance 1)
GPIO15 is connected to IN4 of the L293D Motor Driver Expansion Board (Instance 1)
GPIO18 is connected to IN1 of the L293D Motor Driver Expansion Board (Instance 2)
GPIO23 is connected to IN2 of the L293D Motor Driver Expansion Board (Instance 2)
GPIO24 is connected to IN3 of the L293D Motor Driver Expansion Board (Instance 2)
GPIO25 is connected to IN4 of the L293D Motor Driver Expansion Board (Instance 2)
GPIO11 is connected to IN2 of the L293D Motor Driver Expansion Board (Instance 1)
GPIO8 is connected to IN1 of the L293D Motor Driver Expansion Board (Instance 1)
GPIO5 is connected to Trigger of the Ultrasonic Sensor
GPIO6 is connected to Echo of the Ultrasonic Sensor
Hobby Gearmotor with 48:1 gearbox (Instance 1)
- pin 1 is connected to A- of the L293D Motor Driver Expansion Board (Instance 1)
- pin 2 is connected to A+ of the L293D Motor Driver Expansion Board (Instance 1)
Hobby Gearmotor with 48:1 gearbox (Instance 2)
- pin 1 is connected to B- of the L293D Motor Driver Expansion Board (Instance 1)
- pin 2 is connected to B+ of the L293D Motor Driver Expansion Board (Instance 1)
Hobby Gearmotor with 48:1 gearbox (Instance 3)
- pin 1 is connected to A- of the L293D Motor Driver Expansion Board (Instance 2)
- pin 2 is connected to A+ of the L293D Motor Driver Expansion Board (Instance 2)
Hobby Gearmotor with 48:1 gearbox (Instance 4)
- pin 1 is connected to B- of the L293D Motor Driver Expansion Board (Instance 2)
- pin 2 is connected to B+ of the L293D Motor Driver Expansion Board (Instance 2)
L293D Motor Driver Expansion Board Mini 4CH 4 Channel Motor Drive (Instance 1)
GND is connected to:
- GND of the L293D Motor Driver Expansion Board (Instance 2)
- - of the 7.4V Power Source
VIN is connected to:
- VIN of the L293D Motor Driver Expansion Board (Instance 2)
- + of the 7.4V Power Source
L293D Motor Driver Expansion Board Mini 4CH 4 Channel Motor Drive (Instance 2)
GND is connected to:
- GND of the L293D Motor Driver Expansion Board (Instance 1)
- - of the 7.4V Power Source
VIN is connected to:
- VIN of the L293D Motor Driver Expansion Board (Instance 1)
- + of the 7.4V Power Source
7.4V Power Source
+ is connected to:
- VIN of the L293D Motor Driver Expansion Board (Instance 1)
- VIN of the L293D Motor Driver Expansion Board (Instance 2)
- is connected to:
- GND of the L293D Motor Driver Expansion Board (Instance 1)
- GND of the L293D Motor Driver Expansion Board (Instance 2)
Ultrasonic Sensor
- +VCC is connected to 5V of the Raspberry Pi 4B
- GND is connected to GND of the Raspberry Pi 4B
- Trigger is connected to GPIO5 of the Raspberry Pi 4B
- Echo is connected to GPIO6 of the Raspberry Pi 4B
Code
No code is provided for this circuit.