Arduino UNO-Based Bluetooth-Controlled Robotic Car 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 sensors, motors, a motor driver, a Bluetooth module, and an Arduino UNO microcontroller. The circuit is designed to interface with multiple components to perform various tasks such as motor control, sensor data acquisition, and wireless communication.
Component List
18650 Li-ion Battery x 2
- Description: Power source for the circuit.
- Pins: +, -
L298N DC Motor Driver
- Description: Motor driver for controlling DC motors.
- 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
Micro Servo 9G
- Description: Small servo motor for precise control.
- Pins: GND, +5V, PWM
HC-SR04 Ultrasonic Sensor
- Description: Ultrasonic sensor for distance measurement.
- Pins: VCC, TRIG, ECHO, GND
IR Sensor
- Description: Infrared sensor for object detection.
- Pins: out, gnd, vcc
Motor Amarillo Motorreductor Hobby
- Description: Hobby DC motor with gearbox.
- Pins: vcc, GND
HC-05 Bluetooth Module
- Description: Bluetooth module for wireless communication.
- Pins: Key, VCC, GND, TXD, RXD, State
Arduino UNO
- Description: Microcontroller board for controlling the circuit.
- 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
IR Receiver
- Description: Infrared receiver for remote control.
- Pins: DATA, VCC, GND
Wiring Details
18650 Li-ion Battery x 2
- + Pin:
- Connected to 12V pin of L298N DC Motor Driver
- - Pin:
- Connected to GND pin of Arduino UNO
- Connected to GND pin of L298N DC Motor Driver
L298N DC Motor Driver
- 5V Pin:
- Connected to Vin pin of Arduino UNO
- GND Pin:
- Connected to GND pin of Arduino UNO
- Connected to - pin of 18650 Li-ion Battery x 2
- 12V Pin:
- Connected to + pin of 18650 Li-ion Battery x 2
- IN1 Pin:
- Connected to D11 pin of Arduino UNO
- IN2 Pin:
- Connected to D6 pin of Arduino UNO
- IN3 Pin:
- Connected to D5 pin of Arduino UNO
- IN4 Pin:
- Connected to D3 pin of Arduino UNO
- ENA Pin:
- Connected to D9 pin of Arduino UNO
- ENB Pin:
- Connected to D10 pin of Arduino UNO
- OUT1 Pin:
- Connected to GND pin of Motor Amarillo Motorreductor Hobby
- OUT2 Pin:
- Connected to vcc pin of Motor Amarillo Motorreductor Hobby
- OUT3 Pin:
- Connected to vcc pin of Motor Amarillo Motorreductor Hobby
- OUT4 Pin:
- Connected to GND pin of Motor Amarillo Motorreductor Hobby
Micro Servo 9G
- GND Pin:
- Connected to GND pin of Arduino UNO
- +5V Pin:
- Connected to 5V pin of Arduino UNO
- PWM Pin:
- Connected to D7 pin of Arduino UNO
HC-SR04 Ultrasonic Sensor
- VCC Pin:
- Connected to 5V pin of Arduino UNO
- GND Pin:
- Connected to GND pin of Arduino UNO
- TRIG Pin:
- Connected to D4 pin of Arduino UNO
- ECHO Pin:
- Connected to D8 pin of Arduino UNO
IR Sensor
- vcc Pin:
- Connected to 5V pin of Arduino UNO
- gnd Pin:
- Connected to GND pin of Arduino UNO
- out Pin:
- Connected to D13 pin of Arduino UNO
- Connected to D12 pin of Arduino UNO
Motor Amarillo Motorreductor Hobby
- vcc Pin:
- Connected to OUT2 pin of L298N DC Motor Driver
- Connected to OUT3 pin of L298N DC Motor Driver
- GND Pin:
- Connected to OUT1 pin of L298N DC Motor Driver
- Connected to OUT4 pin of L298N DC Motor Driver
HC-05 Bluetooth Module
- VCC Pin:
- Connected to 5V pin of Arduino UNO
- GND Pin:
- Connected to GND pin of Arduino UNO
- TXD Pin:
- Connected to A0 pin of Arduino UNO
- RXD Pin:
- Connected to A1 pin of Arduino UNO
IR Receiver
- VCC Pin:
- Connected to 5V pin of Arduino UNO
- GND Pin:
- Connected to GND pin of Arduino UNO
- DATA Pin:
- Connected to D2 pin of Arduino UNO
Arduino UNO
- 5V Pin:
- Connected to VCC pin of HC-05 Bluetooth Module
- Connected to VCC pin of IR Receiver
- Connected to vcc pin of IR Sensor
- Connected to vcc pin of IR Sensor
- Connected to +5V pin of Micro Servo 9G
- Connected to VCC pin of HC-SR04 Ultrasonic Sensor
- GND Pin:
- Connected to GND pin of HC-05 Bluetooth Module
- Connected to GND pin of IR Receiver
- Connected to gnd pin of IR Sensor
- Connected to gnd pin of IR Sensor
- Connected to GND pin of Micro Servo 9G
- Connected to GND pin of HC-SR04 Ultrasonic Sensor
- Connected to - pin of 18650 Li-ion Battery x 2
- Connected to GND pin of L298N DC Motor Driver
- Vin Pin:
- Connected to 5V pin of L298N DC Motor Driver
- A0 Pin:
- Connected to TXD pin of HC-05 Bluetooth Module
- A1 Pin:
- Connected to RXD pin of HC-05 Bluetooth Module
- D13 Pin:
- Connected to out pin of IR Sensor
- D12 Pin:
- Connected to out pin of IR Sensor
- D11 Pin:
- Connected to IN1 pin of L298N DC Motor Driver
- D10 Pin:
- Connected to ENB pin of L298N DC Motor Driver
- D9 Pin:
- Connected to ENA pin of L298N DC Motor Driver
- D8 Pin:
- Connected to ECHO pin of HC-SR04 Ultrasonic Sensor
- D7 Pin:
- Connected to PWM pin of Micro Servo 9G
- D6 Pin:
- Connected to IN2 pin of L298N DC Motor Driver
- D5 Pin:
- Connected to IN3 pin of L298N DC Motor Driver
- D4 Pin:
- Connected to TRIG pin of HC-SR04 Ultrasonic Sensor
- D3 Pin:
- Connected to IN4 pin of L298N DC Motor Driver
- D2 Pin:
- Connected to DATA pin of IR Receiver
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:
}
Additional Documentation (documentation.txt)