Arduino UNO Controlled Dual Stepper Motor and LED Indicator System
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller, two ULN 2003 driver ICs, two 28BYJ-48 stepper motors, two yellow LEDs, two resistors, a 9V battery, and a power jack. The Arduino UNO controls the LEDs and stepper motors through the ULN 2003 driver ICs. The resistors are used to limit the current through the LEDs. The 9V battery provides power to the circuit.
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
LED: Two Pin (yellow)
- Description: A yellow light-emitting diode.
- Pins: cathode, anode
28BYJ-48 Stepper Motor
- Description: A 5V stepper motor.
- Pins: BLUE, PINK, YELLOW, ORANGE, RED
Resistor
- Description: A resistor with a resistance of 330 Ohms.
- Pins: pin1, pin2
9V Battery
- Description: A 9V battery for power supply.
- Pins: -, +
Power Jack
- Description: A power jack for connecting external power.
- Pins: vcc, gnd
Wiring Details
Arduino UNO
- D13 connected to anode of LED: Two Pin (yellow)
- GND connected to pin2 of Resistor
- D12 connected to anode of LED: Two Pin (yellow)
- 5V connected to + of ULN 2003
- GND connected to GND of ULN 2003
- D11 connected to IN1 of ULN 2003
- D10 connected to IN2 of ULN 2003
- D9 connected to IN3 of ULN 2003
- D8 connected to IN4 of ULN 2003
- D7 connected to IN1 of ULN 2003
- D6 connected to IN2 of ULN 2003
- D5 connected to IN3 of ULN 2003
- D4 connected to IN4 of ULN 2003
ULN 2003
- + connected to 5V of Arduino UNO
- GND connected to GND of Arduino UNO
- IN1 connected to D11 of Arduino UNO
- IN2 connected to D10 of Arduino UNO
- IN3 connected to D9 of Arduino UNO
- IN4 connected to D8 of Arduino UNO
- COIL1 connected to BLUE of 28BYJ-48 Stepper Motor
- COIL2 connected to PINK of 28BYJ-48 Stepper Motor
- COIL3 connected to YELLOW of 28BYJ-48 Stepper Motor
- COIL4 connected to ORANGE of 28BYJ-48 Stepper Motor
- COIL5 connected to RED of 28BYJ-48 Stepper Motor
LED: Two Pin (yellow)
- anode connected to D13 of Arduino UNO
- cathode connected to pin1 of Resistor
28BYJ-48 Stepper Motor
- BLUE connected to COIL1 of ULN 2003
- PINK connected to COIL2 of ULN 2003
- YELLOW connected to COIL3 of ULN 2003
- ORANGE connected to COIL4 of ULN 2003
- RED connected to COIL5 of ULN 2003
Resistor
- pin1 connected to cathode of LED: Two Pin (yellow)
- pin2 connected to GND of Arduino UNO
Code Documentation
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 where you initialize your settings, and the loop() function is where you place the main code that runs repeatedly.