单片机 | 基于stc89c52的循迹小车+pwm
作品实现循迹开始。。。直角转弯。。。三叉线转弯。。。直线加速。。。代码实现#include <reg52.h> #define uint unsigned int #define uchar unsigned char #define fr 50 //频率50HZ sbit pwmout1 = P1 ^ 0; sbit pwmout2 = P1 ^ 1; sbit wela1 =
作品实现循迹开始。。。直角转弯。。。三叉线转弯。。。直线加速。。。代码实现#include <reg52.h> #define uint unsigned int #define uchar unsigned char #define fr 50 //频率50HZ sbit pwmout1 = P1 ^ 0; sbit pwmout2 = P1 ^ 1; sbit wela1 =