Help with Adafruit Feather M0 and DM542T

Hey guys I feel like I am just missing something and seems to easy. So just trying to run a stepper motor with my Adafruit Feather M0 wifi attached to a DM542T driver running a 24V stepper motor. Testing with a basic stepper motor driver off amazon it works just fine but trying to run it off the driver with my feather is just not working no matter what I have tried and really lost count with all I have tried.
Here is my setup:

Here is how I have it connected currently:

  • Feather pin 10 > DM542T - PUL+
  • Feather pin 11 > DM542T - DIR+
  • Feather pin GND > DM542T - PUL-/DIR-
  • DM542T GND > 24V -
  • DM542T +Vdc > 24V +
  • DM542T - A+ - Stepper Red
  • DM542T - A- - Stepper Yellow
  • DM542T - B+ - Stepper Orange
  • DM542T - B- - Stepper Brown
    ** Keep in mind on the stepper connections I just matched up what works with the stepper driver I tested with first that I know works with the same power supply and motor

Here is the basic code I am trying to just get it to turn:

//
// Stepper Pump Motor PHR-6
// A+ = Red Wire (PIN 6)
// A- = Yellow Wire (PIN 4)
// B+ = Orange Wire (PIN 3)
// B- = Brown Wire (PIN 1)
//
 
#include <AccelStepper.h>

// Define a stepper and the pins it will use
AccelStepper clstepper(AccelStepper::DRIVER, 10, 11);
 
void setup()
{  
  // Change these to suit your stepper if you want
  clstepper.setMaxSpeed(2000);
  clstepper.setSpeed(1000);
}
 
void loop()
{

  clstepper.run();
}

No surprice. Did the controller survive? No code on earth would make it work.

Any datasheet link for the stepper?

Please post a pic of a hand drawn wiring diagram, with all parts, pins and connections clearly labeled.

1 Like

Sorry drawing is rough but should give you the idea how it’s connected

Thanks, drawing is fine.

Sorry, I don't see a problem, although I suggest to set the current limit appropriately, and reduce the speed by 100X for testing.

1 Like

The PUL/DIR pins are designed for 5volt-logic. They need at least 4.5volt (10mA).
A 3.3volt-logic Feather can't provide that.
Leo..

1 Like

Well I started a lot lower, found I got AC voltage from the stepper drive at high speed so was just seeing if i’d get that output from the driver and didn’t.

Thanks! That helps a LOT! Happened to have a few logic converters and it worked perfect. Funny how one thing like that I did not notice anywhere could cause that. Thanks for the time to answer this!!!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.