Arduino UNO-Based Bluetooth-Controlled Robotic Car with Ultrasonic Sensor
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino UNO, a 2 x AA Battery Mount, a Micro servo 9G, multiple motor and wheels, an Ultrasonic Sensor, an L293D motor driver, and an HC-06 Bluetooth module. The circuit is designed to control motors and a servo, read distance using an ultrasonic sensor, and communicate via Bluetooth.
Component List
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
2 x AA Battery Mount
- Description: A battery holder for two AA batteries.
- Pins: -, +
Micro servo 9G
- Description: A small servo motor.
- Pins: GND, +5V, PWM
Motor and Wheels
- Description: A motor with attached wheels.
- Pins: vcc, GND
Ultrasonic Sensor
- Description: A sensor used to measure distance.
- Pins: +VCC, Trigger, Echo, GND
L293D
- Description: A motor driver IC.
- Pins: 5V, GND, +, Servo1, Servo2, RX/DO, TX/D1, 9V, A0, A1, A2, A3, A4/SDA, A5/SCL, VIN, 3.3V, RESET, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13
HC-06
- Description: A Bluetooth module.
- Pins: RXD, TXD, GND, VCC
Wiring Details
Arduino UNO
- No direct connections specified in the net list.
2 x AA Battery Mount
- - connected to GND of L293D
- + connected to + of L293D
Micro servo 9G
- GND connected to GND of L293D
- +5V connected to 5V of L293D
- PWM connected to Servo1 of L293D
Motor and Wheels
- vcc connected to + of L293D
- GND connected to GND of L293D
Motor and Wheels (second instance)
- vcc connected to + of L293D
- GND connected to GND of L293D
Motor and Wheels (third instance)
- vcc connected to + of L293D
- GND connected to GND of L293D
Motor and Wheels (fourth instance)
- vcc connected to + of L293D
- GND connected to GND of L293D
Ultrasonic Sensor
- +VCC connected to 5V of L293D
- Trigger connected to A1 of L293D
- Echo connected to A0 of L293D
- GND connected to GND of L293D
L293D
- + connected to vcc of all motor and wheels, and + of 2 x AA Battery Mount
- GND connected to GND of all motor and wheels, GND of 2 x AA Battery Mount, GND of HC-06, GND of Ultrasonic Sensor, and GND of Micro servo 9G
- 5V connected to VCC of HC-06, +VCC of Ultrasonic Sensor, and +5V of Micro servo 9G
- Servo1 connected to PWM of Micro servo 9G
- TX/D1 connected to RXD of HC-06
- RX/DO connected to TXD of HC-06
- A1 connected to Trigger of Ultrasonic Sensor
- A0 connected to Echo of Ultrasonic Sensor
HC-06
- RXD connected to TX/D1 of L293D
- TXD connected to RX/DO of L293D
- GND connected to GND of L293D
- VCC connected to 5V of L293D
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:
}
Additional Documentation
This document provides a comprehensive overview of the circuit, including a summary, component list, wiring details, and documented code.