Go Down

Topic: How to connect Arduino Uno with DM2282 drive (Read 334 times) previous topic - next topic

yafimski

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

outsider

#1
Feb 24, 2018, 08:24 am Last Edit: Feb 24, 2018, 08:26 am by outsider
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).

yafimski

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?

outsider

#3
Feb 25, 2018, 07:01 am Last Edit: Feb 25, 2018, 07:04 am by outsider
The GND connection is through the output pins, the pins will be "grounded" when written LOW.
Code: [Select]
digitalWrite(pulsPin,LOW); // will cause pulsPin to be connected to GND and the circuit completed

yafimski

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

Robin2

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

...R
Two or three hours spent thinking and reading documentation solves most programming problems.


Robin2

#7
Feb 25, 2018, 11:33 pm Last Edit: Feb 25, 2018, 11:39 pm by Robin2
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
Two or three hours spent thinking and reading documentation solves most programming problems.

yafimski

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

Go Up