Circuit Documentation
Summary
This circuit involves an Arduino Nano microcontroller, two ULN2003A breakout boards, two 28BYJ-48 stepper motors, a micro servo 9G, and a 2.1mm DC barrel jack. The Arduino Nano controls the stepper motors and the servo motor through the ULN2003A breakout boards. The power is supplied through the DC barrel jack.
Component List
Arduino Nano
- Description: A small, complete, and breadboard-friendly board based on the ATmega328P.
- Pins: D1/TX, D0/RX, RESET, GND, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11/MOSI, D12/MISO, VIN, 5V, A7, A6, A5, A4, A3, A2, A1, A0, AREF, 3V3, D13/SCK
ULN2003A Breakout Board
- Description: A Darlington transistor array used to drive stepper motors.
- Pins: In 1, In 2, In 3, In 4, In 5, In 6, In 7, 0V, +5V, ON/OFF jumper switch, BLUE wire, PINK wire, YELLOW wire, ORANGE wire, RED wire
28BYJ-48 Stepper Motor
- Description: A small, inexpensive, and widely used stepper motor.
- Pins: BLUE, PINK, YELLOW, ORANGE, RED
Micro Servo 9G
- Description: A small servo motor used for precise control of angular position.
- Pins: GND, +5V, PWM
2.1mm DC Barrel Jack
- Description: A common power connector for supplying DC power.
- Pins: switch, sleeve, center
Wiring Details
Arduino Nano
- A5 connected to In 1 of ULN2003A breakout board
- A4 connected to In 2 of ULN2003A breakout board
- A3 connected to In 3 of ULN2003A breakout board
- A2 connected to In 4 of ULN2003A breakout board
- GND connected to sleeve of 2.1mm DC Barrel Jack, GND of Micro servo 9G, and 0V of ULN2003A breakout board
- VIN connected to center of 2.1mm DC Barrel Jack, +5V of Micro servo 9G, and +5V of ULN2003A breakout board
- D2 connected to In 4 of ULN2003A breakout board
- D3 connected to In 3 of ULN2003A breakout board
- D4 connected to In 2 of ULN2003A breakout board
- D5 connected to In 1 of ULN2003A breakout board
- D11/MOSI connected to PWM of Micro servo 9G
ULN2003A Breakout Board
- In 1 connected to A5 of Arduino Nano
- In 2 connected to A4 of Arduino Nano
- In 3 connected to A3 of Arduino Nano
- In 4 connected to A2 of Arduino Nano
- 0V connected to GND of Arduino Nano, sleeve of 2.1mm DC Barrel Jack, and GND of Micro servo 9G
- +5V connected to VIN of Arduino Nano, center of 2.1mm DC Barrel Jack, and +5V of Micro servo 9G
- BLUE wire connected to BLUE of 28BYJ-48 Stepper Motor
- PINK wire connected to PINK of 28BYJ-48 Stepper Motor
- YELLOW wire connected to YELLOW of 28BYJ-48 Stepper Motor
- ORANGE wire connected to ORANGE of 28BYJ-48 Stepper Motor
- RED wire connected to RED of 28BYJ-48 Stepper Motor
28BYJ-48 Stepper Motor
- BLUE connected to BLUE wire of ULN2003A breakout board
- PINK connected to PINK wire of ULN2003A breakout board
- YELLOW connected to YELLOW wire of ULN2003A breakout board
- ORANGE connected to ORANGE wire of ULN2003A breakout board
- RED connected to RED wire of ULN2003A breakout board
Micro Servo 9G
- GND connected to sleeve of 2.1mm DC Barrel Jack, GND of Arduino Nano, and 0V of ULN2003A breakout board
- +5V connected to center of 2.1mm DC Barrel Jack, VIN of Arduino Nano, and +5V of ULN2003A breakout board
- PWM connected to D11/MOSI of Arduino Nano
2.1mm DC Barrel Jack
- sleeve connected to GND of Arduino Nano, GND of Micro servo 9G, and 0V of ULN2003A breakout board
- center connected to VIN of Arduino Nano, +5V of Micro servo 9G, and +5V of ULN2003A breakout board
Documented Code
Arduino Nano 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)
