Editing Stepper Motor and ULN2003
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
= Description = | = Description = | ||
A stepper motor is a motor where the turning can be controlled in steps. | A stepper motor is a motor where the turning can be controlled in steps. | ||
Line 16: | Line 9: | ||
* see https://github.com/zhcong/ULN2003-for-ESP32 | * see https://github.com/zhcong/ULN2003-for-ESP32 | ||
− | + | [[File:Stepper03.JPG|300px]] | |
− | [[File:Stepper03.JPG| | ||
ULN2003 driver module. | ULN2003 driver module. | ||
Line 25: | Line 17: | ||
= How to connect it electrically = | = How to connect it electrically = | ||
− | [[File:Stepper-c.JPG| | + | [[File:Stepper-c.JPG|x420px]] |
− | |||
− | |||
− | |||
[[File:Stepper-cables01.JPG|x200px]] | [[File:Stepper-cables01.JPG|x200px]] | ||
Line 45: | Line 34: | ||
from machine import Pin | from machine import Pin | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
In1 = Pin(32,Pin.OUT) | In1 = Pin(32,Pin.OUT) | ||
In2 = Pin(33,Pin.OUT) | In2 = Pin(33,Pin.OUT) | ||
Line 65: | Line 47: | ||
s1.step(509) | s1.step(509) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
+ | |||
+ | |||
= Related Tutorial Videos = | = Related Tutorial Videos = | ||
− | + | <youtube>PEKjvD1uQe4</youtube> | |
− |