584,817 active members*
4,991 visitors online*
Register for free
Login
IndustryArena Forum > CNC Electronics > Stepper Motors / Drives > help with stepper motor tuning
Page 1 of 2 12
Results 1 to 20 of 29
  1. #1
    Join Date
    Nov 2009
    Posts
    68

    help with stepper motor tuning

    Hi

    I need help tuning my motors, I am running a dell p4 2.8ghz. Installing mach
    went very well on a fresh install of win xp. The driver test had very small
    spikes. my set up is running routout 10amp driver cards microstepping 3200
    steps / rev. these are running 12nm (1700oz/in) motors. I am using a C11 BB
    from cnc4pc. I've set mach to run at 45000khz and with a lead screw pitch of
    5mm max speed is 4218 mm/m it runs nice at 4000 mm/m (157 in/m ) no problems
    but sound rough at 400 rpm and 1400 mm/m which sometimes stall the motor's.
    I then moved onto the x axis which has the same setup but has a 16mm lead
    screw which ran happily at 12500 mm/m/m (492 in/m )but again sounded rough
    around 500 (19in/m) and 1500 mm/m (59in/m) and if held at these speeds would
    stall.

    My driver cards needs a min of 1.0us on step
    and the bb needs min of 3.0us

    I altered the timing in incremental steps to 5.0us and 3.0u seems about the
    best but the motors are still rough at the above feedrates.
    The driver card asks to connect step and direction and also a terminal
    return to pin 25 of the pc printer port. I have connected these to the c11
    BB com and move the jumper so these are ground. Is this my problem? I have
    not earthed anything in my control box as I am unsure of what to earth and
    where to. I've uploaded a photo here

    http://farm3.static.flickr.com/2798/...f94a8505_o.jpg

    I am very weak when it comes to electronics. I have one side of the BB
    powered from the pc usb cable and the outputs side from a switched power
    wall plug @5v 2amp. I tried switching this with a regulated wall plug but
    made no difference. I did remove the terminal returns and this had a big difference, motors would only just move in one direction. I am using shielded
    cable on all motors.

    Also tried reducing driver amps from 6 down to 4 but this did not make any difference.

    Any help or wisdom you can shed on this matter would be gratefully received.

    Kind regards

    Dale

  2. #2
    Join Date
    Mar 2003
    Posts
    35538
    If it's rough at specific rpm's, it's a very good chance that it's resonance. An easy way to get rid of it is with dampers. See this thread.
    http://www.cnczone.com/forums/showth...639#post256639
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  3. #3
    Join Date
    Nov 2009
    Posts
    68
    Thanks for the reply, I've checked out the thread and I am currently making a rattler for trials. I'll post results.

    Regards

    Dale

  4. #4
    Join Date
    Nov 2009
    Posts
    68
    Just an update,I finished making the rattler / balancer and these things do work, I couldn't get my motor to stall, but from a range of 350mm/m (70rpm) to 550mm/m(110rpm) it did sound noisy and with the rattler on it sound like someone was digging up the road outside with a jack hammer.

    I noticed something strange once I had the rattler on I moved the motor by hand and with no power connect to the drive. I could feel it was very lumpy and had to spin past at around the above rpm range. It's fine if I turn it slowly and if I can get past the lumpy speed it's OK. Does this look like I have a broken motor ? I have checked the other three motor by hand and they are smooth.

    Any help or wisdom on this matter would be gratefully received

    Alan

  5. #5
    Join Date
    May 2007
    Posts
    767
    Hi Dale

    There are a number of contributaory causes to stepper resonance some mechanical and other electrical or electronic.

    Starting with your bread board construction of your controller electronics. I am going to number the points to help:-

    1. Use a common earth point and ground every thing to it by short thick wires. Include the frame work of your machine and the safety earth from the public mains supply. Think of this as a star point to which all earth wired are connected.

    2. Connect the computer case to the star in 1. above with a thick wire. The LPT 25 way cable has a screen that will probably be connected to the chassis of the computer and hence to the zero volts of the mother board.

    3. Use shielded cable for the limit switches and earth the cable screen to the breakout board zero volts which in turn has been grounded to the star earth point. Don't earth at the machine end and use twin core cable so that the switch contacts are brought back as fully screened to the breakout board. This will avoid most of the problems with induced voltage from the high motor currents.

    4. Place capacitors accross the amplifier feeds as close as possible to each amplifier. The leads you have from the rectifier / capacitor are too long and need decoupling local to each amp. Suggest 100mfd electrolytic a 0.01 polyester and a 1000pf ceramic between the positive and negative power supply wires as close as practical to each amplifier. The voltage of the capacitors should be rated for more than the power supply voltage.

    5. Try and use half step or micro step as this will improve the resonance stability.

    6. The motors need to be attached to the mill mechanics for all testing after the initial do the motors spin.

    7. It is stating the obvious but attaching an unbalanced load to the motor will put the bearings under stress and the rattler action can be very vicious as the weights move hence the noise. The rattler technology is that used to smooth out crank torsion in internal combustion engines and I would suggest that other than for the final tweak rattlers only be used after all the other sources of resonance have been addressed. For example are the gibs adequately tight - consider adding drag dampers if using low friction trolley type axis carts. Are the screws mounted correctly at the drive end? Are the screws coupled to the motors with a ridgid coupling - a coupling with some elasticity can help? Is the motor coupling concentric with the screw shaft being driven? Can the motor mount resonate with respect to the screw? You get the drift you need to look at each part of the drive chain to see that it is not acting as a contributer to resonance at any speed.

    8. Stepper motors have a coging feel when rotated by hand in the power off condition. Test for play in the bearings to see if they are shot as a result of the rattler. Stepper motors can exhibit alsorts of resonances if spun under powere with no load. Beaware that it is not a good idea to open stepper motors unless you know how to prevent the loss of magnetism in the type you are dealing with. Some are ok others need special magnetic shunts.

    Hope this helps.

    Pat

  6. #6
    Join Date
    Nov 2009
    Posts
    68

    Unhappy

    Hi, pat

    Thanks for your insight, on the mechanical side I've got linear rails and zero backlash ballscrews connected to one fixed bearing and one floating end. The motors are connected via a flexible connector. I took all the motors off there mounting just to check if the resonance was still there it was. so I think I can rule out mechanical.

    Next I'll add the earth's as you have mentioned. Do I add an earth to the negative side of my drivers power supply? I have shielded cable on all stepper motors, but have just twisted pairs cable for limit switches, I have routed these on the opposite side on my machine from my motor cables.

    I am very weak with electronic knowledge and am struggling with understanding fully point 4

    4. Place capacitors across the amplifier feeds as close as possible to each amplifier. The leads you have from the rectifier / capacitor are too long and need decoupling local to each amp. Suggest 100mfd electrolytic a 0.01 polyester and a 1000pf ceramic between the positive and negative power supply wires as close as practical to each amplifier. The voltage of the capacitors should be rated for more than the power supply voltage.

    Do you mean bridge the negative and positive with a capacitor close to the driver power input? Also I am unsure on what decoupling each amp means.

    They say a picture paints a thousand words, would it be possible to do a diagram for point 4 above.

    Gratefully

    Dale

    P.S. I think your right with regards to the rattler I think all that energy has damaged the bearing on my z axis.

  7. #7
    Join Date
    Nov 2009
    Posts
    68
    Hi,

    I've read up a bit more on wiki, on decoupling and understand it a bit more.

    http://en.wikipedia.org/wiki/Decoupling_capacitor

    Are these capacitor the right ones?

    http://www.maplin.co.uk/module.aspx?moduleno=318

    Kind regards

    Dale

  8. #8
    Join Date
    May 2007
    Posts
    767
    Hi Dale

    To give you my answers to your questions and add some observations:-



    Thanks for your insight, on the mechanical side I've got linear rails and zero backlash ballscrews connected to one fixed bearing and one floating end.

    This is one of the occasions when some friction helps as it helps dissipate oscillatory power that might build up due to resonances being excited.

    The motors are connected via a flexible connector. I took all the motors off there mounting just to check if the resonance was still there it was. so I think I can rule out mechanical.

    The flexible connectors if of the Lovejoy type with an elastic middle element are also going to help kill resonances as power will be lost in the elastic element. The middle element can be changed in these couplings for harder or softer material. Taking all the load off a stepper motor will invite resonances and it is possible to get the acceleration slope so high that the motor will just buzz and not rotate. They need some load to give inertia against which to work. Use a fly wheel.


    Next I'll add the earth's as you have mentioned. Do I add an earth to the negative side of my drivers power supply? I have shielded cable on all stepper motors, but have just twisted pairs cable for limit switches, I have routed these on the opposite side on my machine from my motor cables.

    Yes all earth wires go to that common star point. Good to keep the motor wires separated from the switch wires. However I would recommend using twin screened wire rather than plain twisted pairs. Take the screens to the common earth point. You need to check that the wire you have on the motors is OK for the current. Normally screened multi core cable would not be flexible enough to stand the constant bending need for the axis drives. The braid can fracture and the fractured ends penetrate the cores causing a short circuit. Not good for the drive electronics so I would recommend using flexible four core cable and it is worth spending a bit extra to get the special stuff that is OK with constant bending. It is good that you have fused the drives as this may help protect against accidental short circuits.


    I am very weak with electronic knowledge and am struggling with understanding fully point 4

    OK we all had to start from some where. The capacitor trio is to decouple the length of wire between the big capacitor used in your power supply and the drive electronics. It is possible that the drive electronics have such decoupling built into their PCB. Due to the long length of wire and the high pulse currents used to drive steppers the 9 inches of wire is enough to cause problems. If you look at a commercial packaged driver these are recommended and are regarded as good practice. The aim is to connect the capacitors directly across the power input to the electronics with as short a leads as possible. i.e. don't wire back to the star earth but to the 0 volts of the drive.

    Sorry to have lapsed into electronic jargon. Decoupling just means placing capacitors in this case with as short a leads as practical across the source - in this case the electronics driving the stepper. In more viccious cases an inductor capacitor network might be used but should not be necessary here as we only have relatively low frequencies not radio stuff.

    Hope this helps as I am reluctant to start drawing as the mose is a no no as my RSI is playing up.

    If you need more ask and I will try and help.

    PS on dampers. Placing a finger on the parts is a good thing to do provided it does not get choped off! Pressing on the part can help identify where a bit more friction can help. I use an old doctors stethescope to listen to bearings and slides to see if they are having a jig.

    Regards

    Pat

  9. #9
    Join Date
    Nov 2009
    Posts
    68
    Thanks Pat for explaining it for lay people like myself.

    I'll get the capacitors and screened cable on order and then re-design my control box making the power leads as short as possible. With regard to the screened motor cable, it came off an industrial cnc using servo motors, it wasn't cheap but have seen on forums many people having noise issues.

    Kind regards

    Dale

  10. #10
    Join Date
    Nov 2009
    Posts
    68
    Hi,

    I've had a Brain fart and have designed a flywheel with some balancer action as well, but with no rattle. I doubt I'm the first to think of the design but thought I would upload jpegs for some constructive criticism. basically the body is made from nylon or PTFE and steel weights added to the outside of the body these are glued in eliminating play. The thin 1mm webs allow some movement to dampen resonance.

    Your thoughts on the design are welcome

    Regards

    Dale
    Attached Thumbnails Attached Thumbnails flywheel balancer 2.jpg   Assembly1.jpg  

  11. #11
    Join Date
    May 2007
    Posts
    767
    Hi Dale

    Glad you have sourced that special cable for the motor feeds it can be difficult to get and using one of the multi core screened cable used for general electronics is to be avoided. Yes screening is good as it will help reduce interference levels and might also enable you to listen to the radio whilst making chips. My own choice is to use a cable guide that also acts as an eletrical screen ever since I put a heavy rotary table down with out thinking and cut a cable blowing the driver. An expensive mistake as I did not spot the problem until I had cut too much off the work being done at the time. You might like to ensure your cable runs are to the back of the machine and thus avoid the temptation to rest a heavy item on the same bench as the mill - assuming you are CNCing a bench job.

    Good luck with the mods come back if there are further problems as there is a wealth of expertise on this forum and a lot of willing contributers.

    Regards

    Pat

  12. #12
    Join Date
    May 2007
    Posts
    767
    Hi Dale

    No comment on the flywheel other than it looks sexy. Might be easy to get caught in the fingers but then the stepper should be shielded as they get too hot to touch. In my book it is best to reserve flywheels and their derivatives for the final stage of tune up when hopefully they won't be needed. At least that is my view! Others are ardent disciples of active balance shifters - I guess there is no one size fits all solution.

    Regards

    Pat

    PS There has been a recently active thread on rattlers which you might like to read just incase you need to quell the odd troubling resonance problem.

  13. #13
    Join Date
    Nov 2009
    Posts
    68
    Hi,

    Just an update on my new control box see photo. I have reduced the box down to 12" x 12" x 10" I've added a decoupling cap on driver power, and reduced the power cables down from 20" to 6". I taken the earth from the mains supply ( UK ) and linked this with the motor cable shield, machine frame, DC driver power supply and computer case.

    I ran some new tests but results are much the same as before mid range resonance. I then altered motors to run in series but much the same problem again.

    I've been on Gecko's site ( I'm not running Gecko's but I thinking this might be one solution to my problems) and they recommend a motor inductance rating of max 3 mh, I've checked mine and there 8.68 and 6.5 mh. Is this a contributing factor adding to the resonance problem?

    Any information would be gratefully received

    Regards

    Dale
    Attached Thumbnails Attached Thumbnails cnc control box 003 with text.jpg  

  14. #14
    Join Date
    May 2008
    Posts
    142
    Hi Dale

    Correct me if I'm wrong .. your running 4 driver boards with 1700 ozin motors at 10amps each and a small power supply of 37vac, seems abit week.
    Check your dc output after the bridge rectifier and make shore theres enough amps and Dc volts for each driver. only a guess but everything helps

    Cheers Michael

  15. #15
    Join Date
    Nov 2009
    Posts
    68
    Hi Michael,

    37v dc is the max the driver's will accept. I got the drivers and power supply as a matched pair from the one company.

    Thanks

    Dale

  16. #16
    Join Date
    May 2007
    Posts
    767
    Hi Dale

    Good work in shortening the wiring. Not happy about what looks like a 13 amp mains socket that has got grafted into the side of your box. The insulation resistance of the ply wood is not what is recommended. Suggest you use a metal clad socket outlet and use that instead.

    I don't see the decoupling capacitors which you ordered to go across each of the drive amplifiers as close to the inputs to the pcb of each amplifier card as possible. I hope it is because of the angle at which the photo is taken as these are important.

    Is the resonance still at the 400 - 500 rpm region?
    Is the motor connected to the mechanics - drive screw table etc?
    Are you only driving one axis?

    The inductance of the moter is most likley to cause problems by limiting the highest speed that can be obtained. It might also impact on the chopping speed and possibly limit the amout of microstepping.

    Gecko make a big play about their mid band resonance electronics tricks so I would ignore their information as you don't have their drives.

    If you have a voltmeter do check the voltage across the big capacitor when not driving and axis and then with one then all three. This will confirm if the transformer and rectifier have enough guts.

    Do the drive amplifiers have a set current control and is this correctly set?

    The voltage of the power unit has to be high enough to operate the electronics and the higher it is the faster you can pump the current into the windings which is limited by the inductance of the motor coils. Connecting the coils in series or parallel has two effects. Series connection reduces the current needed, limits the top speed and has a slight increase in bottom end torque. Parallel connection doubles the current and increases the top speed. You chose which.

    Caution disconnect the power every time you connect and disconect the motors or you may kill the electronics and or get a nasty electric shock.

    Hope this helps

    Pat

  17. #17
    Join Date
    May 2007
    Posts
    767
    Hi Dale

    Just had another look at your photo. Where are you getting the 5 volts from for the break out board? The C11 documentation is a bit difficult to understand in that some computers can not supply enough current to drive the C11.

    Also do you have any information on the driver amplifiers that might be of use? I don't doubt you have set them up correctly but there is something not quite right!

    Pat

  18. #18
    Join Date
    Nov 2009
    Posts
    68
    Hi Pat,

    I was just about to place an order for 4 203v geckos before I seen your last post.
    The power inputs for the bb come from the pc usb port and the output side are using that mains plug you don't like which supply 5v @ 2.5 amps.

    Do the drive amplifiers have a set current control and is this correctly set?
    Yes they have a trim pot amps x .176 = vref

    Is the resonance still at the 400 - 500 rpm region?
    Is the motor connected to the mechanics - drive screw table etc?
    Are you only driving one axis?


    Resonance is from 40 to 100 rpm

    Motors are connected to mechanics

    I've only connected my x for testing new control box

    I don't see the decoupling capacitors which you ordered to go across each of the drive amplifiers as close to the inputs to the PCB of each amplifier card as possible. I hope it is because of the angle at which the photo is taken as these are important.

    I've soldered the cap on the end of the lead I've upload new photo's plus driver card and motor data sheets

    Any further help is much appreciated

    Regards

    Dale
    Attached Thumbnails Attached Thumbnails cnc control box 004.jpg  
    Attached Files Attached Files

  19. #19
    Join Date
    Sep 2009
    Posts
    15

    problems automating plasma torch

    I'm running a lightobject controller on a home made table. It works just great when I run a manual torch switch. When I hook the esab cutter remote switch to the relay, it works if the piece has only one or two off//on cycles. But whenever I have a bunch of cuts, usually about the third "on" cycle, the torch makes a short bzaap noise (arc), then the y axis gets stuck going across the table in a negative direction only, and the torch won't fire. If I power off and back on the controller, it works for a few more cycles, then does the same thing. I am thinking it has to do with the relay, or the controller.

  20. #20
    Join Date
    May 2007
    Posts
    767
    Hi Dale

    Ok with the decoupling capacitors on each amplifier input.

    I do not like the daisy chain on the terminal strip that supplies the power to each amplifier. It would be best to wire each back to the big capacitor in the power supply. or use some thick wire to make the daisy chain up. You look to have a nice brass strip / fingers on the other common points on the other terminal strips. These are a good idea.

    However for the minute just concentrate on getting one axis going with no resonances. My picking is to avoid any problems with cross coupling betweent he amplifiers.

    In the revised layout picture I do not see any link from the breakout board to the common of the drive amplifier. This is called return ground on the four way terminal strip on the amplifier card. I see three red wires which I assume are the step enable and direction pins from the breakout board. If you have the details on the brealout board I can tell you which pins but there should be some instructions and a generic earthing plan.

    Hope it is missing earth link that is the root cause of your problems. I suggest you check the wiring using the generic wiring plan. Post the link for the C11 card you are using as there are several types. I can then suggest how the pins relate to your terminal strips in your new box.

    I still question the ability of your PC to support the 5 volt drive for the board.

    Hope this helps

    Regards

    Pat

Page 1 of 2 12

Similar Threads

  1. Mach3 , Config, Motor Tuning problem ( FILM OF MOTOR)
    By MDF_Markazi in forum Mach Software (ArtSoft software)
    Replies: 7
    Last Post: 04-30-2009, 08:15 AM
  2. Motor tuning
    By br1 in forum Mach Mill
    Replies: 1
    Last Post: 03-01-2009, 02:38 AM
  3. motor tuning for probotix stepper
    By Tadas25 in forum Mach Mill
    Replies: 0
    Last Post: 02-10-2009, 10:11 PM
  4. Motor Tuning ???????????
    By Biggermens in forum Mach Software (ArtSoft software)
    Replies: 2
    Last Post: 03-15-2007, 03:52 AM
  5. Motor Tuning
    By cookja01 in forum Machines running Mach Software
    Replies: 1
    Last Post: 03-07-2007, 09:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •