Page 1 of 2 12 LastLast
Results 1 to 12 of 21

Thread: Simple unipolar driver with current limiter

  1. #1
    Registered DaRy's Avatar
    Join Date
    Nov 2006
    Location
    Sweden
    Posts
    14
    Downloads
    0
    Uploads
    0

    Simple unipolar driver with current limiter

    Hi there!

    I have made a simple unipolar driver for small steppers. I use this to drive steppers recoverd from discarded 5.25" diskette drives. It is based on a voltage regulator LM317, used "backwards" as a current limiter. The current is limited by the shunt resistor (10 ohm here) and the internal referens voltage of the regulator (1.3 volt), this gives a current of 0.13 A. This can be changed by replacing the resistor. A resistor of 1 ohm would give 1.3 A insted. With a little change and some more components it can be made adjustable. But I wanted to keep it simple instead. The LM317 can handle current up to 1.5 A, and a heat dissipation of 20W each. Heatsink is needed!

    The TTL inputs is driven directly from a parallel port, data pin 2 and 3. And I've made a small c program (linux) to test the driver.

    Comments... suggestions...


    Have a good day!
    Attached Images Attached Images
    Attached Files Attached Files


  2. #2
    Registered
    Join Date
    Aug 2006
    Location
    USA
    Posts
    40
    Downloads
    0
    Uploads
    0
    Woah.. very nice! You know of anything like LM317 that can handle more Amps? I am also attempting to design a simple unipolar driver, but what you have looks as simple as you can get!

    Help Request: Simple Stepper Hardware with EMC's HAL


  3. #3
    Registered DaRy's Avatar
    Join Date
    Nov 2006
    Location
    Sweden
    Posts
    14
    Downloads
    0
    Uploads
    0
    To get more amperage change the voltage ragulator. Here are some other types that might work (I have not tested... so... YAOYO):

    LM317T: 2.2A, 40V (in the earlier post I was referring to the min 1.5A, not typical)
    LM317HVT: 2.2A, 60V
    LM338K: 5A, 35V
    LM350T: 3A, 36V
    LT1083CP: 7.5A, 31V
    LM1084IT-ADJ: 5A, 31V

    The higher current versions seems rather pricey except LM1084...
    There is one more option and that is to use a powertransistor in conjunction with the regulator, but this ofcource adds to the complexity. Note that for some reason using this bridge the coils release voltage spike goes away. I'm not sure why, but I'm unable to messure any spikes at all (therefore I've removed these protective diodes, to add to the simplicity)

    I forgot to mention that the driver is a fullstep 2fase driver that and it needs a qudra...um... something input sequence, but only using two signals instead of four.

    Happy testing!
    Last edited by DaRy; 01-30-2007 at 09:37 AM. Reason: Wrong with diodes i series.


  4. #4
    Registered
    Join Date
    Sep 2005
    Location
    Italy
    Posts
    7
    Downloads
    0
    Uploads
    0
    Can this design be adapted to drive each coil in turn? I don't have much experience with electronics, electronics based on discrete components is black magic to me. How is the "matching pair" lm317 triggered?


  • #5
    Registered DaRy's Avatar
    Join Date
    Nov 2006
    Location
    Sweden
    Posts
    14
    Downloads
    0
    Uploads
    0
    Yes you can drive each coil individually (you need halfstep I guess), but this requires a negative voltage... See the last attachment below. Beware, this circuit is untested and may not work, and burn... You have been warned!

    I will try to explain the "matching pair" circuit.
    See attachment 1. The LM317 acts as a voltage follower. The OUT is 1.2V higher than the ADJ and if you raise the ADJ then OUT will follow. If ADJ is grounded OUT will be 1.2V. The resistor will have 1.2V over its terminals and this will generate a constant current of 0.12A independent of the input voltage to the regulator. It is this current that then drives the stepper coil (not shown).

    See attachment 2. Now we have two opposing regulators. Regulator B Has ADJ to ground, and so its OUT pin will set to 1.2V. Assume the current flows through B, and this drive one coil (not shown). Now if we raise the ADJ voltage on A just a tiny bit so its OUT voltage goes to 1.25V. B senses this tiny raise and lower its current to compensate so much that it is completely turned off. And now the current flows through A instead.

    Does this explain it?
    Attached Images Attached Images


  • #6
    Registered pminmo's Avatar
    Join Date
    Jun 2003
    Location
    St. Peters, Mo USA
    Posts
    3,325
    Downloads
    0
    Uploads
    0
    You really only need two LM317...LM350. One for each phase in the centertap. Now where in a simple full step of simple half step sequence do you ever have both more than one/half phase energized at the same time. if you want to control the seq via a parallel port then put a simple mosfet switch on each of the 4 coil legs.
    Attached Images Attached Images
    Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
    Vist my websites - http://pminmo.com & http://millpcbs.com


  • #7
    Registered DaRy's Avatar
    Join Date
    Nov 2006
    Location
    Sweden
    Posts
    14
    Downloads
    0
    Uploads
    0
    Yes, you can do it with only two regulators... But atleast here in sweden one IRL640 will cost more then twice as much as one LM317 (and the complexity: six power componenets instead of four per motor)...


  • #8
    Registered pminmo's Avatar
    Join Date
    Jun 2003
    Location
    St. Peters, Mo USA
    Posts
    3,325
    Downloads
    0
    Uploads
    0
    Have you tried the circuit? If the coils were purely resistive I would see no reason your circuit wouldn't work, but they are not purely resistive. I would be concerned that when changing states, the field collapse would cause a start of a potentially unstable circuit that could result in a nice oscillator?
    Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
    Vist my websites - http://pminmo.com & http://millpcbs.com


  • #9
    Registered DaRy's Avatar
    Join Date
    Nov 2006
    Location
    Sweden
    Posts
    14
    Downloads
    0
    Uploads
    0
    Yes, it works beautifully now here on my desk... tested on a experiment board (see http://www.cnczone.com/forums/attach...4&d=1170699140). I guess it is the regulators job to do just that, supress noise and stabilize.

    I was concerned with the coils release spikes, but for no apparant reason there was no spikes. Not a single volt. Can't really grasp why but, well, I wont complain or so. There is however normal back-EMF when the motors run at high speed. So there has to be some voltage space between LM317 max and supplied voltage.
    Last edited by DaRy; 02-06-2007 at 03:12 PM. Reason: broken link


  • #10
    Registered
    Join Date
    Sep 2005
    Location
    Italy
    Posts
    7
    Downloads
    0
    Uploads
    0
    DaRy, thanks for th explanation, I doubt I'll ever be able to think in anything other than a "digital" mindset, but you made it simple to understand.


  • #11
    666
    666 is offline
    Registered
    Join Date
    Aug 2004
    Location
    Denmark
    Posts
    34
    Downloads
    0
    Uploads
    0

    Thumbs up

    Excellent idea with the 317´s...

    If any switching noise is present you couls add 2 100nF caps from Vin to GND and From Vout to GND.

    It should kill spikes and noise generated if any present...

    Regards from Denmark...

    666


  • #12
    666
    666 is offline
    Registered
    Join Date
    Aug 2004
    Location
    Denmark
    Posts
    34
    Downloads
    0
    Uploads
    0
    And the caps should also prevent the device from oscillating...


  • Page 1 of 2 12 LastLast

    Similar Threads

    1. Unipolar Stepper run with Bipolar Driver
      By bcromwell in forum General Electronics Discussion
      Replies: 38
      Last Post: 11-26-2009, 05:10 AM
    2. HobbyCNC Unipolar Chopper Driver Kit!
      By HobbyCNC in forum Product and Manufacturer Announcements
      Replies: 1
      Last Post: 11-09-2009, 09:40 PM
    3. Simple Current Limiting Chopper Circuit???
      By fairorgan in forum Stepper Motors and Drives
      Replies: 1
      Last Post: 01-20-2007, 12:06 PM
    4. current per phase, unipolar bipolar
      By Ragnarok in forum Stepper Motors and Drives
      Replies: 8
      Last Post: 02-22-2006, 10:57 PM
    5. Simple unipolar schematic, opto isolated
      By Konstantin in forum General Electronics Discussion
      Replies: 1
      Last Post: 03-31-2004, 06:02 AM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.