DM860A Stepper driver & Arduino Problems

Hi there,

I just bought thesteper driver DM860A and I need to control its motor with my Arduino Mega Board.

The thingis that I cannot make it work. I dont think that pinout wiring is wrong, but something is wrong with the mega pins i think.
Can someone help?

The driver I am using: http://www.bilbycnc.com.au/DispProd.asp?CatID=11&SubCatID=92&ProdID=ptDriverDM860A

The example code:

// ConstantSpeed.pde
// -*- mode: C++ -*-
//
// Shows how to run AccelStepper in the simplest,
// fixed speed mode with no accelerations
/// \author  Mike McCauley (mikem@airspayce.com)
// Copyright (C) 2009 Mike McCauley
// $Id: ConstantSpeed.pde,v 1.1 2011/01/05 01:51:01 mikem Exp mikem $

#include <AccelStepper.h>

AccelStepper stepper; // Defaults to AccelStepper::FULL4WIRE (4 pins) on 2, 3, 4, 5

void setup()
{  
   stepper.setMaxSpeed(1000);
   stepper.setSpeed(50);	
}

void loop()
{  
   stepper.runSpeed();
}

And the pinout :

PUL+ → Pin 2
PUL - → Pin 3
DIR + → Pin 4
DIR - → Pin 5
ENAB + → +5V
ENAB - → GND

Firefox tells me your link is an Untrusted Connection. Can you fix that please.

In the meantime this Thread stepper motor basics and the simple stepper code may help.

...R

http://www.usinages.com/ressources/file/99033

Thanks for that link.

I think that driver should work with the simple stepper code I linked to earlier.

Rather than connect the Pul- and Dir- to pins 3 and 5, just connect them to GND and treat pins 2 and 4 as step and direction respectively.

...R

Robin2:
Firefox tells me your link is an Untrusted Connection. Can you fix that please.

I edited it.

I have made this kind of connection:

DIR+ → 10
DIR- → GND
PUL+ → 11
PUL- → GND
ENABLE + → +5V
ENABLE - → Unconnected
Arduino → GND

If I follow this connection and power up the system, the motor doesn’t spin when sketch is running. But if I touch it I can feel something like kicking and if I am in a silent room I can hear a noise at the coils inside the motor.
When I power off the Arduino the motor HALTS.

Seems like a conflict between the driver jumper step settings and the code.

The code i use:

// MultiStepper.pde
// -*- mode: C++ -*-
//
// Shows how to multiple simultaneous steppers
// Runs one stepper forwards and backwards, accelerating and decelerating
// at the limits. Runs other steppers at the same time
//
// Copyright (C) 2009 Mike McCauley
// $Id: MultiStepper.pde,v 1.1 2011/01/05 01:51:01 mikem Exp mikem $

#include <AccelStepper.h>

// Define some steppers and the pins the will use

AccelStepper stepper3(AccelStepper::FULL2WIRE, 10, 11);

void setup()
{  
 
    
    stepper3.setMaxSpeed(300.0);
    stepper3.setAcceleration(100.0);
    stepper3.moveTo(1000000); 
}

void loop()
{
    stepper3.run();
}

And the Accelstepper library link: AccelStepper: AccelStepper library for Arduino

The attached image is my DM860A driver settings and connections.
DM860 Manual: http://www.americanmotiontech.com/upload/Manuals/DM860m.pdf

nathanas:
the motor doesn't spin when sketch is running.

Have you tried my simple sketch. It doesn't use a library and is deliberately designed to be simple and transparent?

Your link is still Untrusted. Is the document the same as the link posted by @woodygb ?

...R

Even with your simple code it does the same kicking noise.

As for the link it should be ok now.

I also shared the DM860A stepper driver manual with you.

I am using an Arduino MEGA 2560. Should I replace any pins? By checking the datasheet it seems that they support on pins 10,11 PWM.

nathanas:
I am using an Arduino MEGA 2560. Should I replace any pins? By checking the datasheet it seems that they support on pins 10,11 PWM.

You obviously did not read stepper motor basics carefully.

I don't think you have given us a link to the datasheet for the motor you are using.
And please note that your link to the DM860 manual is not a downloadable PDF - it should be.

What power supply are you using?

Make a drawing of all your wiring connections and post a photo of the drawing. A photo of the hardware itself is no good.

...R