Welcome to Our Community

Some features disabled for guests. Register Today.

Help with Microstepping

Discussion in 'CNC Mills/Routers' started by propsGCC, Jun 21, 2018.

  1. propsGCC

    propsGCC New
    Builder

    Joined:
    May 24, 2018
    Messages:
    2
    Likes Received:
    0
    Hi everyone! Sorry if this is the wrong place to post, first time here.

    Right now, I've got a DQ542MA microstepping driver, hooked up to a NEMA23 motor. For the controller board, I've got an Arduino hooked up to Labview (sorry, project requirements). I'm currently just trying to achieve linear actuation with this setup. The one caveat is that I need the actuation to be smooth at low speed, hence microstepping.

    Setup (DQ542MA)
    PUL+(+5V) <----Arduino 5V
    PUL-(PUL) <----Arduino Pin 9 (PWM-capable)
    DIR+(+5V) <----Arduino 5V
    DIR-(DIR) <----Arduino Pin 8 (PWM-capable)

    Overview of code:
    DIR- is written hi or lo depending on desired direction.
    PUL- is being pulsed (hi then lo) for steps at a given rate. I figure all the PWM translation would be handled on the DQ542MA, so nothing fancy is going on here....

    Currently, I can get the thing to actuate just fine, but the thing is none of the microstepping options seem to work. I've flicked all the switches, but nothing seems to change.

    Am I wiring something wrong? How do I get this to microstep.

    Thanks!!
     
  2. Gary Caruso

    Gary Caruso OpenBuilds Volunteer
    Staff Member Moderator Builder

    Joined:
    May 19, 2016
    Messages:
    1,193
    Likes Received:
    532
    Hi Props, Make sure to do the dip switching with the power off, or at least power cycle the driver (power off for a few seconds for caps to dissipate) then try again.
    Another thing, is i'm not sure PWM is correct for signalling the driver, you want a fixed pulse length 10 micro sec and vary the frequency. PWM would vary the pulse width....

    cheers
    Gary
     
    #2 Gary Caruso, Jun 21, 2018
    Last edited: Jun 21, 2018
    Mark Carew and propsGCC like this.
  3. propsGCC

    propsGCC New
    Builder

    Joined:
    May 24, 2018
    Messages:
    2
    Likes Received:
    0
    Hi Gary,

    Combined with some code fixes of my spaghetti program, this saved the day!! Thanks a lot.

    Cheers!
     
  4. Gary Caruso

    Gary Caruso OpenBuilds Volunteer
    Staff Member Moderator Builder

    Joined:
    May 19, 2016
    Messages:
    1,193
    Likes Received:
    532
    Glad I could help!
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice