You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/week-5/stepper-motor.md
+16-18Lines changed: 16 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,33 +20,31 @@ To avoid this, we have to use a motor driver module such as the `ULN2003` driver
20
20
Components required:
21
21
- 1x Stepper motor eg. `28BYJ-48`
22
22
- 1x `ULN2003` driver module
23
-
- Jumper wires
23
+
- 1x Power supply module
24
+
- Breadboard
25
+
- Jumper wires (both male-male and female-male)
24
26
- Arduino board
25
27
26
28
:::info[Try it yourself]
27
29
<Tabs>
28
30
<TabItemvalue="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
37
34
- 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.
44
42
</TabItem>
45
43
<TabItemvalue="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?
0 commit comments