Arduino UNO Controlled Robotic Arm with DC Motor and Micro Servos
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller, an L298N DC motor driver, three Micro servo 9G motors, a DC motor, two resistors, and a pushbutton. The Arduino UNO controls the servos and the DC motor through the L298N driver. The pushbutton is used as an input to the Arduino, and the resistors are used for current limiting.
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
L298N DC Motor Driver
- Description: A dual H-Bridge motor driver module.
- 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
Micro Servo 9G
- Description: A small servo motor.
- Pins: GND, +5V, PWM
DC Motor
- Description: A simple DC motor.
- Pins: pin 1, pin 2
Resistor (200 Ohms)
- Description: A resistor with a resistance of 200 Ohms.
- Pins: pin1, pin2
Resistor (10k Ohms)
- Description: A resistor with a resistance of 10k Ohms.
- Pins: pin1, pin2
Pushbutton
- Description: A simple pushbutton.
- Pins: Pin 2, Pin 1, Pin 3, Pin 4
Wiring Details
Arduino UNO
- GND: Connected to GND of L298N DC motor driver, GND of all Micro servo 9G motors, and pin2 of 10k Ohms resistor.
- 5V: Connected to 5V of L298N DC motor driver, +5V of all Micro servo 9G motors, and Pin 2 of Pushbutton.
- D13: Connected to Pin 4 of Pushbutton.
- D11: Connected to PWM of one Micro servo 9G motor.
- D10: Connected to PWM of another Micro servo 9G motor.
- D9: Connected to PWM of the third Micro servo 9G motor.
- D7: Connected to ENB of L298N DC motor driver.
- D5: Connected to IN4 of L298N DC motor driver.
- D4: Connected to IN3 of L298N DC motor driver.
L298N DC Motor Driver
- GND: Connected to GND of Arduino UNO, GND of all Micro servo 9G motors, and pin2 of 10k Ohms resistor.
- 5V: Connected to 5V of Arduino UNO, +5V of all Micro servo 9G motors, and Pin 2 of Pushbutton.
- ENB: Connected to D7 of Arduino UNO.
- IN4: Connected to D5 of Arduino UNO.
- IN3: Connected to D4 of Arduino UNO.
- OUT1: Connected to pin 1 of DC Motor.
- OUT2: Connected to pin 2 of DC Motor.
Micro Servo 9G (1)
- GND: Connected to GND of Arduino UNO, GND of L298N DC motor driver, and pin2 of 10k Ohms resistor.
- +5V: Connected to 5V of Arduino UNO, 5V of L298N DC motor driver, and Pin 2 of Pushbutton.
- PWM: Connected to D9 of Arduino UNO.
Micro Servo 9G (2)
- GND: Connected to GND of Arduino UNO, GND of L298N DC motor driver, and pin2 of 10k Ohms resistor.
- +5V: Connected to 5V of Arduino UNO, 5V of L298N DC motor driver, and Pin 2 of Pushbutton.
- PWM: Connected to D10 of Arduino UNO.
Micro Servo 9G (3)
- GND: Connected to GND of Arduino UNO, GND of L298N DC motor driver, and pin2 of 10k Ohms resistor.
- +5V: Connected to 5V of Arduino UNO, 5V of L298N DC motor driver, and Pin 2 of Pushbutton.
- PWM: Connected to D11 of Arduino UNO.
DC Motor
- pin 1: Connected to OUT1 of L298N DC motor driver.
- pin 2: Connected to OUT2 of L298N DC motor driver.
Resistor (200 Ohms)
- pin1: Not connected.
- pin2: Not connected.
Resistor (10k Ohms)
- pin1: Connected to Pin 3 of Pushbutton.
- pin2: Connected to GND of Arduino UNO, GND of L298N DC motor driver, and GND of all Micro servo 9G motors.
Pushbutton
- Pin 2: Connected to 5V of Arduino UNO, 5V of L298N DC motor driver, and +5V of all Micro servo 9G motors.
- Pin 3: Connected to pin1 of 10k Ohms resistor.
- Pin 4: Connected to D13 of Arduino UNO.
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Documentation (documentation.txt)
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the Arduino UNO microcontroller.