Page 1 of 1

Raspberry pi pico NEMA34 Stepper

Posted: Thu Nov 04, 2021 2:36 pm
by berke
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

Code: Select all

from machine import Pin
import time
import utime
dirPin = Pin(4, Pin.OUT)
stepPin = Pin(3, Pin.OUT)
enaPin = Pin(2, Pin.OUT)
dirPin.high()
while True:
    stepPin.high()
    time.sleep_us(200)
    stepPin.low()
    time.sleep_us(200)
I connected DIR- , PUL- , ENA- to GND. I connected DIR+ to pin 4 ,PUL+ to pin 3, ENA+ to pin 2 .
Is this code correct?
Can I run this with 24V-6A ? Top of the driver, It says (VDC 30V-80 V)

Re: Raspberry pi pico NEMA34 Stepper

Posted: Thu Nov 04, 2021 4:39 pm
by OlivierLenoir
The CS-D808 datasheet says page 6, min operating voltage 30V, typical 48V to 60V, max 80V.
The enable pin should be high to work, page 8.

Re: Raspberry pi pico NEMA34 Stepper

Posted: Thu Nov 04, 2021 6:43 pm
by berke
Thank you. I will try to find at least 30V 6A tomorrow. I hope, power is the problem. I will ise enaPin.high() . This code is seems so simple. Is this code true? I converted from arduino TB6600 driver.

Re: Raspberry pi pico NEMA34 Stepper

Posted: Fri Nov 05, 2021 12:02 pm
by berke
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.