Arduino with NEMA34 Stepper and Diriver

Hello everyone. I bought NEMA34 nad CS-D808 driver (30V-80V) . I asked him can I run this with 24V and he says yes but now it isn't working. Is it to code or is it because vol is not enough? Here is my code

#define dirPin 2
#define stepPin 3

void setup(){
  pinMode(stepPin,OUTPUT);
  pinMode(dirPin,OUTPUT);
  digitalWrite(dirPin,HIGH);
}
void loop(){
  digitalWrite(stepPin,HIGH);
  delayMicroseconds(100);
  digitalWrite(stepPin,LOW);
  delayMicroseconds(100);
}

My connections is like this:
Screen Shot 2021-11-04 at 17.02.53
Screen Shot 2021-11-04 at 17.03.03

Is this code correct?
Can I run this with 24V-6A ? Top of the driver, It says (VDC 30V-80 V)

Only if you are lucky. Ther driver gives a minimum of 30V. If it works there is no guarantee it will keep operating or how long it will last. A complete schematic showing all connections wouold be a big help. I could not follow your power and ground interface.

It's because you are trying to go from zero speed to 5000 steps per second (1500 RPM) instantly.
Try a sane speed of 100 RPM and 3000 micros per step. How about the enable pin?

void loop(){
  digitalWrite(stepPin,HIGH);
  delayMicroseconds(1500);
  digitalWrite(stepPin,LOW);
  delayMicroseconds(1500);
}


I am using all switches on mode.
I am using 28.3 V 6A DC Power supply. DC Power supply's V+ to driver +Vdc, dc Power supply's V- to driver GND.

I tried it didn't worked. I tried enaPin low and high. It didn't change anything.

#define dirPin 2
#define stepPin 3
#define enaPin 6
void setup(){
  pinMode(stepPin,OUTPUT);
  pinMode(dirPin,OUTPUT);
  digitalWrite(dirPin,HIGH);
  digitalWrite(enaPin,HIGH);
}
void loop(){
  digitalWrite(stepPin,HIGH);
  delayMicroseconds(3000);
  digitalWrite(stepPin,LOW);
  delayMicroseconds(3000);
}

Hi,
Do you have a DMM?
Can you see the 3second ON and 3second OFF pulses on the step pin of the driver?

Can you post a wider picture of your project so we can see you complete component layout?

Thanks.. Tom... :smiley: :+1: :coffee: :australia:

Looks like the drive is enabled by default so the wire to pin 6 should not be needed so remove it for now. Looks like default is 400 steps per rev, I changed 3000 to 1500 so 3000 micros per step or 333.33 steps per second, 50 RPM. Post a drawing of which drive terminal is connected to which motor wire and which Arduino pin.

I did. I saw constant 2.7V . I connected 1 prop to PUL- and the other prop to GND.


Here is my connections.
I send a picture of my design too. In that design Encoder and signal pins are not connected. I tried with with 800,1600,3200,6400,12800 pulse.

I found the problem. I didn't connected Encoders cable but Closed Loop motors encoders pins should be connected. I connected encoder cables and it is working now. Thank you everyone.

Hi,

What motor encoder cable?
Why have you not posted link to specs/data of the motor?
Nema 43 means nothing when it comes to spec or type of I/O.
Nema 43 is a size format.

How about you now post a proper circuit diagram so we can see what your connections are now?
Where is your stepper in the images you supplied?
Please a picture of the stepper.

Tom.... :smiley: :+1: :coffee: :australia:

Hi, here is a photo of encoder. I found Chinese forum like this connection. I shared photo, as you can see Encoder side is not connected anything. I connected that Encoder signals like this image. My connections are same. I added this connections only. As I know, my stepper is closed loop stepper so I need to connect these signals to this
Screen Shot 2021-11-05 at 16.13.11
Screen Shot 2021-11-05 at 16.09.13

Hi,
That is full blown servo motor, mis-titled "stepper".

Tom... :smiley: :+1: :coffee: :australia:
PS. I hope a full blown schematic of your project is to follow?

Which program should I use to share my connections? I am just driving motor . Not too much :slight_smile:

Pen(cil) and paper.

Tom... :smiley: :+1: :coffee: :australia:


Here is a final connections of mine. It is working.

Hi,
Okay good that it is working.
This I believe is your schematic;


Tom.. :smiley: :+1: :coffee: :australia:

Yes, that is mine schematic.

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