在树莓派上设置Leadhine DM860双极驱动器电机 [英] setup leadshine DM860 bipolar driver motor on raspberry pi
问题描述
因此,我想在树莓派3上使用我的Leadhine DM860双极驱动器,我使用
那么,我应该在树莓派上做哪些配置?谢谢
我更改控制信号连接器(P1)接口,然后选择连接到PNP信号".似乎在arduino和raspberry pi之间,它们如何为连接到GPIO引脚或I/O引脚的每个传感器/设备提供功率和信号波的方式不同.
我更改控制信号连接器(P1)接口,然后选择连接到PNP信号".似乎在arduino和raspberry pi之间,它们如何为连接到GPIO引脚或I/O引脚的每个传感器/设备提供功率和信号波的方式不同.
so, I want to use my leadshine DM860 bipolar driver on raspberry pi 3 and I use the guide from https://makezine.com/2014/03/19/driving-big-stepper-motors-with-arduino/ (I already try it on arduino and it's working, I use code 'Nema34_potensiometer.ino') but it didn't working. So this is the example of my code:
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
#GPIO.setup(26,GPIO.OUT)
GPIO.setup(21,GPIO.OUT)
GPIO.setup(20,GPIO.OUT)
#GPIO.output(26,True)
GPIO.output(21,False)
#GPIO.output(21,GPIO.LOW)
microStep = 0
while True:
GPIO.output(20,True)
#time.sleep(1)
GPIO.output(20,False)
time.sleep(1)
microStep = microStep + 1
print(microStep)
GPIO.cleanup()
and the wiring between driver and raspberry look like this:
so, what configuration that should I do on raspberry pi? thank you
EDIT:
I change Control Signal Connector (P1) Interface, I choose Connection to PNP signal. It's seems that between arduino and raspberry pi has different way how they give a power and signal wave to every sensor/device that connect to their GPIO pin or I/O pin
I change Control Signal Connector (P1) Interface, I choose Connection to PNP signal. It's seems that between arduino and raspberry pi has different way how they give a power and signal wave to every sensor/device that connect to their GPIO pin or I/O pin
这篇关于在树莓派上设置Leadhine DM860双极驱动器电机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!