標(biāo)題: STM32單片機(jī)+MPU6050傳感器做的載人平衡車源程序+PCB文件 [打印本頁]

作者: 識器曉聲    時間: 2019-5-8 09:28
標(biāo)題: STM32單片機(jī)+MPU6050傳感器做的載人平衡車源程序+PCB文件
包含,原理圖,pcb,以及源碼,源碼注釋詳細(xì),PID控制,卡爾曼濾波


STM32單片機(jī)源程序如下:
  1. #include "stm32f10x.h"
  2. #include "SysTick.h"
  3. #include "assignment1.h"
  4. #include "assignment2.h"
  5. #include "assignment3.h"

  6. extern float Angle;//角度

  7. int main(void)
  8. {       

  9.         SysTick_Init();//①系統(tǒng)滴答時鐘初始化       
  10.                  
  11.         I2C_MPU6050_Init();//②重力傳感器接口初始化
  12.        
  13.         InitMPU6050();//③初始化MPU6050

  14. //        LED_Config();//④顯示LED初始化

  15.   TIM1_Init();//⑤定時器tim1,tim8初始化

  16.         ADC1_Init();//⑥ADC初始化

  17.         USART2_Config();//⑦初始化串口2

  18.         Direction_Init();//⑧初始化轉(zhuǎn)向

  19.         while(1)
  20.         {
  21.         }
  22. }



  23. /******************* (C) COPYRIGHT 2012 WildFire Team *****END OF FILE************/
復(fù)制代碼

所有資料51hei提供下載:
STM32單片機(jī) MPU6050傳感器做的載人平衡車.7z (297.07 KB, 下載次數(shù): 129)



作者: 徐鶴之父    時間: 2019-5-9 17:04
密碼是什么




歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1