Arduino UNO-Based Bluetooth-Controlled Robotic Car with Ultrasonic Sensor and Battery Power
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino UNO, an HC-SR04 Ultrasonic Sensor, an HC-05 Bluetooth Module, an L298N DC motor driver, a LiPo battery charger module, two 18650 Li-ion batteries, two DC motors, a buzzer, and a power jack. The circuit is designed to interface various sensors and actuators with the Arduino UNO, enabling control and communication functionalities.
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
HC-SR04 Ultrasonic Sensor
- Description: A sensor used for measuring distance using ultrasonic waves.
- Pins: VCC, TRIG, ECHO, GND
HC-05 Bluetooth Module
- Description: A module used for wireless communication over Bluetooth.
- Pins: Key, VCC, GND, TXD, RXD, State
L298N DC Motor Driver
- Description: A dual H-Bridge motor driver module.
- Pins: OUT1, OUT2, 12V, GND, 5V, OUT3, OUT4, 5V-ENA-JMP-I, 5V-ENA-JMP-O, +5V-J1, +5V-J2, ENA, IN1, IN2, IN3, IN4, ENB
LiPo Battery Charger Module
- Description: A module used for charging LiPo batteries.
- Pins: B-, B+, OUT-, OUT+
18650 Li-ion Battery x 2
- Description: Rechargeable lithium-ion batteries.
- Pins: +, -
DC Motor
- Description: A motor that runs on direct current.
- Pins: pin 1, pin 2
Buzzer
- Description: An audio signaling device.
- Pins: PIN, GND
Power Jack
- Description: A connector for supplying power to the circuit.
- Pins: POSITIF, NEGATIF
Wiring Details
Arduino UNO
- 5V: Connected to VCC of HC-05 Bluetooth Module, VCC of HC-SR04 Ultrasonic Sensor, and 5V of L298N DC motor driver.
- GND: Connected to GND of HC-05 Bluetooth Module, GND of HC-SR04 Ultrasonic Sensor, GND of L298N DC motor driver, and B- of LiPo battery charger module.
- A5: Connected to PIN of Buzzer.
- D11: Connected to TRIG of HC-SR04 Ultrasonic Sensor.
- D10: Connected to ENA of L298N DC motor driver.
- D9: Connected to IN1 of L298N DC motor driver.
- D8: Connected to IN2 of L298N DC motor driver.
- D7: Connected to ECHO of HC-SR04 Ultrasonic Sensor.
- D6: Connected to ENB of L298N DC motor driver.
- D5: Connected to IN4 of L298N DC motor driver.
- D4: Connected to IN3 of L298N DC motor driver.
- D1: Connected to RXD of HC-05 Bluetooth Module.
- D0: Connected to TXD of HC-05 Bluetooth Module.
HC-SR04 Ultrasonic Sensor
- VCC: Connected to 5V of Arduino UNO.
- GND: Connected to GND of Arduino UNO.
- TRIG: Connected to D11 of Arduino UNO.
- ECHO: Connected to D7 of Arduino UNO.
HC-05 Bluetooth Module
- VCC: Connected to 5V of Arduino UNO.
- GND: Connected to GND of Arduino UNO.
- TXD: Connected to D0 of Arduino UNO.
- RXD: Connected to D1 of Arduino UNO.
L298N DC Motor Driver
- 5V: Connected to 5V of Arduino UNO.
- GND: Connected to GND of Arduino UNO.
- ENA: Connected to D10 of Arduino UNO.
- IN1: Connected to D9 of Arduino UNO.
- IN2: Connected to D8 of Arduino UNO.
- IN3: Connected to D4 of Arduino UNO.
- IN4: Connected to D5 of Arduino UNO.
- ENB: Connected to D6 of Arduino UNO.
- OUT1: Connected to pin 2 of DC Motor 1.
- OUT2: Connected to pin 1 of DC Motor 1.
- OUT3: Connected to pin 2 of DC Motor 2.
- OUT4: Connected to pin 1 of DC Motor 2.
- 12V: Connected to B+ of LiPo battery charger module.
LiPo Battery Charger Module
- B+: Connected to 12V of L298N DC motor driver.
- B-: Connected to GND of Arduino UNO.
- OUT+: Connected to POSITIF of Power Jack.
- OUT-: Connected to NEGATIF of Power Jack.
18650 Li-ion Battery x 2
- +: Connected to POSITIF of Power Jack.
- -: Connected to NEGATIF of Power Jack.
DC Motor 1
- pin 1: Connected to OUT2 of L298N DC motor driver.
- pin 2: Connected to OUT1 of L298N DC motor driver.
DC Motor 2
- pin 1: Connected to OUT4 of L298N DC motor driver.
- pin 2: Connected to OUT3 of L298N DC motor driver.
Buzzer
- PIN: Connected to A5 of Arduino UNO.
- GND: Connected to GND of Arduino UNO.
Power Jack
- POSITIF: Connected to OUT+ of LiPo battery charger module and + of 18650 Li-ion Battery x 2.
- NEGATIF: Connected to OUT- of LiPo battery charger module and - of 18650 Li-ion Battery x 2.
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Documentation (documentation.txt)
This document provides a comprehensive overview of the circuit, including the components used, their wiring details, and the code for the Arduino UNO.