Bluetooth-Controlled Robotic Vehicle with IR Obstacle Detection
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit is designed to control two DC Mini Metal Gear Motors using an L298N DC motor driver, which is interfaced with an Arduino Nano microcontroller. The Arduino Nano also connects to a 5 channel IR array for input and an HC-05 Bluetooth Module for wireless communication. Power is supplied by a 7.4v battery, which is controlled by a Rocker Switch and regulated by an XL6009E1 Boost Converter to ensure stable operation of the motor driver and the microcontroller.
Component List
7.4v Battery
- Description: A 7.4-volt battery providing the main power source for the circuit.
- Pins:
+,-
L298N DC Motor Driver
- Description: A motor driver module capable of driving two 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
5 Channel IR Array
- Description: An array of 5 infrared sensors used for line tracking or obstacle detection.
- Pins:
A5,A4,A3,A2,A1,VCC,GND
Arduino Nano
- Description: A compact microcontroller board based on the ATmega328P, used for controlling the logic of the circuit.
- 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
DC Mini Metal Gear Motor
- Description: A small DC motor with a gearbox for increased torque.
- Pins:
IN1,IN2
HC-05 Bluetooth Module
- Description: A Bluetooth module for wireless communication with the microcontroller.
- Pins:
Key,VCC,GND,TXD,RXD,State
Rocker Switch
- Description: A switch to control the power supply to the circuit.
- Pins:
1,2
XL6009E1 Boost Converter
- Description: A DC-DC boost converter to step up the voltage to a required level.
- Pins:
IN+,IN-,OUT-,OUT+
Wiring Details
7.4v Battery
+connected to Rocker Switch pin1-connected to GND net (common ground)
L298N DC Motor Driver
OUT1connected to DC Mini Metal Gear Motor (1)IN2OUT2connected to DC Mini Metal Gear Motor (1)IN112Vconnected to XL6009E1 Boost ConverterOUT+GNDconnected to GND net (common ground)5Vconnected to Arduino NanoVINOUT3connected to DC Mini Metal Gear Motor (2)IN2OUT4connected to DC Mini Metal Gear Motor (2)IN1ENAconnected to Arduino NanoD3IN1connected to Arduino NanoD4IN2connected to Arduino NanoD5IN3connected to Arduino NanoD7IN4connected to Arduino NanoD8ENBconnected to Arduino NanoD9
5 Channel IR Array
A5connected to Arduino NanoA4A4connected to Arduino NanoA3A3connected to Arduino NanoA2A2connected to Arduino NanoA1A1connected to Arduino NanoA0VCCconnected to Arduino NanoD2GNDconnected to GND net (common ground)
Arduino Nano
GNDconnected to GND net (common ground)VINconnected to L298N DC Motor Driver5VD3connected to L298N DC Motor DriverENAD4connected to L298N DC Motor DriverIN1D5connected to L298N DC Motor DriverIN2D7connected to L298N DC Motor DriverIN3D8connected to L298N DC Motor DriverIN4D9connected to L298N DC Motor DriverENBA4connected to 5 Channel IR ArrayA5A3connected to 5 Channel IR ArrayA4A2connected to 5 Channel IR ArrayA3A1connected to 5 Channel IR ArrayA2A0connected to 5 Channel IR ArrayA1D2connected to 5 Channel IR ArrayVCCD1/TXconnected to HC-05 Bluetooth ModuleRXDD0/RXconnected to HC-05 Bluetooth ModuleTXD5Vconnected to HC-05 Bluetooth ModuleVCC
HC-05 Bluetooth Module
GNDconnected to GND net (common ground)VCCconnected to Arduino Nano5VTXDconnected to Arduino NanoD0/RXRXDconnected to Arduino NanoD1/TX
Rocker Switch
1connected to 7.4v Battery+2connected to XL6009E1 Boost ConverterIN+
XL6009E1 Boost Converter
IN+connected to Rocker Switch2IN-connected to GND net (common ground)OUT+connected to L298N DC Motor Driver12VOUT-connected to GND net (common ground)
Documented Code
Arduino Nano (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Note: The provided code is a template and does not contain any functional code. It is expected that the user will fill in the setup and loop functions with the necessary code to control the motors via the L298N driver, read inputs from the IR array, and communicate with the HC-05 Bluetooth module.