a1rb4Ck / mpu6050TestInC

simple raspberry pi program in C to test the mpu6050

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:C 45.2%Language:Python 28.3%Language:C++ 23.5%Language:Makefile 3.0%