Embedded sensor prototype

Rocket Computer

An Arduino-based experiment that combines motion, temperature, and pressure readings into one observable serial data stream.

  • Arduino
  • MPU-6050
  • BMP180
  • I²C
Sensor stack

Several measurements, one controller.

MPU-6050Acceleration + rotation
BMP180Temperature + pressure
ArduinoCalibrate + calculate
Serial outputInspect the readings
What the code measures

Motion and atmosphere in the same loop.

01

Motion

Read accelerometer and gyroscope registers, then calculate pitch and roll.

02

Environment

Collect temperature and pressure readings from the BMP180 sensor.

03

Calibration

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);