Raspberry pi pico NEMA34 Stepper

RP2040 based microcontroller boards running MicroPython.
Target audience: MicroPython users with an RP2040 boards.
This does not include conventional Linux-based Raspberry Pi boards.
Post Reply
berke
Posts: 17
Joined: Wed Sep 01, 2021 7:45 am

Raspberry pi pico NEMA34 Stepper

Post by berke » Thu Nov 04, 2021 2:36 pm

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)

User avatar
OlivierLenoir
Posts: 126
Joined: Fri Dec 13, 2019 7:10 pm
Location: Picardie, FR

Re: Raspberry pi pico NEMA34 Stepper

Post by OlivierLenoir » Thu Nov 04, 2021 4:39 pm

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.

berke
Posts: 17
Joined: Wed Sep 01, 2021 7:45 am

Re: Raspberry pi pico NEMA34 Stepper

Post by berke » Thu Nov 04, 2021 6:43 pm

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.

berke
Posts: 17
Joined: Wed Sep 01, 2021 7:45 am

Re: Raspberry pi pico NEMA34 Stepper

Post by berke » Fri Nov 05, 2021 12:02 pm

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.

Post Reply