Go Back   IceInSpace > Equipment > Software and Computers
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread
  #1  
Old 11-10-2010, 06:46 PM
bojan's Avatar
bojan
amateur

bojan is offline
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 6,943
Focus control software, freeware

It seems nothing suitable (functionality, freeware) exists on the web ..
So I decided to write my own .

Attached is the GUI example of what it should look like (currently it does nothing useful.. apart from keeping up appearances ).

It will control the stepper motor (step-direction, or 4-phase unipolar),

The position of focuser will be saved into a file... and that's about it.

When finished, I will post it here. Hopefully it will work on XP machines.
Any comments?

EDIT: sample program removed and replaced with working version later in the thread

Last edited by bojan; 25-10-2010 at 09:47 AM.
Reply With Quote
  #2  
Old 15-10-2010, 01:38 PM
Karls48 (Karl)
Registered User

Karls48 is offline
 
Join Date: Jan 2006
Location: Sydney
Posts: 753
Hi Bojan. It would be good to have a computer focus control.It looks good. Few questions. How are you going to control stepper motor – RS232 or USB? I think that your control slider should be in the middle position. +50 – 0 -50. This way you will not need extra button to reverse motor direction. Also – what I found out with almost all stepper controllers. They do not provide option to switch the motor off. Holding current on most of the small steppers is in vicinity of 2A and that flattens the battery pretty quickly. Not talking about the motor heating up considerably.
Reply With Quote
  #3  
Old 18-10-2010, 06:46 AM
bojan's Avatar
bojan
amateur

bojan is offline
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 6,943
Hi Karl,
thank you for your comments.
Well, my thoughts were in line with yours basically, however, I don't know how to program USB in Delphi (yet), so I intend to use LPT and RS232 (by toggling data / control lines).
Also I changed GUI somewhat, have a look at working version lower in the hread. Now it also creates a file and stores current position in it by clicking a button.
Button for reverse and ON/OFF function are a good ideas (I was thinking about rotating the motor connector by 180° for reversing - if wires are allocated properly, it is the easiest way, I am using this method on all my designs with steppers. However reversing on software side is better idea), I will certainly think about the way how to implement them.

Last edited by bojan; 25-10-2010 at 09:45 AM.
Reply With Quote
  #4  
Old 18-10-2010, 08:36 PM
Cloudyagain's Avatar
Cloudyagain (Neale)
Registered User

Cloudyagain is offline
 
Join Date: Sep 2009
Location: Tower Hill
Posts: 178
Not sure what you are using to drive your stepper motor but have you seen these? http://www.oceancontrols.com.au/SMC-020.html

Basically needs an input for direction and another (pulse) to step the motor. Accommodates various stepper motors and you can also change the micro steps, sleep etc. I have an older one with less versatility but I haven't used it as I can't program. Always thought that it would be easy for someone in the know as you really only need 2 inputs. Cheap too but I notice they are currently out of stock.

Neale.
Reply With Quote
  #5  
Old 22-10-2010, 07:26 PM
bojan's Avatar
bojan
amateur

bojan is offline
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 6,943
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, 28 views)

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

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +10. The time is now 03:34 AM.

Powered by vBulletin Version 3.8.7 | Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Advertisement
Bintel
Advertisement
Testar
Advertisement