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   Ban this user!
Old 04-27-2010, 07:05 AM
 
Join Date: Apr 2010
Location: Australia
Posts: 3
Mervyn Mitchell is on a distinguished road
Wink Control camera movement with stepper motors

Is there anyone out there who can offer some help to a total beginner in this field?

I have built an apparatus to move a digital camera to any position on a 1.5m x 1.0 m plane. The mechanics work beautifully. I am using an old laptop (Windows 98, which has DOS QBASIC built in) to control two stepper motors to provide x and y movement via the parallel port. A relatively simple BASIC program can calculate the various x and y coordinates from the optical parameters ( I understand optics better than cybernetics!) and send out the appropriate pulses. I have built a simple 3 channel CNC driver from a kit but this leads to frequent missed steps, even at slow pulse rates and under zero load, whether single or half stepping, and anything faster than about 20 pulses per second increases the frequency of missed steps or just causes the motors to chatter.

I guess I have two questions:

Can anyone recommend a simple 3 channel driver (ready assembled or in kit form) that I can use for this application?

Am I being unduly simplitic or is it ok to control motors from appropriate bit sequences generated from a BASIC program and sent via the parrallel port? Is there some essential fact I'm missing?

Many thanks to any kind soul who can advise.

Merv M
Tasmania, Australia
Reply With Quote

  #2   Ban this user!
Old 04-27-2010, 07:45 AM
 
Join Date: Mar 2008
Location: uk
Posts: 18
Alexthehun is on a distinguished road

Hi Mervin
Control via the parrallel port is perfectly possible, thousands of people are doing just that on this forum either via dos/windows or via linux.
For instance I run a machine using drivers made from the L297/L298 combination (stacks of info on google for these).
You may have to supply some more details of what exactly you are trying to do for people to comment on. Like what motors do you have, what is the driver you build based on, how does your software control this etc...
Writing your own software could be part of the problem. If your driver is controller in the standard step and direction way it may be possible to use an existing software package. (EMC2 for instance, for linux, is completely free if you want something to try)
Reply With Quote

  #3   Ban this user!
Old 04-27-2010, 07:45 PM
 
Join Date: Apr 2010
Location: Australia
Posts: 3
Mervyn Mitchell is on a distinguished road
Further Info on my CNC Woes .......

Thanks, Alex, for your reply. I am using a HobbyCNC 3-Axis Pro stepper motor driver kit, intending to drive two stepper motors (to control x and y camera movement) and a solenoid (to take the photos).

The motors are KH42 series 900 two phase unipolar, rated 3.72 V, 1.2 A/phase, 3.1 ohms/phase and 3.1 mH/phase. I have been powering these at 12V which appears to be rather low - could this explain my missed steps? The controller can accept 42 VDC, so I'm upgrading the power supply. I live in a remote part of the world so things take time.

The motors are controlled by sequences of OUT commands from programs in QBASIC. Typically, I reset with OUT 880, 0, then OUT the appropriate byte to indicate direction and axis step, then have a FOR-NEXT delay loop, and repeat the sequence to move the camera to the required position.

The gantry carrying the camera moves very smoothly and weighs about 2 lb fully loaded. Motor speeds of greater than 100 rpm are not desirable. A complete single revolution moves the gantry about 1 inch, so the gearing is quite low.

The problems I am having are as follows:

1. Missed steps, even when in single stepping mode. This appears to worsen after the driver and motor are warmed up.

2. The motor simply chatters (vibrates) in 1/4 step or lower modes.

3. The motors seem incapable of accepting pulse rates greater than about 20 pps, whether single or half stepping.

4. In single or half stepping modes the motion is very jerky, even when not mis-stepping. I had hoped that fractional stepping would reduce this.

It has been suggested that a higher voltage will reduce these problems. Is this reasonable? Do you have any other suggestions?

Mechanically the apparatus works beautifully and the motors appear (when functionning) more than adequate to drive the components. Incidentally, power is transmitted via timing belts to the gantry ends and the camera trolley, which run on V-grooved wheels.
Reply With Quote

  #4   Ban this user!
Old 04-27-2010, 09:39 PM
 
Join Date: Nov 2009
Location: USA
Posts: 1,515
Fastest1 is on a distinguished road

I run the Hobby cnc pro 4 axis with no problems on a variety of steppers from 270 oz to 425 oz. I do run the board with a 24 volt power supply. I run Mach 3 and have no idea of the ability to manipulate the stepper besides on my mill or lathe. But it does seem very possible.
Reply With Quote

  #5   Ban this user!
Old 04-29-2010, 10:50 AM
 
Join Date: Mar 2008
Location: uk
Posts: 18
Alexthehun is on a distinguished road

Hi Mervin

Looks like your driver board is more than capable of doing what you want. A bit more drive voltage will help as it will allow higher speeds.
Apart from the obvious concerns about all your connections being solid and no grounding problems, there is a potential pitfall with your home brewed software: most drivers have some limitations on the timing of step and dir pulses. It is not immediately obvious on the supplier website what they are for your board but the documentation should help. What you are looking for is things like:
-what is the mimimum step pulse time needed for your driver
-how long does the dir change have to be applied for before you can make the next step pulse

From your brief description of your qbasic program I was left with the impression you are changing dir and applying a step at the same time. Most drivers are not too happy about that!
They usually want the direction pin to be set and kept there for a minimum period after every change before you can then start pulsing the step pin.

Hope this helps.

Regards

Alex
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 05-06-2010, 10:53 AM
 
Join Date: Jan 2006
Location: USA
Posts: 1,764
keebler303 is on a distinguished road

You would probably have better luck with a higher quality driver (a Gecko G540 for example) but I think the biggest problem is your software. Its really important to have an acceleration and deceleration ramp on your step pulse frequency. The motor cannot instantaneously go from zero to 100 rpm. Similar to revving your engine up to the redline and then dumping the clutch, you don't instantly go to 100mph. So I think you need to revisit your software to provide for some acceleration and deceleration.

Matt
Reply With Quote

  #7   Ban this user!
Old 05-06-2010, 01:23 PM
Kipper's Avatar  
Join Date: Jul 2006
Location: England
Age: 47
Posts: 1,059
Kipper is on a distinguished road

Have a look at Electrozoneuk.com for a programmable stepper driver....I found a damper necessary to smooth the steps...I'm waiting for the more powerful driver to arrive for another project.
__________________
Keith
Reply With Quote

  #8   Ban this user!
Old 05-06-2010, 10:16 PM
 
Join Date: Apr 2010
Location: USA
Age: 68
Posts: 451
TarHeelTom is on a distinguished road

Mervyn,

Remember that at this point you're doing research and development. For R&D purposes, you don't need a finished, permanent power supply. You can very easily put a 6 volt or 12 volt battery in series with your existing power supply to explore different voltages. You might look at a car battery(s) or lantern batteries, depending on what you happen to have available.

Don't think you're going to be able to get a reliable, stable, well timed pulse train from BASIC. The US Government spent millions over several years getting EMC and EMC2 to work. Then it took some volunteer labor to make it work well.

Give EMC2 a try.


Tom
Reply With Quote

  #9   Ban this user!
Old 05-12-2010, 10:57 PM
 
Join Date: May 2010
Location: USA
Posts: 16
victorprmt is on a distinguished road
Thumbs up

Hi
Send a picture of your panorama head maybe I can help
Victor
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
Designing Motion Control Camera Rig Madjak Mechanical Calculations/Engineering Design 11 06-08-2009 01:02 AM
Audio amp & sig gen to control stepper motors? HuntMike79 Stepper Motors and Drives 6 03-31-2009 08:54 AM
Newbie- STEPPER MOTORS AND CONTROL WWWOODMAN CNC Wood Router Project Log 12 02-23-2009 08:07 AM
Control four stepper motors in unison? Wes LeMarr Stepper Motors and Drives 1 02-28-2006 09:11 PM
Basic Stamp to control stepper motors? phantomcow2 Stepper Motors and Drives 3 12-04-2005 03:11 PM




All times are GMT -5. The time now is 06:41 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