Arduino Nano and L298N Motor Driver Controlled Robotic System with Bluetooth Connectivity
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes various components such as servos, DC motors, a buck converter, a 12V battery, an L298N DC motor driver, an Arduino Nano, and an HC-05 Bluetooth module. The circuit is designed to control multiple motors and servos, with power regulation provided by a buck converter and communication facilitated by a Bluetooth module.
Component List
Servo
- Description: A servo motor used for precise control of angular position.
- Pins: gnd, vcc, pulse
DC Motor
- Description: A DC motor used for continuous rotation.
- Pins: pin 1, pin 2
Buck Converter
- Description: A DC-DC converter used to step down voltage.
- Pins: IN+, IN-, OUT+, OUT-
12V Battery
- Description: A power source providing 12V.
- Pins: -, +
L298N DC Motor Driver
- Description: A dual H-bridge motor driver used to control the direction and speed of 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
Arduino Nano
- Description: A microcontroller 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
HC-05 Bluetooth Module
- Description: A Bluetooth module used for wireless communication.
- Pins: Key, VCC, GND, TXD, RXD, State
Wiring Details
Servo
- gnd: Connected to Buck converter OUT-
- vcc: Connected to Buck converter OUT+
- pulse:
- One servo connected to Arduino Nano D9
- Another servo connected to Arduino Nano D10
DC Motor
Motor 1:
- pin 1: Connected to L298N DC motor driver OUT2
- pin 2: Connected to L298N DC motor driver OUT1
Motor 2:
- pin 1: Connected to L298N DC motor driver OUT3
- pin 2: Connected to L298N DC motor driver OUT4
Motor 3:
- pin 1: Connected to L298N DC motor driver OUT3
- pin 2: Connected to L298N DC motor driver OUT4
Buck Converter
- IN+: Connected to 12V Battery +
- IN-: Connected to 12V Battery -
- OUT+: Connected to Servo vcc
- OUT-: Connected to Servo gnd
12V Battery
- +: Connected to Buck converter IN+ and L298N DC motor driver 12V
- -: Connected to Buck converter IN- and L298N DC motor driver GND
L298N DC Motor Driver
- OUT1: Connected to DC Motor pin 2
- OUT2: Connected to DC Motor pin 1
- OUT3: Connected to DC Motor pin 1
- OUT4: Connected to DC Motor pin 2
- 12V: Connected to 12V Battery +
- GND: Connected to 12V Battery -
- ENA: Connected to Arduino Nano D5
- IN1: Connected to Arduino Nano D7
- IN2: Connected to Arduino Nano D8
- IN3: Connected to Arduino Nano D11/MOSI
- IN4: Connected to Arduino Nano D12/MISO
- ENB: Connected to Arduino Nano D6
Arduino Nano
- VIN: Connected to Buck converter IN+
- GND: Connected to Buck converter OUT-
- D2: Connected to HC-05 Bluetooth Module TXD
- D3: Connected to HC-05 Bluetooth Module RXD
- D5: Connected to L298N DC motor driver ENA
- D6: Connected to L298N DC motor driver ENB
- D7: Connected to L298N DC motor driver IN1
- D8: Connected to L298N DC motor driver IN2
- D9: Connected to Servo pulse
- D10: Connected to Servo pulse
- D11/MOSI: Connected to L298N DC motor driver IN3
- D12/MISO: Connected to L298N DC motor driver IN4
- 5V: Connected to HC-05 Bluetooth Module VCC
HC-05 Bluetooth Module
- VCC: Connected to Arduino Nano 5V
- GND: Connected to Buck converter OUT-
- TXD: Connected to Arduino Nano D2
- RXD: Connected to Arduino Nano D3
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)
This document provides a comprehensive overview of the circuit, including a summary, component list, wiring details, and documented code.