User Tools

Site Tools


how_to_use_a_stepper_motor

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
how_to_use_a_stepper_motor [2017/01/31 20:48] walkeradminhow_to_use_a_stepper_motor [2017/02/04 21:54] – [Python Code] walkeradmin
Line 4: Line 4:
 \\  \\ 
 {{:stepper_motor_banner_small.jpg?650|}} {{:stepper_motor_banner_small.jpg?650|}}
-\\  
-\\  
-<color red>This is work in progress, when this warning disappears, my work here is done :)</color> 
 \\  \\ 
 \\  \\ 
Line 27: Line 24:
 ==== The Stepper Motor ==== ==== The Stepper Motor ====
 \\  \\ 
-A stepper motor contains several coils (depending on the type) that can be 'energised' in a pattern to produce movement, unlike a motor that just spins constantly. Stepper Motors are used where some degree of accuracy in movement is required. For example, getting a motor to only spin for a 1/4 turn would be very tricky. A stepper motor can be 'stepped' a set number of times, this gives it much greater accuracy and repeatable results.+A stepper motor contains several coils (depending on the type) that can be 'energised' in a pattern to produce movement, unlike a motor that just spins constantly. Stepper Motors are used where some degree of accuracy in movement is required. For example, getting a normal (non stepper) motor to only spin for a 1/4 turn would be very tricky. A stepper motor can be 'stepped' a set number of times, this gives it much greater accuracy and repeatable results.
 \\  \\ 
 \\  \\ 
Line 39: Line 36:
 \\  \\ 
 \\  \\ 
-{{:stepper_motor_types.jpg?300|}}+{{:stepper_motor_types.jpg?400|}}
 \\  \\ 
 \\  \\ 
Line 54: Line 51:
 \\  \\ 
 \\  \\ 
-{{:5wiresteppermotor.jpg?140|}}+{{:5wiresteppermotor.jpg?200|}}
 \\  \\ 
 \\  \\ 
Line 68: Line 65:
 \\  \\ 
 \\  \\ 
-{{:s-l1600_stepper_motor.jpg?200|}} +{{:s-l1600_stepper_motor.jpg?250|}} 
-{{:uln2003_pcb.jpg?200|}}+{{:uln2003_pcb.jpg?250|}}
 \\  \\ 
 \\  \\ 
Line 157: Line 154:
 Firstly, here is the code, the breakdown of the code is further down this page. Firstly, here is the code, the breakdown of the code is further down this page.
 \\  \\ 
-<file>+<sxh [py][; options for SyntaxHighlighter]>
 #!/usr/bin/python #!/usr/bin/python
 +# Written in Python 2.7
 +
 +
 # Import required libraries # Import required libraries
 import sys import sys
Line 226: Line 226:
   # Wait before moving on   # Wait before moving on
   time.sleep(WaitTime)   time.sleep(WaitTime)
-</file>+</sxh>
 \\  \\ 
 \\  \\ 
how_to_use_a_stepper_motor.txt · Last modified: 2023/03/09 22:35 by 127.0.0.1