Arduino UNO-Based Bluetooth-Controlled Robotic Vehicle with Ultrasonic and IR Sensors
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes various components such as motors, sensors, a microcontroller, and a driver shield. The circuit is designed to control multiple motors and sensors, and it includes an Arduino UNO microcontroller for processing and control. The components are interconnected through a driver shield, which facilitates the control of motors and sensors.
Component List
Hobby Gearmotor with 48:1 Gearbox
- Description: A small DC motor with a 48:1 gearbox for increased torque.
- Pins: pin 1, pin 2
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
HC-SR04 Ultrasonic Sensor
- Description: A sensor used for distance measurement.
- Pins: VCC, TRIG, ECHO, GND
DRIVER SHIELD L293D
- Description: A motor driver shield for controlling DC motors and sensors.
- Pins: RESET, 3.3V, 5V, GND, VIN, 9V, A0, A1, A2, A3, A4, A5, M2 (+), M2 GND (-), M1 (+), M1 GND (-), M3 (+), M3 GND (-), M4 GND (-), M4 (+), SERVO_2, SERVO_1, RX/D0, TX/D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, ARef, D13, D12, VCC (External Power Supply), GND (External Power Supply)
7.4v Battery
- Description: A 7.4V battery for powering the circuit.
- Pins: +, -
Rocker Switch
- Description: A switch for controlling the power supply.
- Pins: 1, 2
HC-05 Bluetooth Module
- Description: A Bluetooth module for wireless communication.
- Pins: Key, VCC, GND, TXD, RXD, State
IR Sensor
- Description: An infrared sensor for object detection.
- Pins: out, gnd, vcc
Fan
- Description: A small fan for cooling purposes.
- Pins: GND, 5V
Buzzer
- Description: A buzzer for sound output.
- Pins: PIN, GND
16x2 I2C LCD
- Description: A 16x2 character LCD with I2C interface.
- Pins: GND, VCC, SDA, SCL
Wiring Details
Hobby Gearmotor with 48:1 Gearbox
Motor 1:
- pin 1 connected to DRIVER SHIELD L293D M4 GND (-)
- pin 2 connected to DRIVER SHIELD L293D M4 (+)
Motor 2:
- pin 1 connected to DRIVER SHIELD L293D M3 GND (-)
- pin 2 connected to DRIVER SHIELD L293D M3 (+)
Motor 3:
- pin 1 connected to DRIVER SHIELD L293D M1 GND (-)
- pin 2 connected to DRIVER SHIELD L293D M1 (+)
Motor 4:
- pin 1 connected to DRIVER SHIELD L293D M2 GND (-)
- pin 2 connected to DRIVER SHIELD L293D M2 (+)
HC-SR04 Ultrasonic Sensor
Sensor 1:
- VCC connected to DRIVER SHIELD L293D 5V
- GND connected to DRIVER SHIELD L293D GND
- TRIG connected to DRIVER SHIELD L293D D2
- ECHO connected to DRIVER SHIELD L293D D3
Sensor 2:
- VCC connected to DRIVER SHIELD L293D 5V
- GND connected to DRIVER SHIELD L293D GND
- TRIG connected to DRIVER SHIELD L293D D4
- ECHO connected to DRIVER SHIELD L293D D5
Sensor 3:
- VCC connected to DRIVER SHIELD L293D 5V
- GND connected to DRIVER SHIELD L293D GND
- TRIG connected to DRIVER SHIELD L293D D6
- ECHO connected to DRIVER SHIELD L293D D7
IR Sensor
Sensor 1:
- vcc connected to DRIVER SHIELD L293D 5V
- gnd connected to DRIVER SHIELD L293D GND
- out connected to DRIVER SHIELD L293D A0
Sensor 2:
- vcc connected to DRIVER SHIELD L293D 5V
- gnd connected to DRIVER SHIELD L293D GND
- out connected to DRIVER SHIELD L293D D13
Sensor 3:
- vcc connected to DRIVER SHIELD L293D 5V
- gnd connected to DRIVER SHIELD L293D GND
- out connected to DRIVER SHIELD L293D D12
Sensor 4:
- vcc connected to DRIVER SHIELD L293D 5V
- gnd connected to DRIVER SHIELD L293D GND
- out connected to DRIVER SHIELD L293D A1
Fan
- Fan:
- 5V connected to DRIVER SHIELD L293D 5V
- GND connected to DRIVER SHIELD L293D GND
Buzzer
- Buzzer:
- PIN connected to DRIVER SHIELD L293D D8
- GND connected to DRIVER SHIELD L293D GND
16x2 I2C LCD
- LCD:
- VCC connected to DRIVER SHIELD L293D 5V
- GND connected to DRIVER SHIELD L293D GND
- SDA connected to DRIVER SHIELD L293D A4
- SCL connected to DRIVER SHIELD L293D A5
HC-05 Bluetooth Module
- Bluetooth Module:
- VCC connected to DRIVER SHIELD L293D 5V
- GND connected to DRIVER SHIELD L293D GND
- TXD connected to DRIVER SHIELD L293D RX/D0
- RXD connected to DRIVER SHIELD L293D TX/D1
7.4v Battery
- Battery:
-
- connected to Rocker Switch pin 1
-
- connected to DRIVER SHIELD L293D GND (External Power Supply)
-
Rocker Switch
- Switch:
- pin 1 connected to 7.4v Battery +
- pin 2 connected to DRIVER SHIELD L293D VCC (External Power Supply)
Documented Code
Arduino UNO Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This concludes the documentation for the circuit. Each component and its connections have been detailed, and the code for the Arduino UNO microcontroller has been provided.