标题:
基于STM32的三路避障小车源程序
[打印本页]
作者:
lee2018
时间:
2020-3-18 10:01
标题:
基于STM32的三路避障小车源程序
本来是想做灭火小车的,只是程序不够严谨,所以只传了避障部分,后面有时间修改再传个完整版。
制作出来的实物图如下:
IMG_20191225_135850.jpg
(530.3 KB, 下载次数: 86)
下载附件
小车实物图
2020-3-18 09:55 上传
单片机源程序如下:
#include "stm32f10x.h" // Device header
#include "car.h"
#include "delay.h"
#include "chaoshengbo.h"
#include "PWM_Output.h"
#include "timer.h"
int main(void)
{
Sys_Delay_Init(72);
TIM2_Init();
Chaoshengbo_Init();
TIM4_PWM_Init();
Car_Stop(0);
Delay_1ms(100);
while(1)
{
ChaoShengBo_Run();
}
}
复制代码
所有资料51hei提供下载:
Cars.zip
(389.15 KB, 下载次数: 20)
2020-3-18 09:49 上传
点击文件名下载附件
三路避障小车
下载积分: 黑币 -5
欢迎光临 (http://www.51hei.com/bbs/)
Powered by Discuz! X3.1