How to connect Arduino Uno with DM2282 drive

I have a NEMA42 with a DM2282 drive.

I want to control it via an Arduino Uno.

Attached is a scheme of the connections, but I don't know where to connect the STEP and DIR from the Arduino pins to the drive.

Can you help?

Thanks

wiring NEMA42.pdf (23.5 KB)

Connect a wire from Arduino 5V pin to PUL+ and DIR+ on the drive. Connect a wire from PUL- to one end of a 330 Ohm resistor (1/4 or 1/2 Watt), connect other end of resistor to the Arduino pin you want to be "PUL" (I like 9), do the same with DIR- and pin ( 8 ). The pins will be "LOW true" (active when output pin is LOW).

Hi,
Thanks!

In the schematic I attached to the original post, DIR- and PUL- need a GND connection. If they are connected they way you said, aren't they missing the GND connection?

The GND connection is through the output pins, the pins will be "grounded" when written LOW.

digitalWrite(pulsPin,LOW); // will cause pulsPin to be connected to GND and the circuit completed

I'm not sure I understand.

The power supply of the DM2282 is connected and has a GND, but doesn't the Arduino need a separate GND connection as well?

At the moment no pin is connected to the GND pin so how does the LOW signal do that? Maybe you know the electronic explanation for this...? Are the 9 and 8 pins connected to GND somehow on the Arduino chip?

Thanks

Post a link to the datasheet for the stepper motor driver.

...R

DM2282 Specification

This is what you mean?

Not really. This is the link to the datasheet

As far as I can see you just connect to PUL+ and DIR+ pins to the Arduino 5v pin and connect the PUL- to your Arduino step pin and DIR- to the Arduino direction pin.

...R

Okay thank you very much guys I'll let you know about results! :slight_smile: