Shop OBEX P1 Docs P2 Docs Learn Events
Basic Program for Stepper Motors - Page 2 — Parallax Forums

Basic Program for Stepper Motors

2»

Comments

  • LarryLarry Posts: 212
    edited 2005-07-02 22:48
    The L298N chip is pin compatible with the L293N and will handle up to·4 amps with proper heat sinking.
    The N version of this chip requires external doides.

    you can also reduce the power consumption (and power of the motor) by adding small resistors in line with the coils. it is a good choice if you don't need all the power of the motor.


    A fancier driver·couples ·the 297 controller chip· with the L298N and features a chopper drive-- but you said "nothing fancy"

    Larry

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    Post Edited (Larry) : 7/2/2005 10:54:07 PM GMT
  • NewzedNewzed Posts: 2,503
    edited 2005-07-02 23:21
    Thanks for the suggestion, Larry.· If I add the 8 external diodes, do I wire this up·just like my L293?· Can I use the same program to drive the L298?

    With the staggered pins this chip won't plug into a breadboard - probably have to have a PC board made.· Guess it would be simpler if I could find a used controller somewhere.· Anyway, thanks - this is the only possibility I have right now.

    Sid
  • LarryLarry Posts: 212
    edited 2005-07-03 00:33
    Here are the pinouts and datasheet that will show the diode ladder arrangement. Schematically, it's the same as the 293. the same program would work, too.

    http://www.hvwtech.com/pages/products_view.asp?ProductID=198

    I've done a "dead Bug" quicky implimentation that worked well enough that it is still in a robot. I soldered the pins directly to Radio shack terminal connectors and the other bits.

    As I recall, the pins will fit into a proto board on the diagonal with a bit of tweaking if you want something more substantial. then use wire wrap wire to connect everything.


    Larry

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
  • NewzedNewzed Posts: 2,503
    edited 2005-07-03 18:49
    Larry, the Super Carrier Board has a row of staggered pads on the right edge - the L298 should drop right in.· I'll order one and make that board my dedicated bipolar driver.· Not bad for $20.00yeah.gif

    Thanks again for the suggestion.

    Sid
  • NewzedNewzed Posts: 2,503
    edited 2005-07-03 22:11
    Larry, go to this site:

    http://www.solarbotics.com/

    Click on Kits and scroll down to Kit #13 - The L298 Motor Driver.· This looks like the answer and only $17.95!

    Sid
  • Mike CookMike Cook Posts: 829
    edited 2005-07-04 14:06
    Sid,

    If you want to use your TIP120 transistors to drive your stepper motors you can try this. I have built a driver circuit to test my 100 oz steppers for my wood CNC router. Used the diagram found here:

    http://eio.com/jasstep.htm#intro (Figure 2.1)

    The circuit uses TIP110 which I replaced with TIP120. I also replaced the 7406 with four 2N3906 transistors. You'll need to use a resistor on the 2N3906 when connecting to the stamp. Using one of Jon's stepper motor programs to drive the stepper motor using a BS2 (P4, P5, P6, P7). Works pretty well for testing the motors, but will probably end up using www.hobbycnc.com 4AUPC boards to eventually control the router using TurboCNC for the G-Code.

    Attached is the code that I'm using to drive the motor.

    Mike





    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "OEM NMEA GPS Module" Now available on ebay for only $19.99

    Product web site: http://www.allsurplus.net/Axiom/

  • NewzedNewzed Posts: 2,503
    edited 2005-07-04 16:17
    Mike, why did you add the four external diodes.· The TIP is a Darlington and already has clamp diodes.

    Sid
  • Mike CookMike Cook Posts: 829
    edited 2005-07-04 17:28
    Sid,

    Was not sure if I needed them or not, so put them in anyway. Seems to function ok. Like I said this is just to test the motors. Since I will be using TurboCNC to drive the completed machine, I will be using the 4AUPC to drive these motors @ 28 VDC.

    Mike

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "OEM NMEA GPS Module" Now available on ebay for only $19.99

    Product web site: http://www.allsurplus.net/Axiom/

Sign In or Register to comment.