Arduino UNO Bluetooth-Controlled Robotic Arm with Servo and DC Motors
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller, an HC-05 Bluetooth module, three servo motors, an L298N motor driver, two DC motors, and an AC-DC PSU board. The Arduino UNO serves as the central controller, interfacing with the Bluetooth module for communication, controlling the servo motors, and driving the DC motors through the L298N motor driver. The AC-DC PSU board provides the necessary power supply for the components.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- 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
HC-05 Bluetooth Module
- Description: A Bluetooth module for wireless communication.
- Pins: Key, VCC, TXD, RXD, State, GND
Servo Motor
- Description: A motor that allows for precise control of angular position.
- Pins: GND, VCC, PWM
L298N Motor Driver
- Description: A dual H-bridge motor driver that allows control of two DC motors.
- Pins: IN1, IN2, IN3, IN4, ENA, ENB, OUT1, OUT2, OUT3, OUT4, GND, 5V, 12V
DC Motor RC 7.4V
- Description: A DC motor designed for RC applications.
- Pins: Negative, Positive
AC-DC PSU Board 220V-5V&12V
- Description: A power supply unit that converts 220V AC to 5V and 12V DC.
- Pins: AC-N, AC-L, +5V, GND, +12V
Wiring Details
Arduino UNO
- 5V connected to VCC of HC-05 Bluetooth Module
- GND connected to GND of HC-05 Bluetooth Module
- D10 connected to PWM of Servo Motor 1
- D9 connected to PWM of Servo Motor 2
- D8 connected to PWM of Servo Motor 3
- D7 connected to ENB of L298N Motor Driver
- D6 connected to ENA of L298N Motor Driver
- D5 connected to IN4 of L298N Motor Driver
- D4 connected to IN3 of L298N Motor Driver
- D3 connected to IN2 of L298N Motor Driver
- D2 connected to IN1 of L298N Motor Driver
- D1 connected to RXD of HC-05 Bluetooth Module
- D0 connected to TXD of HC-05 Bluetooth Module
HC-05 Bluetooth Module
- VCC connected to 5V of Arduino UNO
- GND connected to GND of Arduino UNO
- RXD connected to D1 of Arduino UNO
- TXD connected to D0 of Arduino UNO
Servo Motor 1
- PWM connected to D10 of Arduino UNO
- GND connected to GND of AC-DC PSU board
- VCC connected to 5V of L298N Motor Driver
Servo Motor 2
- PWM connected to D9 of Arduino UNO
- GND connected to GND of AC-DC PSU board
- VCC connected to 5V of L298N Motor Driver
Servo Motor 3
- PWM connected to D8 of Arduino UNO
- GND connected to GND of AC-DC PSU board
- VCC connected to 5V of L298N Motor Driver
L298N Motor Driver
- ENB connected to D7 of Arduino UNO
- ENA connected to D6 of Arduino UNO
- IN4 connected to D5 of Arduino UNO
- IN3 connected to D4 of Arduino UNO
- IN2 connected to D3 of Arduino UNO
- IN1 connected to D2 of Arduino UNO
- OUT1 connected to Negative of DC Motor 2
- OUT2 connected to Positive of DC Motor 2
- OUT3 connected to Negative of DC Motor 1
- OUT4 connected to Positive of DC Motor 1
- GND connected to GND of AC-DC PSU board
- 5V connected to VCC of Servo Motors
- 12V connected to +12V of AC-DC PSU board
DC Motor 1
- Negative connected to OUT3 of L298N Motor Driver
- Positive connected to OUT4 of L298N Motor Driver
DC Motor 2
- Negative connected to OUT1 of L298N Motor Driver
- Positive connected to OUT2 of L298N Motor Driver
AC-DC PSU Board
- GND connected to GND of Servo Motors and L298N Motor Driver
- +12V connected to 12V of L298N Motor Driver
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:
}
This code is a basic template for the Arduino UNO. The setup() function is used to initialize any settings or configurations, and the loop() function contains the main logic that runs repeatedly.