View Single Post
  #5  
Old 22-10-2010, 07:26 PM
bojan's Avatar
bojan
amateur

bojan is online now
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 7,112
Stepper motor driver application for focus control

Finally, here it is.
Zip file contains executable, configuration file, source and INPOUT32.dll.
All of those should be unzipped into subdirectory of your choice.

LPT1 connector wiring is as follows:

First 4 bits are used for strobe/direction stepper drivers (with additional signal for motor ON/OFF, as per suggestions)
The other 4 bits are for conventional drivers (individual transistor for each coil).

Pin No

2 - direction
3 - strobe
4 - motor ON

6 - Motor coil A
7 - Motor coil B
8 - Motor coil C
9 - Motor coil D

Step-Dir (first 4 bits) are not tested yet, because I don't have appropriate hardware ready yet. However, I don't expect problems..
4-phase stepper driving works OK on my XP machine.
When inactive (bar not moving), motor is idle (not powered).
However, I certainly recommend disconnecting power supply or DB25 connector from computer, in case utility is not used, as the LPT port output could be anything initially.. and as a result, motor could be overloaded.
Direction of motor can be changed by rewiring.. I didn't bother to implement the direction change in software at the moment (something must be left for tomorrow, n'est-ce pas? )

All comments are welcome (including suggestions for improvement and/or modification for other applications.. I will try to address them as soon as possible).
Attached Files
File Type: zip Focus.zip (169.5 KB, 29 views)

Last edited by bojan; 27-10-2010 at 08:20 AM.
Reply With Quote