Description: 用STC12C5A60S2控制直流电机,PWM控制转速,按键s1、s2控制加速减速
因只控制一路电机所以只用到一路PWM,若用到两路则打开另一路即可
晶振为22.1184MHz,使用其他晶振时把延时函数改一下即可。-DC motor control with STC12C5A60S2, PWM speed control, key s1, s2 control the acceleration and deceleration due to motor all the way to control only the way it is used only to PWM, if two are used to open another road to the crystal is 22.1184MHz, use of other crystal delay function to change it when you can. Platform: |
Size: 16384 |
Author:韦冬成 |
Hits: