/*********************************************************************************************/
【*】程序简介
-工程名称:陀螺仪—MPU6050
-实验平台: 野火STM32 霸道 开发板
-MDK版本:5.16
-ST固件库版本:3.5
【 !】功能简介:
基本MPU6050驱动,简单地获取传感器数据。
【*】注意事项:
1.本工程使用硬件IIC,硬件IIC与液晶屏同时使用时会有冲突,所以本程序不包含液晶输出。
2.MPU6050的AD0引脚接GND时,地址为0x68 ,接3.3V时,地址为0x69,
可在bsp_i2c.h文件修改宏MPU6050_SLAVE_ADDRESS的值来匹配硬件连接,默认AD0接地,使用0x68地址
#define MPU6050_SLAVE_ADDRESS (0x68<<1)
【 !】实验操作:
步骤如下(步骤可参考配套的教程,有图片说明):
1.按照引脚分配说明连接好MPU6050模块和开发板。
2.确认开发板的USB TO USART接口已与电脑相连,确认电脑端能查看到该串口设备。
3..打开串口调试助手(波特率为115200),即可查看数据输出。
【*】 引脚分配
陀螺仪(MPU6050):
MPU6050芯片的I2C接口与STM32的I2C1相连,且已接上拉电阻。
VCC <--->3.3或5V
GND <--->GND
SCL <--->PB6
SDA <--->PB7
INT <--->PA11 传感器数据中断引脚
AD0 <--->悬空或接地
串口(TTL-USB TO USART):
CH340的收发引脚与STM32的发收引脚相连。
RX<--->PA9
TX<--->PA10
/*********************************************************************************************/
【*】 版本
-程序版本:1.0
-发布日期:2015-10
-版本更新说明:首次发布
/*********************************************************************************************/
【*】 联系我们
-野火论坛 :http://www.firebbs.cn
-淘宝店铺 :https://fire-stm32.taobao.com
/*********************************************************************************************/
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
鉴于网上对Storm32 BGC云台开发程序都是基于俄罗斯版本,自己重新写了下基于STM32的代码,代码仅供学习,严谨商用。 主要是MPU6050角度融合和电机控制程序。 亲测可用。注释清晰全面。
资源推荐
资源详情
资源评论
收起资源包目录
自动控制-三轴无刷电机云台-BGC-STM32程序 (217个子文件)
BH-F103.uvguix.Administrator 170KB
MPU.axf 425KB
MPU_sct.Bak 479B
stm32f10x_tim.c 107KB
stm32f10x_flash.c 61KB
stm32f10x_rcc.c 50KB
stm32f10x_adc.c 46KB
stm32f10x_i2c.c 45KB
stm32f10x_can.c 44KB
stm32f10x_usart.c 37KB
system_stm32f10x.c 36KB
stm32f10x_fsmc.c 35KB
stm32f10x_spi.c 30KB
stm32f10x_dma.c 29KB
stm32f10x_sdio.c 28KB
stm32f10x_gpio.c 23KB
stm32f10x_dac.c 19KB
core_cm3.c 17KB
bsp_i2c.c 15KB
main.c 13KB
pwm.c 13KB
stm32f10x_cec.c 11KB
stm32f10x_pwr.c 9KB
stm32f10x_rtc.c 8KB
stm32f10x_bkp.c 8KB
mpu6050.c 8KB
misc.c 7KB
stm32f10x_exti.c 7KB
stm32f10x_it.c 6KB
stm32f10x_wwdg.c 6KB
stm32f10x_dbgmcu.c 5KB
stm32f10x_iwdg.c 5KB
stm32f10x_crc.c 3KB
bsp_usart.c 2KB
bsp_led.c 1KB
pid.c 1KB
bsp_SysTick.c 818B
timer_cnt.c 717B
fastTrig.C 309B
motorctrl.c 0B
mpu6050Calibration.c 0B
main.crf 379KB
pwm.crf 377KB
mpu6050.crf 376KB
pid.crf 375KB
timer_cnt.crf 374KB
fasttrig.crf 374KB
bsp_i2c.crf 368KB
stm32f10x_tim.crf 362KB
stm32f10x_it.crf 358KB
stm32f10x_can.crf 349KB
stm32f10x_adc.crf 348KB
stm32f10x_rcc.crf 348KB
stm32f10x_flash.crf 348KB
stm32f10x_i2c.crf 347KB
stm32f10x_usart.crf 346KB
stm32f10x_fsmc.crf 346KB
bsp_usart.crf 346KB
stm32f10x_sdio.crf 345KB
stm32f10x_spi.crf 345KB
stm32f10x_gpio.crf 344KB
stm32f10x_dma.crf 344KB
stm32f10x_dac.crf 342KB
stm32f10x_cec.crf 342KB
system_stm32f10x.crf 342KB
stm32f10x_bkp.crf 342KB
stm32f10x_rtc.crf 342KB
stm32f10x_pwr.crf 342KB
stm32f10x_exti.crf 341KB
bsp_led.crf 341KB
stm32f10x_wwdg.crf 341KB
misc.crf 341KB
stm32f10x_iwdg.crf 341KB
stm32f10x_crc.crf 340KB
stm32f10x_dbgmcu.crf 340KB
bsp_systick.crf 340KB
core_cm3.crf 4KB
motorctrl.crf 18B
timer_cnt.d 3KB
fasttrig.d 3KB
mpu6050.d 3KB
main.d 3KB
pwm.d 3KB
pid.d 3KB
stm32f10x_dbgmcu.d 2KB
stm32f10x_flash.d 2KB
stm32f10x_usart.d 2KB
stm32f10x_it.d 2KB
stm32f10x_exti.d 2KB
stm32f10x_fsmc.d 2KB
stm32f10x_gpio.d 2KB
stm32f10x_sdio.d 2KB
stm32f10x_iwdg.d 2KB
stm32f10x_wwdg.d 2KB
system_stm32f10x.d 2KB
stm32f10x_rtc.d 2KB
stm32f10x_dac.d 2KB
stm32f10x_bkp.d 2KB
stm32f10x_pwr.d 2KB
stm32f10x_tim.d 2KB
共 217 条
- 1
- 2
- 3
plypeng
- 粉丝: 0
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于SpringBoot+Vue3快速开发平台、自研工作流引擎源码设计.zip
- docker安装部署全流程
- 基于树莓派的人脸识别系统python源码+项目部署说明+超详细代码注释.zip
- Python和R爬取分析赶集网北京二手房数据.zip
- Python和R爬取分析赶集网北京二手房数据.zip
- Java知识体系最强总结(2021版).txt
- Python知识点Python知识点Python知识点Python知识点Python知识点PythonPython知识点.txt
- Java开发基于seetaface6的人脸识别(活体检测)的封装源码.zip
- JSP在线失物招领管理平台源码.zip
- JSP在线旅游美食展现管理系统源码.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
前往页