Circuit Documentation
Summary
This circuit integrates a microcontroller (Arduino UNO), a servo motor (Tower Pro SG90), a stepper motor (28BYJ-48), and a ULN2003A breakout board to drive the stepper motor. The Arduino UNO controls the servo motor and the stepper motor through digital pins, providing signals to the servo and stepping sequences to the ULN2003A, which in turn drives the stepper motor. The circuit is powered by a 5V supply from the Arduino, which is distributed to the servo and the ULN2003A breakout board.
Component List
Arduino UNO
- Microcontroller board based on the ATmega328P
- It has 14 digital input/output pins, 6 analog inputs, a 16 MHz quartz crystal, a USB connection, a power jack, an ICSP header, and a reset button.
Tower Pro SG90 Servo
- A small and lightweight servo motor capable of precise control
- It operates on 5V and can be controlled via PWM signal.
28BYJ-48 Stepper Motor
- A small, 5V stepper motor suitable for a wide range of applications
- It has a stepping angle of 5.625 x 1/64 and reduction ratio of 1/64.
ULN2003A Breakout Board
- A board designed to drive stepper motors like the 28BYJ-48
- It contains the ULN2003A Darlington transistor array and provides an interface between the motor and control signals.
Wiring Details
Arduino UNO
- 5V to ULN2003A breakout board (+5V) and Tower Pro SG90 servo (+5V)
- GND to ULN2003A breakout board (0V) and Tower Pro SG90 servo (GND)
- D7 to Tower Pro SG90 servo (Signal)
- D8-D11 to ULN2003A breakout board (In 1-In 4)
Tower Pro SG90 Servo
- Signal connected to Arduino UNO (D7)
- +5V and GND connected to Arduino UNO (5V and GND)
28BYJ-48 Stepper Motor
- BLUE, PINK, YELLOW, ORANGE, RED wires connected to corresponding wires on ULN2003A breakout board
ULN2003A Breakout Board
- In 1-In 4 connected to Arduino UNO (D8-D11)
- BLUE, PINK, YELLOW, ORANGE, RED wires connected to corresponding wires on 28BYJ-48 Stepper Motor
- +5V and 0V connected to Arduino UNO (5V and GND)
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
}
void loop() {
}
Note: The provided code is a template and does not contain any functional code to control the servo or stepper motor. The user is expected to fill in the setup and loop functions with the appropriate control code.