Skip to content

simple raspberry pi program in C to test the mpu6050

Notifications You must be signed in to change notification settings

modong/mpu6050TestInC

 
 

Repository files navigation

mpu6050TestInC

simple raspberry pi program in C to test the mpu6050

just do gcc -lm -o AccTest AccTest.c mpu6050.c I2CWrapper.c

Python Version

  • MPU6050.py              Interface class for the MPU6050.
  • VibrationTest.py         Application to detect peak in acceleration.
  • GetFFTmpu6050.py   FFT analysis using the build-in fifo buffer.

C++ Version. GPU FFT calculating all axis and the absolute vector in parallel.

  • I2CWrapper.cpp        Interface to communicate with the I2C protocol.
  • I2CWrapper.h            I2CWrapper class declaration.
  • MPU6050.cpp           MPU6050 class interface for the MPU6050.
  • MPU6050.h               MPU6050 class declaration.
  • myGpuFFT_lib.c        My own static library to encapsulate the GPU FFT.
  • myGpuFFT_lib.h        header declaration.

   To compile just do ,
   cd cpp
   make clean; make all

About

simple raspberry pi program in C to test the mpu6050

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 45.9%
  • Python 27.5%
  • C++ 23.7%
  • Makefile 2.9%