1. #1
    Wishing to experiment a little with some surplus unmarked stepper motors I've recently obtained an L298 Arduino module similar to http://www.ebay.co.uk/itm/L298N-Dual...item2a124b6f46 and http://www.ebay.co.uk/itm/3209276783...84.m1497.l2649
    The plan is to use this driven by its usual partner, an L297.
    Inspecting the variant of the PCB I have I'm a little surprised to find pins 1 and 15 taken straight to ground thus leaving no ability to provide a "Sense" drive to the L297 and thus, presumably, completely loosing the ability to control the chopper circuit via the Enable pins.
    Other than the obvious of changing the module or snipping and lifting of pins 1 and 15 from ground (which, fortunately. is just possible) and installing a pair of "Sense" resistors, has anyone got another suggestion for controlling the current in low ohm stepper motor windings.

  2. at a fiver thats nearly cheaper than buying the chip on its own. I guess these are intended for PWM DC motor rather than stepper drives where there is a higher winding resistance and the current regulation isnt needed. You only need sense when the driving voltage is far higher than the motor is rated for... Also, i'd not rely on that heatsink...much too small for anything sensible...

  3. #3
    That's rather surprising about both pins 15 and 1 going to ground. You need to regulate the current in each winding independently, so if these pins are both connected to ground this means they are connected together which in turn means you can't obtain separate readings for their current's. Putting resistors from pin 1 and 15 to ground is basically the only way to do it as that's the only 'available' point in the circuit. The voltage across these resistors is then amplified within the L297 and most likely using a comparator with voltage reference is used to chop the current. This is the method I have used, except with a PIC and substituting the fixed voltage reference for a DAC to enable microstepping.
    Old router build log here. New router build log here. Lathe build log here.
    Electric motorbike project here.

  4. #4
    I think irving2008 has hit the nail on the head. My guess is some sellers are not differentiating betwixt modules for PWM of DC motors and what is required for steppers. Bang goes any warranty, I guess I'll be snipping pins 1 & 15. Close inspection shows some modules of this type have the pins 1 & 15 brought out to Berg links. If anyone else buys one of these I'd advise them to check that little bit more carefully than I did.

    Ho hum!

    I like Jonathon's DAC idea.

  5. #5
    Quote Originally Posted by boldford View Post
    I like Jonathan's DAC idea.
    Depending on the required micro-stepping resolution and step frequency you may be able to use the microcontroller's own analogue outputs. Alternatively something like TLC7528CN is fine. I used an 8-bit one connected to a port since that gives enough resolution for microstepping or more fancy stuff later on . You can make the voltage reference to the DAC variable to enable different motors to be used, but make sure you use a stable reference - not just a simple voltage divider as the output of that will fluctuate too much.
    Old router build log here. New router build log here. Lathe build log here.
    Electric motorbike project here.

Similar Threads

  1. Help Make 1st Step - Wiring Up Drivers to Motor and Arduino
    By Treemonkey in forum Resources & Help
    Replies: 10
    Last Post: 25-04-2013, 04:47 PM
  2. Any arduino coders here?
    By Mad Professor in forum General Electronics
    Replies: 48
    Last Post: 25-03-2013, 05:07 PM
  3. CNC Controller with Arduino and Gamepad
    By Christian Knuell in forum Electronic Project Building
    Replies: 2
    Last Post: 20-10-2012, 09:25 PM
  4. ​DIY arduino CNC 2 axis table
    By ruthharm84 in forum Electronic Project Building
    Replies: 5
    Last Post: 06-05-2012, 12:54 AM


Posting Permissions

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