下你所需,载你所想!
汇集开发技术源码资料

三轴陀螺仪MPU3050,测试代码和文件

:4.501MB :1 :2022-10-09 14:35:04

部分简介

三轴陀螺仪MPU3050,测试代码和文件如果开发者对于本文件有需要的可以参考。
有C51代码和STM32代码
GY-52三轴陀螺仪MPU3050.rar
//显示x轴
void display_x()
{
BUF[0]= Single_ReadMPU3050(GX_L);
BUF[1]= Single_ReadMPU3050(GX_H);
dis_data=(BUF[1]<<8) BUF[0]; //合成数据
dis_data/=16.4; //计算对应 度/秒
lcd_printf(dis, dis_data); //转换数据显示
DisplayListChar(2,0,dis,4); //启始列,行,显示数组,显示长度
}
//***********************************************************************
//显示y轴
void display_y()
{
BUF[2]= Single_ReadMPU3050(GY_L);
BUF[3]= Single_ReadMPU3050(GY_H);
dis_data=(BUF[3]<<8) BUF[2]; //合成数据
dis_data/=16.4; //计算对应 度/秒
lcd_printf(dis, dis_data); //转换数据显示
DisplayListChar(2,1,dis,4); //启始列,行,显示数组,显示位数
}
//***********************************************************************
//显示z轴
void display_z()
{
BUF[4]= Single_ReadMPU3050(GZ_L);
BUF[5]= Single_ReadMPU3050(GZ_H);
dis_data=(BUF[5]<<8) BUF[4]; //合成数据
dis_data/=16.4; //计算对应 度/秒
lcd_printf(dis, dis_data); //转换数据显示
DisplayListChar(11,0,dis,4); //启始列,行,显示数组,显示位数
}
【资料目录】
GY-52三轴陀螺仪MPU3050
└── GY-52三轴陀螺仪发送资料
└── GY-52三轴陀螺仪发送资料
├── GY-52-SCH.jpg
├── GY-52测试程序
│ ├── 51MCU-CODE
│ │ └── STC-MPU-3050.txt
│ └── STM32-CODE
│ └── 串口输出MPU-3050
│ └── 串口
│ ├── ExtDll.iex
│ ├── JLink Regs CM3.txt
│ ├── JLinkLog.txt
│ ├── JLinkSettings.ini
│ ├── Libraries
│ │ ├── CMSIS
│ │ │ ├── Core
│ │ │ │ ├── CM3
│ │ │ │ │ ├── core_cm3.c
│ │ │ │ │ ├── core_cm3.h
│ │ │ │ │ ├── startup
│ │ │ │ │ │ ├── arm
│ │ │ │ │ │ │ ├── startup_stm32f10x_cl.s
│ │ │ │ │ │ │ ├── startup_stm32f10x_hd.s
│ │ │ │ │ │ │ ├── startup_stm32f10x_ld.s
│ │ │ │ │ │ │ └── startup_stm32f10x_md.s
│ │ │ │ │ │ ├── gcc
│ │ │ │ │ │ │ ├── startup_stm32f10x_cl.s
│ │ │ │ │ │ │ ├── startup_stm32f10x_hd.s
│ │ │ │ │ │ │ ├── startup_stm32f10x_ld.s
│ │ │ │ │ │ │ └── startup_stm32f10x_md.s
│ │ │ │ │ │ └── iar
│ │ │ │ │ │ ├── startup_stm32f10x_cl.s
│ │ │ │ │ │ ├── startup_stm32f10x_hd.s
│ │ │ │ │ │ ├── startup_stm32f10x_ld.s
│ │ │ │ │ │ └── startup_stm32f10x_md.s
│ │ │ │ │ ├── stm32f10x.h
│ │ │ │ │ ├── system_stm32f10x.c
│ │ │ │ │ └── system_stm32f10x.h
│ │ │ │ └── Documentation
│ │ │ │ └── CMSIS_Core.htm
│ │ │ └── License.doc
│ │ └── STM32F10x_StdPeriph_Driver
│ │ ├── inc
│ │ │ ├── misc.h
│ │ │ ├── stm32f10x_adc.h
│ │ │ ├── stm32f10x_bkp.h
│ │ │ ├── stm32f10x_can.h
│ │ │ ├── stm32f10x_crc.h
│ │ │ ├── stm32f10x_dac.h
│ │ │ ├── stm32f10x_dbgmcu.h
│ │ │ ├── stm32f10x_dma.h
│ │ │ ├── stm32f10x_exti.h
│ │ │ ├── stm32f10x_flash.h
│ │ │ ├── stm32f10x_fsmc.h
│ │ │ ├── stm32f10x_gpio.h
│ │ │ ├── stm32f10x_i2c.h
│ │ │ ├── stm32f10x_iwdg.h
│ │ │ ├── stm32f10x_pwr.h
│ │ │ ├── stm32f10x_rcc.h
│ │ │ ├── stm32f10x_rtc.h
│ │ │ ├── stm32f10x_sdio.h
│ │ │ ├── stm32f10x_spi.h
│ │ │ ├── stm32f10x_tim.h
│ │ │ ├── stm32f10x_usart.h
│ │ │ └── stm32f10x_wwdg.h
│ │ └── src
│ │ ├── misc.c
│ │ ├── stm32f10x_adc.c
│ │ ├── stm32f10x_bkp.c
│ │ ├── stm32f10x_can.c
│ │ ├── stm32f10x_crc.c
│ │ ├── stm32f10x_dac.c
│ │ ├── stm32f10x_dbgmcu.c
│ │ ├── stm32f10x_dma.c
│ │ ├── stm32f10x_exti.c
│ │ ├── stm32f10x_flash.c
│ │ ├── stm32f10x_fsmc.c
│ │ ├── stm32f10x_gpio.c
│ │ ├── stm32f10x_i2c.c
│ │ ├── stm32f10x_iwdg.c
│ │ ├── stm32f10x_pwr.c
│ │ ├── stm32f10x_rcc.c
│ │ ├── stm32f10x_rtc.c
│ │ ├── stm32f10x_sdio.c
│ │ ├── stm32f10x_spi.c
│ │ ├── stm32f10x_tim.c
│ │ ├── stm32f10x_usart.c
│ │ └── stm32f10x_wwdg.c
│ ├── SRC
│ │ ├── main.c
│ │ ├── stm32f10x_conf.h
│ │ ├── stm32f10x_it.c
│ │ └── stm32f10x_it.h
│ ├── core_cm3.crf
│ ├── core_cm3.d
│ ├── core_cm3.o
│ ├── iic_driver.crf
│ ├── iic_driver.d
│ ├── iic_driver.o
│ ├── lunzhou.Uv2.bak
│ ├── lunzhou.axf
│ ├── lunzhou.hex
│ ├── lunzhou.htm
│ ├── lunzhou.lnp
│ ├── lunzhou.map
│ ├── lunzhou.opt.bak
│ ├── lunzhou.plg
│ ├── lunzhou.sct
│ ├── lunzhou.tra
│ ├── lunzhou.uvopt
│ ├── lunzhou.uvproj
│ ├── lunzhou_Opt.Bak
│ ├── lunzhou_Target 1.dep
│ ├── lunzhou_Uv2.Bak
│ ├── lunzhou_sct.Bak
│ ├── lunzhou_uvopt.bak
│ ├── lunzhou_uvproj.bak
│ ├── main.crf
│ ├── main.d
│ ├── main.o
│ ├── misc.crf
│ ├── misc.d
│ ├── misc.o
│ ├── startup_stm32f10x_hd.d
│ ├── startup_stm32f10x_hd.lst
│ ├── startup_stm32f10x_hd.o
│ ├── stm32f10x_flash.crf
│ ├── stm32f10x_flash.d
│ ├── stm32f10x_flash.o
│ ├── stm32f10x_gpio.crf
│ ├── stm32f10x_gpio.d
│ ├── stm32f10x_gpio.o
│ ├── stm32f10x_it.crf
│ ├── stm32f10x_it.d
│ ├── stm32f10x_it.o
│ ├── stm32f10x_rcc.crf
│ ├── stm32f10x_rcc.d
│ ├── stm32f10x_rcc.o
│ ├── stm32f10x_tim.crf
│ ├── stm32f10x_tim.d
│ ├── stm32f10x_tim.o
│ ├── stm32f10x_usart.crf
│ ├── stm32f10x_usart.d
│ ├── stm32f10x_usart.o
│ ├── stm32f10x_wwdg.crf
│ ├── stm32f10x_wwdg.d
│ ├── stm32f10x_wwdg.o
│ ├── system_stm32f10x.crf
│ ├── system_stm32f10x.d
│ └── system_stm32f10x.o
├── 模块尺寸.jpg
└── 数据手册及参考文档
├── AN-MPU-30x0EVB-00_v2-0.pdf
├── PS-MPU-3000A.pdf
├── RM-MPU-3000A.pdf
└── eb_armat91_xxaxx_b%20rev%201.2.pdf
21 directories, 135 files

热门推荐

相关文章