Arduino UNO and L298N Motor Driver Bluetooth-Controlled Robotic Arm
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 L298N DC motor driver, an XL4015 5A DC Buck Step-down, an HC-05 Bluetooth Module, multiple MG996R servos, DC motors, a 7.4V battery, and a rocker switch. The circuit is designed to control DC motors and servos, with power regulation and Bluetooth communication capabilities.
Component List
L298N DC Motor Driver
- Description: Dual H-Bridge motor driver
- 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
XL4015 5A DC Buck Step-down
- Description: DC-DC step-down converter
- Pins: Output +, Output -, Input +, Input -
HC-05 Bluetooth Module
- Description: Bluetooth communication module
- Pins: Key, VCC, GND, TXD, RXD, State
Arduino UNO
- Description: Microcontroller board
- 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
MG996R Servo
- Description: High-torque servo motor
- Pins: GND, VCC, SIG
DC Motor
- Description: Standard DC motor
- Pins: pin 1, pin 2
7.4V Battery
- Description: Power source
- Pins: +, -
Rocker Switch
- Description: On/Off switch
- Pins: output, input
Wiring Details
L298N DC Motor Driver
- OUT1 connected to DC Motor pin 2
- OUT2 connected to DC Motor pin 1
- 12V connected to XL4015 5A DC Buck Step-down Input +, Arduino UNO Vin, and rocker switch output
- GND connected to 7.4V Battery -, XL4015 5A DC Buck Step-down Input -, HC-05 Bluetooth Module GND, and Arduino UNO GND
- OUT3 connected to DC Motor pin 2
- OUT4 connected to DC Motor pin 1
- ENA connected to ENB and Arduino UNO D5
- IN1 connected to Arduino UNO A3
- IN2 connected to Arduino UNO A2
- IN3 connected to Arduino UNO A1
- IN4 connected to Arduino UNO A0
XL4015 5A DC Buck Step-down
- Input + connected to L298N DC Motor Driver 12V, Arduino UNO Vin, and rocker switch output
- Input - connected to 7.4V Battery -, L298N DC Motor Driver GND, HC-05 Bluetooth Module GND, and Arduino UNO GND
- Output + connected to MG996R Servo VCC
- Output - connected to MG996R Servo GND
HC-05 Bluetooth Module
- VCC connected to Arduino UNO 5V
- GND connected to 7.4V Battery -, XL4015 5A DC Buck Step-down Input -, L298N DC Motor Driver GND, and Arduino UNO GND
- TXD connected to Arduino UNO D1
- RXD connected to Arduino UNO D0
Arduino UNO
- Vin connected to XL4015 5A DC Buck Step-down Input +, L298N DC Motor Driver 12V, and rocker switch output
- GND connected to 7.4V Battery -, XL4015 5A DC Buck Step-down Input -, L298N DC Motor Driver GND, and HC-05 Bluetooth Module GND
- 5V connected to HC-05 Bluetooth Module VCC
- D5 connected to L298N DC Motor Driver ENA and ENB
- A3 connected to L298N DC Motor Driver IN1
- A2 connected to L298N DC Motor Driver IN2
- A1 connected to L298N DC Motor Driver IN3
- A0 connected to L298N DC Motor Driver IN4
- D1 connected to HC-05 Bluetooth Module TXD
- D0 connected to HC-05 Bluetooth Module RXD
- D12 connected to MG996R Servo SIG
- D11 connected to MG996R Servo SIG
- D10 connected to MG996R Servo SIG
- D9 connected to MG996R Servo SIG
- D8 connected to MG996R Servo SIG
MG996R Servo
- VCC connected to XL4015 5A DC Buck Step-down Output +
- GND connected to XL4015 5A DC Buck Step-down Output -
- SIG connected to Arduino UNO D12, D11, D10, D9, D8
DC Motor
- pin 2 connected to L298N DC Motor Driver OUT1
- pin 1 connected to L298N DC Motor Driver OUT2
- pin 2 connected to L298N DC Motor Driver OUT3
- pin 1 connected to L298N DC Motor Driver OUT4
7.4V Battery
- - connected to XL4015 5A DC Buck Step-down Input -, L298N DC Motor Driver GND, HC-05 Bluetooth Module GND, and Arduino UNO GND
- + connected to rocker switch input
Rocker Switch
- output connected to XL4015 5A DC Buck Step-down Input +, L298N DC Motor Driver 12V, and Arduino UNO Vin
- input connected to 7.4V Battery +
Documented Code
Arduino UNO Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
L298N DC Motor Driver Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This documentation provides a comprehensive overview of the circuit, including a summary, component list, wiring details, and documented code.