. .

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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.

  2. #2
    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.

  3. #3
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

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

Bookmarks

Posting Permissions

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