linux 串口读取陀螺仪,stm32读取陀螺仪MPU6050发送数据到串口
【實例簡介】
IAR環(huán)境下,stm32讀取MPU6050數(shù)據(jù),發(fā)送到串口。
【實例截圖】
【核心代碼】
6b42b05e-a094-444f-b033-eda513b6cc49
└── tly01
├── Debug
│?? ├── Exe
│?? │?? └── test.out
│?? └── Obj
│?? ├── analog_i2c.o
│?? ├── core_cm3.o
│?? ├── delay.o
│?? ├── LCD1602.o
│?? ├── main.o
│?? ├── misc.o
│?? ├── startup_stm32f10x_hd.o
│?? ├── stm32f10x_flash.o
│?? ├── stm32f10x_gpio.o
│?? ├── stm32f10x_it.o
│?? ├── stm32f10x_rcc.o
│?? ├── stm32f10x_usart.o
│?? ├── stm32f10x_wwdg.o
│?? ├── sys_config.o
│?? ├── system_stm32f10x.o
│?? ├── test.pbd
│?? └── usart.o
├── Libraries_V3.30
│?? └── Libraries
│?? ├── CMSIS
│?? │?? ├── CM3
│?? │?? │?? ├── CoreSupport
│?? │?? │?? │?? ├── core_cm3.c
│?? │?? │?? │?? └── core_cm3.h
│?? │?? │?? └── DeviceSupport
│?? │?? │?? └── ST
│?? │?? │?? ├── STM32F10x
│?? │?? │?? │?? ├── Regtarge.c
│?? │?? │?? │?? ├── Release_Notes.html
│?? │?? │?? │?? ├── startup
│?? │?? │?? │?? │?? ├── arm
│?? │?? │?? │?? │?? │?? ├── startup_stm32f10x_cl.s
│?? │?? │?? │?? │?? │?? ├── startup_stm32f10x_hd.s
│?? │?? │?? │?? │?? │?? ├── startup_stm32f10x_hd_vl.s
│?? │?? │?? │?? │?? │?? ├── startup_stm32f10x_ld.s
│?? │?? │?? │?? │?? │?? ├── startup_stm32f10x_ld_vl.s
│?? │?? │?? │?? │?? │?? ├── startup_stm32f10x_md.s
│?? │?? │?? │?? │?? │?? ├── startup_stm32f10x_md_vl.s
│?? │?? │?? │?? │?? │?? └── startup_stm32f10x_xl.s
│?? │?? │?? │?? │?? ├── gcc_ride7
│?? │?? │?? │?? │?? │?? ├── startup_stm32f10x_cl.s
│?? │?? │?? │?? │?? │?? ├── startup_stm32f10x_hd.s
│?? │?? │?? │?? │?? │?? ├── startup_stm32f10x_hd_vl.s
│?? │?? │?? │?? │?? │?? ├── startup_stm32f10x_ld.s
│?? │?? │?? │?? │?? │?? ├── startup_stm32f10x_ld_vl.s
│?? │?? │?? │?? │?? │?? ├── startup_stm32f10x_md.s
│?? │?? │?? │?? │?? │?? ├── startup_stm32f10x_md_vl.s
│?? │?? │?? │?? │?? │?? └── startup_stm32f10x_xl.s
│?? │?? │?? │?? │?? ├── iar
│?? │?? │?? │?? │?? │?? ├── startup_stm32f10x_cl.s
│?? │?? │?? │?? │?? │?? ├── startup_stm32f10x_hd.s
│?? │?? │?? │?? │?? │?? ├── startup_stm32f10x_hd_vl.s
│?? │?? │?? │?? │?? │?? ├── startup_stm32f10x_ld.s
│?? │?? │?? │?? │?? │?? ├── startup_stm32f10x_ld_vl.s
│?? │?? │?? │?? │?? │?? ├── startup_stm32f10x_md.s
│?? │?? │?? │?? │?? │?? ├── startup_stm32f10x_md_vl.s
│?? │?? │?? │?? │?? │?? └── startup_stm32f10x_xl.s
│?? │?? │?? │?? │?? └── TrueSTUDIO
│?? │?? │?? │?? │?? ├── startup_stm32f10x_cl.s
│?? │?? │?? │?? │?? ├── startup_stm32f10x_hd.s
│?? │?? │?? │?? │?? ├── startup_stm32f10x_hd_vl.s
│?? │?? │?? │?? │?? ├── startup_stm32f10x_ld.s
│?? │?? │?? │?? │?? ├── startup_stm32f10x_ld_vl.s
│?? │?? │?? │?? │?? ├── startup_stm32f10x_md.s
│?? │?? │?? │?? │?? ├── startup_stm32f10x_md_vl.s
│?? │?? │?? │?? │?? └── startup_stm32f10x_xl.s
│?? │?? │?? │?? ├── stm32f10x.h
│?? │?? │?? │?? ├── system_stm32f10x.c
│?? │?? │?? │?? └── system_stm32f10x.h
│?? │?? │?? └── STM32L1xx
│?? │?? │?? ├── Release_Notes.html
│?? │?? │?? ├── startup
│?? │?? │?? │?? ├── arm
│?? │?? │?? │?? │?? └── startup_stm32l1xx_md.s
│?? │?? │?? │?? ├── gcc_ride7
│?? │?? │?? │?? │?? └── startup_stm32l1xx_md.s
│?? │?? │?? │?? ├── iar
│?? │?? │?? │?? │?? └── startup_stm32l1xx_md.s
│?? │?? │?? │?? └── TrueSTUDIO
│?? │?? │?? │?? └── startup_stm32l1xx_md.s
│?? │?? │?? ├── stm32l1xx.h
│?? │?? │?? ├── system_stm32l1xx.c
│?? │?? │?? └── system_stm32l1xx.h
│?? │?? ├── CMSIS changes.htm
│?? │?? ├── CMSIS debug support.htm
│?? │?? ├── Documentation
│?? │?? │?? └── CMSIS_Core.htm
│?? │?? └── License.doc
│?? ├── STM32F10x_StdPeriph_Driver
│?? │?? ├── inc
│?? │?? │?? ├── misc.h
│?? │?? │?? ├── stm32f10x_adc.h
│?? │?? │?? ├── stm32f10x_bkp.h
│?? │?? │?? ├── stm32f10x_can.h
│?? │?? │?? ├── stm32f10x_cec.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
│?? │?? ├── Release_Notes.html
│?? │?? └── src
│?? │?? ├── misc.c
│?? │?? ├── stm32f10x_adc.c
│?? │?? ├── stm32f10x_bkp.c
│?? │?? ├── stm32f10x_can.c
│?? │?? ├── stm32f10x_cec.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
│?? ├── STM32L1xx_StdPeriph_Driver
│?? │?? ├── inc
│?? │?? │?? ├── misc.h
│?? │?? │?? ├── stm32l1xx_adc.h
│?? │?? │?? ├── stm32l1xx_comp.h
│?? │?? │?? ├── stm32l1xx_crc.h
│?? │?? │?? ├── stm32l1xx_dac.h
│?? │?? │?? ├── stm32l1xx_dbgmcu.h
│?? │?? │?? ├── stm32l1xx_dma.h
│?? │?? │?? ├── stm32l1xx_exti.h
│?? │?? │?? ├── stm32l1xx_flash.h
│?? │?? │?? ├── stm32l1xx_gpio.h
│?? │?? │?? ├── stm32l1xx_i2c.h
│?? │?? │?? ├── stm32l1xx_iwdg.h
│?? │?? │?? ├── stm32l1xx_lcd.h
│?? │?? │?? ├── stm32l1xx_pwr.h
│?? │?? │?? ├── stm32l1xx_rcc.h
│?? │?? │?? ├── stm32l1xx_rtc.h
│?? │?? │?? ├── stm32l1xx_spi.h
│?? │?? │?? ├── stm32l1xx_syscfg.h
│?? │?? │?? ├── stm32l1xx_tim.h
│?? │?? │?? ├── stm32l1xx_usart.h
│?? │?? │?? └── stm32l1xx_wwdg.h
│?? │?? ├── Release_Notes.html
│?? │?? └── src
│?? │?? ├── misc.c
│?? │?? ├── stm32l1xx_adc.c
│?? │?? ├── stm32l1xx_comp.c
│?? │?? ├── stm32l1xx_crc.c
│?? │?? ├── stm32l1xx_dac.c
│?? │?? ├── stm32l1xx_dbgmcu.c
│?? │?? ├── stm32l1xx_dma.c
│?? │?? ├── stm32l1xx_exti.c
│?? │?? ├── stm32l1xx_flash.c
│?? │?? ├── stm32l1xx_flash_ramfunc.c
│?? │?? ├── stm32l1xx_gpio.c
│?? │?? ├── stm32l1xx_i2c.c
│?? │?? ├── stm32l1xx_iwdg.c
│?? │?? ├── stm32l1xx_lcd.c
│?? │?? ├── stm32l1xx_pwr.c
│?? │?? ├── stm32l1xx_rcc.c
│?? │?? ├── stm32l1xx_rtc.c
│?? │?? ├── stm32l1xx_spi.c
│?? │?? ├── stm32l1xx_syscfg.c
│?? │?? ├── stm32l1xx_tim.c
│?? │?? ├── stm32l1xx_usart.c
│?? │?? └── stm32l1xx_wwdg.c
│?? └── STM32_USB-FS-Device_Driver
│?? ├── inc
│?? │?? ├── otgd_fs_cal.h
│?? │?? ├── otgd_fs_dev.h
│?? │?? ├── otgd_fs_int.h
│?? │?? ├── otgd_fs_pcd.h
│?? │?? ├── otgd_fs_regs.h
│?? │?? ├── usb_core.h
│?? │?? ├── usb_def.h
│?? │?? ├── usb_init.h
│?? │?? ├── usb_int.h
│?? │?? ├── usb_lib.h
│?? │?? ├── usb_mem.h
│?? │?? ├── usb_regs.h
│?? │?? ├── usb_sil.h
│?? │?? └── usb_type.h
│?? ├── Release_Notes.html
│?? └── src
│?? ├── otgd_fs_cal.c
│?? ├── otgd_fs_dev.c
│?? ├── otgd_fs_int.c
│?? ├── otgd_fs_pcd.c
│?? ├── usb_core.c
│?? ├── usb_init.c
│?? ├── usb_int.c
│?? ├── usb_mem.c
│?? ├── usb_regs.c
│?? └── usb_sil.c
├── settings
│?? ├── test.cspy.bat
│?? ├── test.dbgdt
│?? ├── test_Debug.jlink
│?? ├── test.dni
│?? └── test.wsdt
├── src
│?? ├── analog_i2c.c
│?? ├── analog_i2c.h
│?? ├── delay.c
│?? ├── delay.h
│?? ├── LCD1602.c
│?? ├── LCD1602.h
│?? ├── main.c
│?? ├── stm32f10x_conf.h
│?? ├── stm32f10x_it.c
│?? ├── stm32f10x_it.h
│?? ├── sys_config.c
│?? ├── sys_config.h
│?? ├── usart.c
│?? └── usart.h
├── test.dep
├── test.ewd
├── test.ewp
└── test.eww
35 directories, 208 files
總結
以上是生活随笔為你收集整理的linux 串口读取陀螺仪,stm32读取陀螺仪MPU6050发送数据到串口的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Java技术回顾之JNDI--JNDI
- 下一篇: Decompose Conditiona