CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Electronics > General Electronics Discussion


General Electronics Discussion Discuss basic electronics, power supplies and anything else electronic related here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-07-2009, 03:04 PM
Gold Member
 
Join Date: Jul 2003
Location: Canada
Posts: 158
Rhodan is on a distinguished road
Oddball stepper question - auto-focuser

While this isn't a CNC question, exactly, it is related.

I am looking at building a PC controlled focuser for a telescope using a small stepper motor and pulleys. What has me scratching my head is how to tell the software where "home" is.

The scope is a Maksutov Cassegrain and its focused by turning a knob which moves the primary mirror. The knob rotates but it does not move in and out. In fact there are no moving parts to which I can attach any kind of switch to detect when the mirror is at the limits of travel.

So I'm trying to figure out how to "home" the focuser so that the software can reliably move to a position to repeat a previously found perfect focus.

The best would be hardware limit switches so the software could find its own travel limits during initial setup and do a "home" at each startup thereafter. However, I can't really think of a method of doing this..

Anyone have any ideas?
Reply With Quote

  #2   Ban this user!
Old 11-07-2009, 04:32 PM
 
Join Date: May 2006
Location: Australia
Age: 40
Posts: 2,205
epineh is on a distinguished road
Buy me a Beer?

I would think using software limits would be the best option unless you want to take the scope apart and stick a limit/homing switch in there somehow.

Can you manually put the mirror in the same position at the start then switch the stepper drive on and tell it that it is homed straight away ? And possibly when you power it down leave it in the homed position so at restart you can do the same thing...

Also what software do you intend to control this with ? I would think if it is simply moving at a constant speed you could just use a 555 timer to generate step pulses to send to the stepper driver, though you would have to include some kind of brain so it knows when to stop. Seems overkill to hook up a PC and monitor to control this...but I guess a second hand PC is practically free these days.

Cheers.

Russell.
Reply With Quote

  #3   Ban this user!
Old 11-07-2009, 10:15 PM
 
Join Date: May 2007
Location: UK
Posts: 701
wildwestpat is on a distinguished road

Hi Rhodan

To focus the scope the priamry to corrector plate reflector distance is being changed. I guess your problem is that the optical system is 'sealed' and this precludes the mounting of mechanical switches to home the separation of the mirrors. What happens when the focus control is turned to the extreems of its travel? Is the focus continuous but changes sign ie.e. is some form of cam operated mechanism? If so then it might be worth investigating using a colimated beam of light bounced off the primary mirror from a slit source mounted on the corrector frame using a photo transitor or diode on the oposite side arranged to be triggered whrn the distance is at its greatest. You will have to look at the geometary involved as it might even be possible to bounce the beam off the corrector plate as well as the extra reflections add to the accuracy.

Hope this gives you some other ideas as the microswitch may not be the most appropriate sensor for homing a folded optical system. Also could you use the diffusion to detect sharpness of a known star using a CCD pinched from a defunct autofocus camera?!!!! Can the change in drive torque (motor current) be used?

Regards

Pat

Last edited by wildwestpat; 11-07-2009 at 10:17 PM. Reason: Added motor current
Reply With Quote

  #4   Ban this user!
Old 11-08-2009, 09:21 AM
 
Join Date: Oct 2008
Location: US
Posts: 115
bharbour is on a distinguished road

Is there a mechanical stop on the focus knob? One technique I have seen done is to issue more step pulses that it would take to move the complete length of travel and call the place where it stopped moving "home". A slightly more elegant approach would be to put an encoder on the step motor and step until you see the mechanical encoder stop moving and consider that position "home".

Both of these approaches require a mechanical stop and one that does not bind up the mechansm to move away from.

If you don't have these two conditions, you might be able to use an inductive proximity switch and sense the mirror position through the wall of the scope body (assuming a fiberglass or other non-conductive body). This might have repeatability problems though.

Good Luck,
Bob
Reply With Quote

  #5   Ban this user!
Old 11-08-2009, 09:42 AM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,563
Geof will become famous soon enough

How many turns of the knob are needed for full travel of the mirror? It must be more than one or you would not have any problem.

Mount a small gear on the knob driving a larger gear so that larger gear rotates less than one revolution during full mirror travel, and have stops on this gear trigger limit switches.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

Sponsored Links
  #6  
Old 11-08-2009, 10:15 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,539
Al_The_Man is on a distinguished road
Buy me a Beer?

You did not mention what kind of software you intend using?
Off the shelf CNC software may not be exactly suitable, If you have used Pic Micro's etc, a small dedicated system could be made up, and if more than one turn was required you could look take a leaf out of the robot method and use an absolute encoder, no need to home either.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #7  
Old 11-10-2009, 08:40 AM
Gold Member
 
Join Date: Jul 2003
Location: Canada
Posts: 158
Rhodan is on a distinguished road

The focuser will be controlled by an Atmel microcontroller so software isn't an issue. On the PC the software that controls the focuser will be sending ASCOM focuser commands (generic positioning commands sort of like Gcode).

Absolute encoders? I'm not familiar with those. I've only used steppers in an open loop setup. Do you know where I can find such beasties? This motor will be small as the knob takes very little effort to turn.
Reply With Quote

  #8  
Old 11-11-2009, 02:07 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,539
Al_The_Man is on a distinguished road
Buy me a Beer?

I am not sure if this will be accurate enough for you, but if a precision multi-turn (x10/x20) potentiometer were used as a feed back device, and then analogue to digital conversion, a absolute position reading should be possible, I have not used the Atmel, only PicMicro, but I am sure they have the same capability.
Something to look into?
Steppers without gearing are fairly coarse positioning devices.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Lube Setup Question Chris64 General Metal Working Machines 0 01-17-2009 09:27 PM
CNC or auto Surface grinding question BNR_RANDY General Metal Working Machines 1 10-27-2008 09:44 PM
Stepper Question drafting101 Stepper Motors and Drives 6 05-31-2007 08:43 PM
Question about TTS and auto-toolchangers. digits Tormach PCNC 7 02-01-2007 06:13 AM




All times are GMT -5. The time now is 04:56 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361