Circuit Documentation
Summary
This circuit involves the use of two Arduino UNO microcontrollers, multiple servo motors, a ULN 2003 driver, and a 28BYJ-48 stepper motor. The circuit is designed to control the servos and stepper motor through the Arduino microcontrollers. The servos are connected to the Arduino for PWM control, while the stepper motor is driven by the ULN 2003 driver, which is also controlled by the Arduino.
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
ULN 2003
- Description: A high-voltage, high-current Darlington transistor array.
- Pins: IN1, IN2, IN3, IN4, IN5, IN6, IN7, GND, +, COIL1, COIL2, COIL3, COIL4, COIL5
Servo
- Description: A small device that has an output shaft. This shaft can be positioned to specific angular positions by sending the servo a coded signal.
- Pins: GND, VCC, PWM
28BYJ-48 Stepper Motor
- Description: A small stepper motor commonly used in various applications.
- Pins: BLUE, PINK, YELLOW, ORANGE, RED
Wiring Details
Arduino UNO
GND connected to:
- Servo (GND)
- Servo (GND)
- Servo (GND)
- ULN 2003 (GND)
5V connected to:
- Servo (VCC)
- Servo (VCC)
- Servo (VCC)
- ULN 2003 (+)
D11 connected to:
- Servo (PWM)
D10 connected to:
- Servo (PWM)
D9 connected to:
- Servo (PWM)
D5 connected to:
- ULN 2003 (IN4)
D4 connected to:
- ULN 2003 (IN3)
D3 connected to:
- ULN 2003 (IN2)
D2 connected to:
- ULN 2003 (IN1)
ULN 2003
GND connected to:
- Arduino UNO (GND)
- Servo (GND)
- Servo (GND)
- Servo (GND)
+ connected to:
- Arduino UNO (5V)
- Servo (VCC)
- Servo (VCC)
- Servo (VCC)
IN4 connected to:
- Arduino UNO (D5)
IN3 connected to:
- Arduino UNO (D4)
IN2 connected to:
- Arduino UNO (D3)
IN1 connected to:
- Arduino UNO (D2)
COIL1 connected to:
- 28BYJ-48 Stepper Motor (BLUE)
COIL2 connected to:
- 28BYJ-48 Stepper Motor (PINK)
COIL3 connected to:
- 28BYJ-48 Stepper Motor (YELLOW)
COIL4 connected to:
- 28BYJ-48 Stepper Motor (ORANGE)
COIL5 connected to:
- 28BYJ-48 Stepper Motor (RED)
Servo
GND connected to:
- Arduino UNO (GND)
- ULN 2003 (GND)
VCC connected to:
- Arduino UNO (5V)
- ULN 2003 (+)
PWM connected to:
- Arduino UNO (D11)
- Arduino UNO (D10)
- Arduino UNO (D9)
28BYJ-48 Stepper Motor
BLUE connected to:
- ULN 2003 (COIL1)
PINK connected to:
- ULN 2003 (COIL2)
YELLOW connected to:
- ULN 2003 (COIL3)
ORANGE connected to:
- ULN 2003 (COIL4)
RED connected to:
- ULN 2003 (COIL5)
Documented Code
Arduino UNO (Microcontroller 1)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Arduino UNO (Microcontroller 2)
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, detailed component list, wiring details, and the code used for the microcontrollers.
