树莓派通过GPIO控制步进电机
作者:互联网
一、接线方式与GPIO调用方法:
- 电源接入+5v和GND
- In1-4分别接GPIO1-4
- 正转时,GPIO1-4分次传入:[1,0,0,0],[sleep],[0,1,0,0],[sleep],[0,0,1,0],[sleep],[0,0,0,1]
- 逆转时,GPIO1-4分次传入:[0,0,0,1],[sleep],[0,0,1,0],[sleep],[0,1,0,0],[sleep],[1,0,0,0]
- 停止时,GPIO1-4一次传入:[0,0,0,0]
出处:https://www.cnblogs.com/songxingzhu/p/7966024.html
标签:树莓,GPIO1,传入,电机,分次,sleep,步进,GPIO 来源: https://www.cnblogs.com/mq0036/p/11138235.html