16F870A, ULN2803, Stepper motor = very low torque, any problems with code?


Closed Thread
Results 1 to 10 of 10
  1. #1
    Join Date
    Feb 2013
    Posts
    1,078

    Default 16F870A, ULN2803, Stepper motor = very low torque, any problems with code?

    Hello.

    I'm using this schematic for connection:



    And code from here:

    http://cornerstonerobotics.org/code/..._hi_torque.pbp

    It works, by reversing the code direction, I can reverse motor rotation, but, the torque is very weak, even if I adjust the DELAY variable, it can be easily stopped with one finger, much more weaker than standard servos for example. The motor is NEMA17 stepper, which should not be so weak. Power voltage is as required. So I guess there are some problems with code?

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,521


    Did you find this post helpful? Yes | No

    Default Re: 16F870A, ULN2803, Stepper motor = very low torque, any problems with code?

    Hi,
    A unipolar step motor with a 12V winding running on a 12V supply won't give you much torque.
    Usually, with steppers, you want to use a voltage much much higher than the windings rated voltage and then actively limit the current to the windings rated current. Decades ago when unipolar motors was "common" it was usually done by inserting BIG power resistors in series with the winding. Today it's done by sensing and regulating - much more effective.

    I think you'll see that the torque is much higher when the motor is stationary compared to when it's turning. A motor with a high inductance winding may have an impressive holding torque for a given current but the running torque falls off much more rapidly compared to motor with a lower inductance/higher current winding. The cure for it is more voltage, much more voltage,

    Do you have any data on the motor?

    /Henrik.
    Last edited by HenrikOlsson; - 18th June 2015 at 18:17.

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,597


    Did you find this post helpful? Yes | No

    Default Re: 16F870A, ULN2803, Stepper motor = very low torque, any problems with code?

    This was my GoTo reference for steppers:

    https://groups.yahoo.com/neo/groups/DIY-CNC/info

    Robert

  4. #4
    Join Date
    Feb 2013
    Posts
    1,078


    Did you find this post helpful? Yes | No

    Default Re: 16F870A, ULN2803, Stepper motor = very low torque, any problems with code?

    Yes, motor is rated 12VDC, 0.17A each coil current.

    I also tried 28BYJ-48, cheaper and weaker 5VDC stepper from ebay. Surprisingly, they perform equally bad!
    I've double checked circuit - everything is ok. Any more ideas?

  5. #5
    Join Date
    Feb 2013
    Posts
    1,078


    Did you find this post helpful? Yes | No

    Default Re: 16F870A, ULN2803, Stepper motor = very low torque, any problems with code?

    Forgot to mention, even at rated voltage, motor gets noticeably warm, even when rotating without load.

  6. #6
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,521


    Did you find this post helpful? Yes | No

    Default Re: 16F870A, ULN2803, Stepper motor = very low torque, any problems with code?

    Again, a motor driven with such a rudimentary drive method will have terrible performance!

    As a test, take your 5V motor, use it with the ULN28xx system but use 24V as the supply voltage. I Googled the model number and found a figure of 60ohm phase resistance which would equal a current of 83mA. With a 24V supply you need to insert a 200ohm >2W resistor in each of the four wires going to the ULN chip.

    If you don't have any power resistors at hand just take a bunch of ordinary 1/4W and parallel (or series) them up. 10 2k 1/4W resistors in parallell will be 200ohm 2.5W for example.

    For reference, my bipolar NEMA34 motors are rated at something like 2.7V, 4.5A. I'm running those with bipolar drives from a 65V supply. Had I used a 2.7V supply their torque would fall off so fast they'd be unusable.

    The motor will get warm, with or without a load - that's just how they work. A DC motor for example, running unloaded, will only PULL as much current as is needed to overcome the friction losses of the bearings and brushes etc. With a step motor you are PUSHING the motors rated current into the winding(s) (or at least you're trying to) no matter what the actual load on the motor is.

    Look at Roberts link or Google Jones on stepping motor (or something like that).

    /Henrik.

  7. #7
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,806


    Did you find this post helpful? Yes | No

    Default Re: 16F870A, ULN2803, Stepper motor = very low torque, any problems with code?

    Although the idea of current limiting with a chopper is more appropriate in a bipolar motor, the PIC16HV616 has a comparator that can be used to measure the current of the coils through a small value resistor.

    Also chips like L297/298 are designed to do just that.

    Ioannis

  8. #8
    Join Date
    Feb 2013
    Posts
    1,078


    Did you find this post helpful? Yes | No

    Default Re: 16F870A, ULN2803, Stepper motor = very low torque, any problems with code?

    Applied 24V

    It get a bit powerful, but still something is not OK. Motor is said to have 200 steps per rotation, but I can see with naked eye how it moves with larger steps.

    I have L298 too, is this schematic correct?

    http://forums.parallax.com/attachmen...4&d=1405729108

    I mean, will it work with above code?

  9. #9
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,806


    Did you find this post helpful? Yes | No

    Default Re: 16F870A, ULN2803, Stepper motor = very low torque, any problems with code?

    No it won't. That is for two simple motors.

    Search for the L297/L298 pair and see how it is done.

    https://www.google.co.uk/search?q=l2...R2Pir3Oo2DU%3D

    Ioannis

  10. #10
    Join Date
    Apr 2013
    Posts
    32


    Did you find this post helpful? Yes | No

    Default Re: 16F870A, ULN2803, Stepper motor = very low torque, any problems with code?

    You won't need L297 since you already controlling it with PIC. L298 is enough. Check this link: http://www.hoelscher-hi.de/hendrik/l...pper/bistp.gif
    But remember , control commands probably will change from your first one. Recheck it.

Similar Threads

  1. Motor Stepper Example
    By Melanie in forum Code Examples
    Replies: 134
    Last Post: - 3rd January 2015, 17:58
  2. Sample code for driving stepper motor
    By luxornet in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 5th June 2013, 17:20
  3. Stepper Motor Giveaway
    By rmteo in forum Off Topic
    Replies: 29
    Last Post: - 3rd June 2011, 22:43
  4. Replies: 11
    Last Post: - 6th November 2008, 10:27
  5. Stepper Motor troubles
    By Fryin in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 21st March 2007, 01:56

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

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