Skip to content

Commit c7b20dd

Browse files
committed
Add stepper motor wiring diagram
1 parent e68e30c commit c7b20dd

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

docs/week-5/stepper-motor.md

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,33 +20,31 @@ To avoid this, we have to use a motor driver module such as the `ULN2003` driver
2020
Components required:
2121
- 1x Stepper motor eg. `28BYJ-48`
2222
- 1x `ULN2003` driver module
23-
- Jumper wires
23+
- 1x Power supply module
24+
- Breadboard
25+
- Jumper wires (both male-male and female-male)
2426
- Arduino board
2527

2628
:::info[Try it yourself]
2729
<Tabs>
2830
<TabItem value="problem" label="Problem">
29-
Search up your servo motor's datasheet and pinout online. Then, try to build your circuit on the breadboard. You can use this pin layout to help:
30-
31-
- Stepper motor connections to motor driver
32-
- Coil 1 (orange) → IN1
33-
- Coil 2 (pink) → IN2
34-
- Coil 3 (yellow) → IN3
35-
- Coil 4 (blue) → IN4
36-
- 5V (red) → VCC on ULN2003
31+
Search up your servo motor's datasheet and pinout online. Then, try to build your circuit on the breadboard. You can use this layout to help:
32+
33+
- Connect your stepper motor to your motor driver
3734
- Motor driver (ULN2003) connections to Arduino
38-
- IN1 → Pin 8
39-
- IN2 → Pin 9
40-
- IN3 → Pin 10
41-
- IN4 → Pin 11
42-
- VCC → Arduino 5V
43-
- GND → Arduino GND
35+
- IN1 → Pin 11
36+
- IN2 → Pin 10
37+
- IN3 → Pin 9
38+
- IN4 → Pin 8
39+
- VCC → Breadboard 5V rail
40+
- GND → Breadboard GND rail
41+
- Connect your power supply module to your breadboard, ensuring that the positive and negative terminals are in line with your breadboard's power rails.
4442
</TabItem>
4543
<TabItem value="solution" label="Solution">
46-
Below is the equivalent circuit diagram for this schematic. Did you hook up your components correctly?
44+
Below is the equivalent circuit diagram for this layout. Did you hook up your components correctly?
4745

48-
<!-- <div class="img-center">![Blank wiring diagram](Blank)</div>
49-
<br></br> -->
46+
<div class="img-center">![Stepper motor wiring diagram](img/stepper-wiring.png)</div>
47+
<br></br>
5048
</TabItem>
5149
</Tabs>
5250
:::

0 commit comments

Comments
 (0)