【E1785】Arduino使用MPU6050源程序 附I2C库文件

2021-10-26 10:20:04      索炜达电子      973     

项目编号:E1785

文件大小:673K

源码说明:带中文注释

开发环境:C编译器

简要概述:

把i2c库放到 arduino IDE 库中

打开第二个文件就可以了

目录│文件列表:

 ├ i2cdevlib

 │  │ .gitignore

 │  │ README

 │  ├ Arduino

 │  │  ├ AD7746

 │  │  │  │ AD7746.cpp

 │  │  │  │ AD7746.h

 │  │  │  └ library.json

 │  │  ├ ADS1115

 │  │  │  │ ADS1115.cpp

 │  │  │  │ ADS1115.h

 │  │  │  │ library.json

 │  │  │  └ examples

 │  │  │     ├ ADS1115_differential

 │  │  │     │  └ ADS1115_differential.ino

 │  │  │     └ ADS1115_single

 │  │  │        └ ADS1115_single.ino

 │  │  ├ ADXL345

 │  │  │  │ ADXL345.cpp

 │  │  │  │ ADXL345.h

 │  │  │  │ library.json

 │  │  │  └ examples

 │  │  │     └ ADXL345_raw

 │  │  │        └ ADXL345_raw.ino

 │  │  ├ AK8963

 │  │  │  │ AK8963.cpp

 │  │  │  │ AK8963.h

 │  │  │  └ library.json

 │  │  ├ AK8975

 │  │  │  │ AK8975.cpp

 │  │  │  │ AK8975.h

 │  │  │  │ library.json

 │  │  │  └ examples

 │  │  │     ├ AK8975_MPUEVB_heading

 │  │  │     │  └ AK8975_MPUEVB_heading.ino

 │  │  │     ├ AK8975_MPUEVB_raw

 │  │  │     │  └ AK8975_MPUEVB_raw.ino

 │  │  │     └ AK8975_raw

 │  │  │        └ AK8975_raw.ino

 │  │  ├ BMA150

 │  │  │  │ BMA150.cpp

 │  │  │  │ BMA150.h

 │  │  │  │ library.json

 │  │  │  └ examples

 │  │  │     └ BMA150_raw

 │  │  │        └ BMA150_raw.ino

 │  │  ├ BMP085

 │  │  │  │ BMP085.cpp

 │  │  │  │ BMP085.h

 │  │  │  │ library.json

 │  │  │  └ examples

 │  │  │     └ BMP085_basic

 │  │  │        └ BMP085_basic.ino

 │  │  ├ DS1307

 │  │  │  │ DS1307.cpp

 │  │  │  │ DS1307.h

 │  │  │  │ library.json

 │  │  │  └ examples

 │  │  │     └ DS1307_tick

 │  │  │        └ DS1307_tick.ino

 │  │  ├ HMC5843

 │  │  │  │ HMC5843.cpp

 │  │  │  │ HMC5843.h

 │  │  │  │ library.json

 │  │  │  └ examples

 │  │  │     └ HMC5843_raw

 │  │  │        └ HMC5843_raw.ino

 │  │  ├ HMC5883L

 │  │  │  │ HMC5883L.cpp

 │  │  │  │ HMC5883L.h

 │  │  │  │ library.json

 │  │  │  └ examples

 │  │  │     └ HMC5883L_raw

 │  │  │        └ HMC5883L_raw.ino

 │  │  ├ HTU21D

 │  │  │  │ HTU21D.cpp

 │  │  │  │ HTU21D.h

 │  │  │  │ library.json

 │  │  │  └ examples

 │  │  │     └ HTU21D_simple

 │  │  │        └ HTU21D_simple.ino

 │  │  ├ I2Cdev

 │  │  │  │ I2Cdev.cpp

 │  │  │  │ I2Cdev.h

 │  │  │  │ keywords.txt

 │  │  │  └ library.json

 │  │  ├ IAQ2000

 │  │  │  │ IAQ2000.cpp

 │  │  │  │ IAQ2000.h

 │  │  │  │ keywords.txt

 │  │  │  │ library.json

 │  │  │  └ examples

 │  │  │     └ IAQ2000

 │  │  │        └ IAQ2000.ino

 │  │  ├ ITG3200

 │  │  │  │ ITG3200.cpp

 │  │  │  │ ITG3200.h

 │  │  │  │ library.json

 │  │  │  └ examples

 │  │  │     └ ITG3200_raw

 │  │  │        └ ITG3200_raw.ino

 │  │  ├ L3G4200D

 │  │  │  │ L3G4200D.cpp

 │  │  │  │ L3G4200D.h

 │  │  │  │ library.json

 │  │  │  └ examples

 │  │  │     └ L3G4200D_raw

 │  │  │        └ L3G4200D_raw.ino

 │  │  ├ L3GD20H

 │  │  │  │ L3GD20H.cpp

 │  │  │  │ L3GD20H.h

 │  │  │  └ examples

 │  │  │     └ L3GD20H_basic

 │  │  │        └ L3GD20H_basic.ino

 │  │  ├ LM73

 │  │  │  │ library.json

 │  │  │  │ LM73.cpp

 │  │  │  └ LM73.h

 │  │  ├ LSM303DLHC

 │  │  │  │ LSM303DLHC.cpp

 │  │  │  │ LSM303DLHC.h

 │  │  │  └ examples

 │  │  │     └ LSM303DLHC_test

 │  │  │        └ LSM303DLHC_test.ino

 │  │  ├ MPR121

 │  │  │  │ library.json

 │  │  │  │ MPR121.cpp

 │  │  │  └ MPR121.h

 │  │  ├ MPU6050

 │  │  │  │ helper_3dmath.h

 │  │  │  │ library.json

 │  │  │  │ MPU6050.cpp

 │  │  │  │ MPU6050.h

 │  │  │  │ MPU6050_6Axis_MotionApps20.h

 │  │  │  │ MPU6050_9Axis_MotionApps41.h

 │  │  │  └ examples

 │  │  │     ├ IMU_Zero

 │  │  │     │  └ IMU_Zero.ino

 │  │  │     ├ MPU6050_DMP6

 │  │  │     │  │ MPU6050_DMP6.ino

 │  │  │     │  └ Processing

 │  │  │     │     └ MPUTeapot

 │  │  │     │        └ MPUTeapot.pde

 │  │  │     ├ MPU6050_DMP6_ESPWiFi

 │  │  │     │  │ MPU6050_DMP6_ESPWiFi.ino

 │  │  │     │  └ Processing

 │  │  │     │     └ MPUOSCTeapot

 │  │  │     │        └ MPUOSCTeapot.pde

 │  │  │     ├ MPU6050_DMP6_Ethernet

 │  │  │     │  └ MPU6050_DMP6_Ethernet.ino

 │  │  │     └ MPU6050_raw

 │  │  │        └ MPU6050_raw.ino

 │  │  ├ MPU9150

 │  │  │  │ helper_3dmath.h

 │  │  │  │ library.json

 │  │  │  │ MPU9150.cpp

 │  │  │  │ MPU9150.h

 │  │  │  │ MPU9150_9Axis_MotionApps41.h

 │  │  │  └ examples

 │  │  │     └ MPU9150_raw

 │  │  │        └ MPU9150_raw.ino

 │  │  ├ MS5803

 │  │  │  │ keywords.txt

 │  │  │  │ MS5803.cpp

 │  │  │  │ MS5803.h

 │  │  │  └ examples

 │  │  │     └ test_MS5803

 │  │  │        └ test_MS5803.ino

 │  │  ├ SSD1308

 │  │  │  │ example.pde

 │  │  │  │ fixedWidthFont.h

 │  │  │  │ library.json

 │  │  │  │ SSD1308.cpp

 │  │  │  └ SSD1308.h

 │  │  ├ TCA6424A

 │  │  │  │ library.json

 │  │  │  │ TCA6424A.cpp

 │  │  │  └ TCA6424A.h

 │  │  └ _Stub

 │  │     │ _Stub.cpp

 │  │     └ _Stub.h

 │  ├ dsPIC30F

 │  │  │ README.md

 │  │  ├ I2Cdev

 │  │  │  │ I2Cdev.c

 │  │  │  │ I2Cdev.h

 │  │  │  └ I2CdevdsPic30F.X

 │  │  │     └ nbproject

 │  │  │        └ project.xml

 │  │  └ MPU6050

 │  │     │ MPU6050.c

 │  │     │ MPU6050.h

 │  │     └ Examples

 │  │        └ MPU6050_example.X

 │  │           │ I2Cdev.c

 │  │           │ I2Cdev.h

 │  │           │ Makefile

 │  │           │ MPU6050.c

 │  │           │ MPU6050.h

 │  │           │ MPU6050_example_main.c

 │  │           └ nbproject

 │  │              │ configurations.xml

 │  │              │ Makefile-default.mk

 │  │              │ Makefile-genesis.properties

 │  │              │ Makefile-impl.mk

 │  │              │ Makefile-local-default.mk

 │  │              │ Makefile-variables.mk

 │  │              │ Package-default.bash

 │  │              └ project.xml

 │  ├ EFM32

 │  │  └ I2Cdev

 │  │     │ I2Cdev.cpp

 │  │     └ I2Cdev.h

 │  ├ ESP32_ESP-IDF

 │  │  │ Makefile

 │  │  │ README.md

 │  │  │ sdkconfig

 │  │  │ sdkconfig.old

 │  │  ├ components

 │  │  │  ├ I2Cdev

 │  │  │  │  │ component.mk

 │  │  │  │  │ I2Cdev.cpp

 │  │  │  │  └ I2Cdev.h

 │  │  │  └ MPU6050

 │  │  │     │ component.mk

 │  │  │     │ helper_3dmath.h

 │  │  │     │ MPU6050.cpp

 │  │  │     │ MPU6050.h

 │  │  │     │ MPU6050_6Axis_MotionApps20.h

 │  │  │     └ MPU6050_9Axis_MotionApps41.h

 │  │  └ main

 │  │     │ component.mk

 │  │     │ example.cpp

 │  │     └ main.cpp

 │  ├ Jennic

 │  │  │ README.md

 │  │  ├ I2Cdev

 │  │  │  │ I2Cdev.c

 │  │  │  └ I2Cdev.h

 │  │  └ MPU6050

 │  │     │ MPU6050.c

 │  │     └ MPU6050.h

 │  ├ MSP430

 │  │  ├ AK8975

 │  │  │  │ AK8975.cpp

 │  │  │  │ AK8975.h

 │  │  │  └ library.json

 │  │  ├ I2Cdev

 │  │  │  │ ArduinoWrapper.h

 │  │  │  │ I2Cdev.cpp

 │  │  │  │ I2Cdev.h

 │  │  │  │ keywords.txt

 │  │  │  │ library.json

 │  │  │  │ msp430_i2c.c

 │  │  │  └ msp430_i2c.h

 │  │  └ MPU6050

 │  │     │ helper_3dmath.h

 │  │     │ library.json

 │  │     │ MPU6050.cpp

 │  │     │ MPU6050.h

 │  │     │ MPU6050_6Axis_MotionApps20.h

 │  │     └ MPU6050_9Axis_MotionApps41.h

 │  ├ nRF51

 │  │  └ I2CDev

 │  │     │ I2Cdev.cpp

 │  │     └ I2Cdev.h

 │  ├ PIC18

 │  │  │ README.md

 │  │  ├ I2Cdev

 │  │  │  │ I2Cdev.c

 │  │  │  └ I2Cdev.h

 │  │  └ MPU6050

 │  │     │ MPU6050.c

 │  │     │ MPU6050.h

 │  │     └ Examples

 │  │        └ MPU6050_raw.X

 │  │           │ funclist

 │  │           │ l.obj

 │  │           │ main.c

 │  │           │ Makefile

 │  │           └ nbproject

 │  │              │ configurations.xml

 │  │              │ Makefile-default.mk

 │  │              │ Makefile-genesis.properties

 │  │              │ Makefile-impl.mk

 │  │              │ Makefile-local-default.mk

 │  │              │ Makefile-variables.mk

 │  │              │ Package-default.bash

 │  │              │ project.properties

 │  │              └ project.xml

 │  ├ RaspberryPi_bcm2835

 │  │  ├ ADXL345

 │  │  │  └ examples

 │  │  │     └ ADXL345_example_1.cpp

 │  │  ├ BMP085

 │  │  │  └ examples

 │  │  │     └ BMP085_basic.cpp

 │  │  ├ HMC5883L

 │  │  │  └ examples

 │  │  │     └ HMC5883L_example_1.cpp

 │  │  ├ I2Cdev

 │  │  │  │ I2Cdev.cpp

 │  │  │  └ I2Cdev.h

 │  │  └ MPU6050

 │  │     └ examples

 │  │        └ MPU6050_example_1.cpp

 │  └ STM32

 │     │ I2Cdev.c

 │     │ I2Cdev.h

 │     │ README.md

 │     ├ HMC5883

 │     │  │ HMC5883L.c

 │     │  └ HMC5883L.h

 │     └ MPU6050

 │        │ MPU6050.c

 │        └ MPU6050.h

 └ MPU6050_Kalman

    │ MPU6050_Kalman.ino

    └ README.md

TAGArduino
  • 14 次
  • 1 分