Stepper motors are very accurate motors that are commonly used in computer disk drives, printers and clocks. Unlike dc motors, which spin round freely when power is applied, stepper motors require that their power supply be continuously pulsed in specific patterns. For each pulse, the stepper motor moves around one ‘step’, often 7.5 degrees (giving 48 steps in a full revolution).
There are two main types of stepper motors - Unipolar and Bipolar. Unipolar motors usually have four coils which are switched on and off in a particular sequence. Bipolar motors have two coils in which the current flow is reversed in a similar sequence.
Stepper Motor (unipolar)
Schematic
PCB
Move a unipolar motor
Description
- Code Example:
-
steps: toggle 1 ; Toggle pin 1 pause 200 ; Wait 200 ms toggle 2 ; Toggle pin 2 pause 200 ; Wait 200ms goto steps ; Loop
Copy Code Submit an Example
Create Module
Bill of Materials
Description | Code | Qty | |
---|---|---|---|
Unipolar stepper motor | GBX008 | 1 | Buy Now |
L293D motor driver | ICO030 | 1 | Buy Now |
16-pin 0.3" DIP IC Socket | ICH016 | 1 | Buy Now |
100nF Miniature Polyester Capacitor | CAP001 | 1 | Buy Now |
Simulation
Submit Your Own Code!
You must be logged in to submit code examples. Login now.
Share