Motion
Read accelerometer and gyroscope registers, then calculate pitch and roll.
An Arduino-based experiment that combines motion, temperature, and pressure readings into one observable serial data stream.
Read accelerometer and gyroscope registers, then calculate pitch and roll.
Collect temperature and pressure readings from the BMP180 sensor.
Apply correction values and print each result for testing and comparison.
Wire.requestFrom(MPU, 14, true);
AcX = Wire.read() << 8 | Wire.read();
GyX = Wire.read() << 8 | Wire.read();
pressure.getTemperature(T);
pressure.getPressure(P, T);
getAngle(AcX, AcY, AcZ);