Using a Laserjet 5L stepper motor

yoda15

New Member
This is a sample circuit and code to control a LJ5 stepper motor.
The motor has a strong magnetic holding on each step so power should not be needed to hold position and depending on speed required, using the part of the gear train will increase the power.

Attached is the circuit that can be loaded into pebble and the source code.

Stepper motor connections from the bottom:
[3][4][1][2]
/---------------\
| |
| motor |
| |
\----------------/

The code is for an 18x and reads in input from a pot and moves the motor to one of 255 positions. If you use the first 2 gears it rotates the second gear about 1/2 turn.
The last position is remembered bewteen power off/on.
If the value read by the adc jitters between 2 values the moter will do the same so needs some smarts added to stop that.
If driven continuously the 7805 without a heat sink get quite hot when main supply to it is 12 volt.
 

Attachments

Top