Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes multiple motors, servos, and an Arduino UNO microcontroller. The circuit is designed to control the motors and servos using the Arduino UNO, which is programmed to manage the operations.
Component List
Motor
- Description: A standard DC motor.
- Pins:
- Negative
- Positive
Micro Servo 9G
- Description: A small servo motor commonly used in hobby projects.
- Pins:
- GND
- +5V
- PWM
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
- D0 to D13
MG996R
- Description: A high-torque servo motor.
- Pins:
- GND
- VCC
- SIG
Wiring Details
Motor
Negative Pin Connections:
- Connected to GND of MG996R
- Connected to GND of Micro Servo 9G
- Connected to GND of Arduino UNO
- Connected to GND of other motors
Positive Pin Connections:
- Motor 1: Connected to D6 of Arduino UNO
- Motor 2: Connected to D5 of Arduino UNO
- Motor 3: Connected to D7 of Arduino UNO
- Motor 4: Connected to D8 of Arduino UNO
Micro Servo 9G
GND Pin Connections:
- Connected to GND of Arduino UNO
- Connected to GND of other components
+5V Pin Connections:
- Connected to 5V of Arduino UNO
PWM Pin Connections:
- Servo 1: Connected to D9 of Arduino UNO
- Servo 2: Connected to D10 of Arduino UNO
Arduino UNO
GND Pin Connections:
- Connected to GND of all motors and servos
5V Pin Connections:
- Connected to +5V of Micro Servo 9G
- Connected to VCC of MG996R
Digital Pins:
- D2: Connected to SIG of MG996R
- D3: Connected to SIG of MG996R
- D4: Connected to SIG of MG996R
- D5: Connected to Positive of Motor 2
- D6: Connected to Positive of Motor 1
- D7: Connected to Positive of Motor 3
- D8: Connected to Positive of Motor 4
- D9: Connected to PWM of Micro Servo 9G
- D10: Connected to PWM of Micro Servo 9G
MG996R
GND Pin Connections:
- Connected to GND of Arduino UNO
- Connected to GND of other components
VCC Pin Connections:
- Connected to 5V of Arduino UNO
SIG Pin Connections:
- Servo 1: Connected to D2 of Arduino UNO
- Servo 2: Connected to D3 of Arduino UNO
- Servo 3: Connected to D4 of Arduino UNO
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, and the loop function contains the main code that runs repeatedly. You can add your motor and servo control logic within these functions.
