使用的是32F103定时器输出PWM波来控制舵机,通过TIM_SetComparex(TIMx,X)函数控制占空比,要注意的是占空比最大就是50%,也就是说X的数值是40%占空比和60%占空比时输出的
Stm32+pwm complementary output with dead time
该资源是采用STM32的PWM产生1KHZ的正弦波,绝对好使
stm32输出PWM波占空比可由串口控制
STM32的PWM输出程序,亲测能用,亲测能用。内有详细的讲解文档,很好的学习资料。
通过PID算法控制STM32的PWM输出,简洁的PID控制PWM输出的版本
stm32控制舵机基本配置pwm.c
编译,下载,运行,连接飞控串口和FTDI串口,串口波特率500K,上位机打开高级收码,在上位机飞控状态标签可以看到变化的传感器数据,3D显示可以跟随roll和pitch的变化而变化,因为没有写yaw的
基于STM32F103的pcb大四轴原理图,有不错的参考意义
四子棋游戏,有扫雷小游戏在内,四子棋有AI算法