首页 开发技术 C     /    STM32巡线小车PID算法代码

STM32巡线小车PID算法代码

上传者: u013061052 | 上传时间:2024/3/1 6:09:10 | 文件大小:610KB | 文件类型:rar
STM32巡线小车PID算法代码
以STM32F103C8T6为控制器,L298N驱动两个直流电机,通过3个反射式红外传感器采集数据,采用两节3.2V锂电池串联作为电源的巡线小车。
车上搭在了其他模块,如:超声波测距模块、显示屏模块等。
程序为C语言编写。
  数据流向:   传感器->ADC->DMA->RAM->PID控制器->PWM->L298N->直流电机  红外反射传感器:有发射头和接收头,发射头发出红外光经物体表面反射进入接收头,根据不同颜色表面对光的反射率不同,达到识别路径的目的。
  用于测试的路径可以采用如下方式制作:  在A0的白纸上粘贴黑色电工胶带作为巡线路径。

文件下载

资源详情

[{"title":"(85个子文件610KB)STM32巡线小车PID算法代码","children":[{"title":"巡线","children":[{"title":"Obj","children":[{"title":"PatrolCar.htm <span style='color:#111;'>50.78KB</span>","children":null,"spread":false},{"title":"PatrolCar.axf <span style='color:#111;'>256.25KB</span>","children":null,"spread":false},{"title":"PatrolCar.hex <span style='color:#111;'>17.94KB</span>","children":null,"spread":false}],"spread":true},{"title":"List","children":[{"title":"PatrolCar.map <span style='color:#111;'>75.48KB</span>","children":null,"spread":false},{"title":"startup_stm32f10x_md.lst <span style='color:#111;'>40.51KB</span>","children":null,"spread":false}],"spread":true},{"title":"日志.txt <span style='color:#111;'>429B</span>","children":null,"spread":false},{"title":"巡线.tuo <span style='color:#111;'>1.79KB</span>","children":null,"spread":false},{"title":"Core","children":[{"title":"stm32f10x_conf.h <span style='color:#111;'>3.17KB</span>","children":null,"spread":false},{"title":"core_cm3.h <span style='color:#111;'>83.71KB</span>","children":null,"spread":false},{"title":"stm32f10x.h <span style='color:#111;'>615.00KB</span>","children":null,"spread":false},{"title":"system_stm32f10x.c <span style='color:#111;'>32.11KB</span>","children":null,"spread":false},{"title":"core_cm3.c <span style='color:#111;'>16.87KB</span>","children":null,"spread":false},{"title":"system.c <span style='color:#111;'>21B</span>","children":null,"spread":false},{"title":"system.h <span style='color:#111;'>2.18KB</span>","children":null,"spread":false},{"title":"system_stm32f10x.h <span style='color:#111;'>2.02KB</span>","children":null,"spread":false},{"title":"startup_stm32f10x_md.s <span style='color:#111;'>12.47KB</span>","children":null,"spread":false}],"spread":true},{"title":"Lib","children":[{"title":"Font.h <span style='color:#111;'>306B</span>","children":null,"spread":false},{"title":"DMA.c <span style='color:#111;'>2.01KB</span>","children":null,"spread":false},{"title":"Bmp.h <span style='color:#111;'>105B</span>","children":null,"spread":false},{"title":"usart.c <span style='color:#111;'>3.27KB</span>","children":null,"spread":false},{"title":"IR1838.c <span style='color:#111;'>3.95KB</span>","children":null,"spread":false},{"title":"NVIC.h <span style='color:#111;'>308B</span>","children":null,"spread":false},{"title":"LCD1.8.c <span style='color:#111;'>7.79KB</span>","children":null,"spread":false},{"title":"I2C.h <span style='color:#111;'>976B</span>","children":null,"spread":false},{"title":"L298N.c <span style='color:#111;'>3.12KB</span>","children":null,"spread":false},{"title":"SPI.h <span style='color:#111;'>526B</span>","children":null,"spread":false},{"title":"LCD1.8_ProgressBar.c <span style='color:#111;'>708B</span>","children":null,"spread":false},{"title":"Patrol.h <span style='color:#111;'>145B</span>","children":null,"spread":false},{"title":"NVIC.c <span style='color:#111;'>3.12KB</span>","children":null,"spread":false},{"title":"L298N.h <span style='color:#111;'>483B</span>","children":null,"spread":false},{"title":"SRF05.h <span style='color:#111;'>128B</span>","children":null,"spread":false},{"title":"SG90.c <span style='color:#111;'>973B</span>","children":null,"spread":false},{"title":"LCD1.8_TextField.c <span style='color:#111;'>2.24KB</span>","children":null,"spread":false},{"title":"SG90.h <span style='color:#111;'>378B</span>","children":null,"spread":false},{"title":"Bmp.c <span style='color:#111;'>97B</span>","children":null,"spread":false},{"title":"usart.h <span style='color:#111;'>641B</span>","children":null,"spread":false},{"title":"Senser.c <span style='color:#111;'>904B</span>","children":null,"spread":false},{"title":"Patrol.c <span style='color:#111;'>97B</span>","children":null,"spread":false},{"title":"Font.c <span style='color:#111;'>11.63KB</span>","children":null,"spread":false},{"title":"Common.h <span style='color:#111;'>599B</span>","children":null,"spread":false},{"title":"ds3231.c <span style='color:#111;'>1.02KB</span>","children":null,"spread":false},{"title":"Tachometer.c <span style='color:#111;'>794B</span>","children":null,"spread":false},{"title":"SPI.c <span style='color:#111;'>2.60KB</span>","children":null,"spread":false},{"title":"ADC.h <span style='color:#111;'>229B</span>","children":null,"spread":false},{"title":"DMA.h <span style='color:#111;'>178B</span>","children":null,"spread":false},{"title":"LCD1.8_Border.c <span style='color:#111;'>1.23KB</span>","children":null,"spread":false},{"title":"Common.c <span style='color:#111;'>3.81KB</span>","children":null,"spread":false},{"title":"IR1838.h <span style='color:#111;'>151B</span>","children":null,"spread":false},{"title":"SRF05.c <span style='color:#111;'>685B</span>","children":null,"spread":false},{"title":"LCD1.8.h <span style='color:#111;'>2.56KB</span>","children":null,"spread":false},{"title":"Tachometer.h <span style='color:#111;'>192B</span>","children":null,"spread":false},{"title":"ADC.c <span style='color:#111;'>2.06KB</span>","children":null,"spread":false},{"title":"I2C.c <span style='color:#111;'>6.13KB</span>","children":null,"spread":false},{"title":"Senser.h <span style='color:#111;'>224B</span>","children":null,"spread":false}],"spread":false},{"title":"巡线.xmp <span style='color:#111;'>11.15KB</span>","children":null,"spread":false},{"title":"DebugRel","children":[{"title":"main.d <span style='color:#111;'>570B</span>","children":null,"spread":false},{"title":"main.o <span style='color:#111;'>234.19KB</span>","children":null,"spread":false},{"title":"巡线.sct <span style='color:#111;'>441B</span>","children":null,"spread":false},{"title":"Common.o <span style='color:#111;'>229.28KB</span>","children":null,"spread":false},{"title":"core_cm3.o <span style='color:#111;'>9.42KB</span>","children":null,"spread":false},{"title":"system.o <span style='color:#111;'>224.94KB</span>","children":null,"spread":false},{"title":"NVIC.d <span style='color:#111;'>367B</span>","children":null,"spread":false},{"title":"system.d <span style='color:#111;'>316B</span>","children":null,"spread":false},{"title":"startup_stm32f10x_md.o <span style='color:#111;'>5.75KB</span>","children":null,"spread":false},{"title":"usart.o <span style='color:#111;'>231.59KB</span>","children":null,"spread":false},{"title":"usart.d <span style='color:#111;'>378B</span>","children":null,"spread":false},{"title":"DMA.o <span style='color:#111;'>230.38KB</span>","children":null,"spread":false},{"title":"core_cm3.d <span style='color:#111;'>109B</span>","children":null,"spread":false},{"title":"ADC.d <span style='color:#111;'>389B</span>","children":null,"spread":false},{"title":"L298N.o <span style='color:#111;'>231.20KB</span>","children":null,"spread":false},{"title":"IR1838.o <span style='color:#111;'>231.64KB</span>","children":null,"spread":false},{"title":"system_stm32f10x.d <span style='color:#111;'>348B</span>","children":null,"spread":false},{"title":"ADC.o <span style='color:#111;'>230.07KB</span>","children":null,"spread":false},{"title":"DMA.d <span style='color:#111;'>420B</span>","children":null,"spread":false},{"title":"L298N.d <span style='color:#111;'>413B</span>","children":null,"spread":false},{"title":"Senser.d <span style='color:#111;'>459B</span>","children":null,"spread":false},{"title":"NVIC.o <span style='color:#111;'>229.04KB</span>","children":null,"spread":false},{"title":"Senser.o <span style='color:#111;'>230.47KB</span>","children":null,"spread":false},{"title":"IR1838.d <span style='color:#111;'>425B</span>","children":null,"spread":false},{"title":"system_stm32f10x.o <span style='color:#111;'>226.59KB</span>","children":null,"spread":false},{"title":"Common.d <span style='color:#111;'>352B</span>","children":null,"spread":false}],"spread":false},{"title":"Main","children":[{"title":"备份","children":[{"title":"main_0520高速弯道震荡.c <span style='color:#111;'>4.92KB</span>","children":null,"spread":false},{"title":"main平稳_中速.c <span style='color:#111;'>5.26KB</span>","children":null,"spread":false},{"title":"main_0514慢速平稳,会跑飞.c <span style='color:#111;'>1.71KB</span>","children":null,"spread":false}],"spread":true},{"title":"main.c <span style='color:#111;'>5.53KB</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • nandycooh:
    没用,不是一个完整的工程,代码也没注释2019-05-09

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明