Arduino UNO Controlled Robotic Arm with Multiple Servo Motors and Pushbutton Activation
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller, a Buck converter, a 7.4V power source, a pushbutton, multiple Servo Motor MG996R units, and an Adafruit 16-Channel 12-bit PWM Servo Driver. The circuit is designed to control multiple servo motors using the Arduino UNO, with power regulation provided by the Buck converter.
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
Buck Converter
- Description: A DC-DC converter that steps down voltage.
- Pins: IN+, IN-, OUT+, OUT-
7.4V Battery
- Description: A 7.4V power source.
- Pins: +, -
Pushbutton
- Description: A simple pushbutton switch.
- Pins: Pin 2, Pin 1, Pin 3, Pin 4
Servo Motor MG996R
- Description: A high-torque servo motor.
- Pins: PMW, VCC 5V, GND
Adafruit 16-Channel 12-bit PWM Servo Driver - I2C
- Description: A PWM driver for controlling up to 16 servos via I2C.
- Pins: 5.0V, VCC, SDA, SCL, OE, GND, PWM0, PWM1, PWM2, PWM3, PWM4, PWM5, PWM6, PWM7, PWRIN, PWM8, PWM9, PWM10, PWM11, PWM12, PWM13, PWM14, PWM15
Wiring Details
Arduino UNO
- 5V connected to VCC of Adafruit 16-Channel 12-bit PWM Servo Driver.
- GND connected to GND of Adafruit 16-Channel 12-bit PWM Servo Driver.
- Vin connected to OUT+ of Buck converter.
- A4 connected to SDA of Adafruit 16-Channel 12-bit PWM Servo Driver.
- A5 connected to SCL of Adafruit 16-Channel 12-bit PWM Servo Driver.
- GND connected to OUT- of Buck converter.
- GND connected to Pin 4 of Pushbutton.
- D13 connected to Pin 1 of Pushbutton.
Buck Converter
- IN+ connected to + of 7.4V Battery.
- IN- connected to - of 7.4V Battery.
- OUT+ connected to Vin of Arduino UNO and PWRIN of Adafruit 16-Channel 12-bit PWM Servo Driver.
- OUT- connected to GND of Arduino UNO and GND of Adafruit 16-Channel 12-bit PWM Servo Driver.
7.4V Battery
- + connected to IN+ of Buck converter.
- - connected to IN- of Buck converter.
Pushbutton
- Pin 4 connected to GND of Arduino UNO.
- Pin 1 connected to D13 of Arduino UNO.
Servo Motor MG996R (Instance 1)
- PMW connected to PWM11 of Adafruit 16-Channel 12-bit PWM Servo Driver.
- VCC 5V connected to 5.0V of Adafruit 16-Channel 12-bit PWM Servo Driver.
- GND connected to GND of Adafruit 16-Channel 12-bit PWM Servo Driver.
Servo Motor MG996R (Instance 2)
- PMW connected to PWM15 of Adafruit 16-Channel 12-bit PWM Servo Driver.
- VCC 5V connected to 5.0V of Adafruit 16-Channel 12-bit PWM Servo Driver.
- GND connected to GND of Adafruit 16-Channel 12-bit PWM Servo Driver.
Servo Motor MG996R (Instance 3)
- PMW connected to PWM7 of Adafruit 16-Channel 12-bit PWM Servo Driver.
- VCC 5V connected to 5.0V of Adafruit 16-Channel 12-bit PWM Servo Driver.
- GND connected to GND of Adafruit 16-Channel 12-bit PWM Servo Driver.
Servo Motor MG996R (Instance 4)
- PMW connected to PWM3 of Adafruit 16-Channel 12-bit PWM Servo Driver.
- VCC 5V connected to 5.0V of Adafruit 16-Channel 12-bit PWM Servo Driver.
- GND connected to GND of Adafruit 16-Channel 12-bit PWM Servo Driver.
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:
}
Additional Documentation (documentation.txt)