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)
Is this code correct?
Can I run this with 24V-6A ? Top of the driver, It says (VDC 30V-80 V)