找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 6887|回復(fù): 2
打印 上一主題 下一主題
收起左側(cè)

ZYSTM32-A0智能小車紅外避障實驗(帶后退掉頭避障)stm32源碼

[復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
樓主
ID:257401 發(fā)表于 2018-7-16 09:27 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
單片機源程序如下:
  1. #include "stm32f10x.h"
  2. #include "delay.h"
  3. #include "motor.h"
  4. #include "keysacn.h"
  5. #include "IRSEARCH.h"
  6. #include "IRAvoid.h"

  7. /*
  8. void ZYSTM32_run(int speed,int time);       //前進函數(shù)
  9. void ZYSTM32_brake(int time);               //剎車函數(shù)
  10. void ZYSTM32_Left(int speed,int time);      //左轉(zhuǎn)函數(shù)
  11. void ZYSTM32_Spin_Left(int speed,int time); //左旋轉(zhuǎn)函數(shù)
  12. void ZYSTM32_Right(int speed,int time);     //右轉(zhuǎn)函數(shù)
  13. void ZYSTM32_Spin_Right(int speed,int time);//右旋轉(zhuǎn)函數(shù)
  14. void ZYSTM32_back(int speed,int time);      //后退函數(shù)

  15. */


  16. int main(void)
  17. {      
  18.          delay_init();
  19.          KEY_Init();
  20.          IRSearchInit();
  21.          IRAvoidInit();
  22.          TIM4_PWM_Init(7199,0);  //初始化PWM
  23.          ZYSTM32_brake(500);
  24.          keysacn();               
  25.                 while(1)
  26.                 {  
  27.                  AVoidRun();  //避障函數(shù)
  28.                 }
  29. }


復(fù)制代碼


全部資料51hei下載地址:
ZYSTM32-A0 智能小車紅外避障實驗(帶后退掉頭避障).rar (300.57 KB, 下載次數(shù): 61)

評分

參與人數(shù) 1黑幣 +50 收起 理由
admin + 50 共享資料的黑幣獎勵!

查看全部評分

分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復(fù)

使用道具 舉報

沙發(fā)
ID:257401 發(fā)表于 2018-7-17 09:13 | 只看該作者
ZYSTM32-A0智能小車紅外避障實驗(帶后退掉頭避障)

1.轉(zhuǎn)接控制板原理圖.pdf

62.65 KB, 下載次數(shù): 16, 下載積分: 黑幣 -5

回復(fù)

使用道具 舉報

板凳
ID:370521 發(fā)表于 2018-12-28 14:30 | 只看該作者
請問下樓主,左右輪是指車子朝正面還是朝反面
回復(fù)

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規(guī)則

手機版|小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機教程網(wǎng)

快速回復(fù) 返回頂部 返回列表