接上一篇:米尔-STM32MP135开发板试用1-舵机控制(原创)首发(开源)
https://mbb.eet-china.com/forum/topic/132247_1_1.html

1.连接好电烙铁 上电备用。

2.观察驱动电路是否异常或损坏。

3.查看电路走线找到可改装方案。

4.查看硬件电路和元器件是否全部可用,是否会对本系统造成影响。

5.查看并调整信号与线路,并选定必需要去掉的元件。

6.电烙铁温度已好。


7.焊去元器件。

8.检查各线路接口性能。

9. 准备跳线与接入方案。

10.采用对焊,易保持平衡。

11.准备开发板与杜邦线。

12.根据开发板电路图连接到GND.

13.将控制线连接。

14.准备实验程序。
1). 设置端口
echo 94 > /sys/class/gpio/export
复制代码2). 设置 GPIO 方向
设置输出
echo "out" > /sys/class/gpio/PF14/direction
复制代码3).查看 gpio 方向
cat /sys/class/gpio/PF14/direction
复制代码out
echo "0" > /sys/class/gpio/PF14/value
复制代码4).设置输出高
echo "1" > /sys/class/gpio/PF14/value
复制代码5).设计延时
while true
do
echo "1" > /sys/class/gpio/PF14/value
sleep 8
echo "0" > /sys/class/gpio/PF14/value
sleep 18
done
复制代码5).循环执行
6).外围电路上电实验,并看到上方的视频。
谢谢!
谢谢!