Arduino Nano-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 an Arduino Nano microcontroller, an L298N DC motor driver, an HC-05 Bluetooth module, multiple HC-SR04 ultrasonic sensors, IR sensors, and hobby gearmotors. The circuit is designed to interface these components for various functionalities such as motor control, distance measurement, and wireless communication.
Component List
Arduino Nano
- Description: A small, complete, and breadboard-friendly board based on the ATmega328P.
- Pins: D1/TX, D0/RX, RESET, GND, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11/MOSI, D12/MISO, VIN, 5V, A7, A6, A5, A4, A3, A2, A1, A0, AREF, 3V3, D13/SCK
L298N DC Motor Driver
- Description: A high voltage, high current dual full-bridge driver designed to accept standard TTL logic levels.
- 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
HC-05 Bluetooth Module
- Description: A Bluetooth module for wireless communication.
- Pins: Key, VCC, GND, TXD, RXD, State
HC-SR04 Ultrasonic Sensor
- Description: An ultrasonic sensor for distance measurement.
- Pins: VCC, TRIG, ECHO, GND
IR Sensor
- Description: An infrared sensor for object detection.
- Pins: out, gnd, vcc
Hobby Gearmotor with 48:1 Gearbox
- Description: A small DC motor with a 48:1 gearbox for increased torque.
- Pins: pin 1, pin 2
GND
- Description: Ground connection.
- Pins: GND
Vcc
- Description: Power supply connection.
- Pins: Vcc
Wiring Details
Arduino Nano
- D1/TX connected to HC-05 Bluetooth Module RXD
- D0/RX connected to HC-05 Bluetooth Module TXD
- GND connected to GND
- D2 connected to HC-SR04 Ultrasonic Sensor ECHO
- D3 connected to HC-SR04 Ultrasonic Sensor TRIG
- D4 connected to HC-SR04 Ultrasonic Sensor ECHO
- D5 connected to HC-SR04 Ultrasonic Sensor TRIG
- D6 connected to HC-SR04 Ultrasonic Sensor TRIG
- D7 connected to HC-SR04 Ultrasonic Sensor ECHO
- D8 connected to HC-SR04 Ultrasonic Sensor ECHO
- D9 connected to HC-SR04 Ultrasonic Sensor TRIG
- D11/MOSI connected to L298N DC Motor Driver IN1
- D12/MISO connected to L298N DC Motor Driver IN2
- 5V connected to Vcc
- A5 connected to HC-05 Bluetooth Module State
- A4 connected to HC-05 Bluetooth Module Key
- A3 connected to IR Sensor out
- A2 connected to IR Sensor out
- A1 connected to L298N DC Motor Driver IN4
- A0 connected to L298N DC Motor Driver IN3
L298N DC Motor Driver
- OUT1 connected to Hobby Gearmotor with 48:1 Gearbox pin 2
- OUT2 connected to Hobby Gearmotor with 48:1 Gearbox pin 1
- OUT3 connected to Hobby Gearmotor with 48:1 Gearbox pin 2
- OUT4 connected to Hobby Gearmotor with 48:1 Gearbox pin 1
HC-05 Bluetooth Module
- VCC connected to Vcc
- GND connected to GND
HC-SR04 Ultrasonic Sensor
- VCC connected to Vcc
- GND connected to GND
IR Sensor
- gnd connected to GND
- vcc connected to Vcc
Documented Code
Arduino Nano 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)