Experiment 2 - Barometric pressure sensor
To determine the Barometric pressure.
BMP180 barometric pressure sensor can be used to predict the weather, detect altitude, and measure vertical velocity.
This sensor is one of the low-cost solutions for sensing applications related to barometric pressure and temperature. The BMP180 can communicate directly with a microcontroller in the device through I2C or SPI as a variant. The applications for this sensor is navigation, GPS positioning as well as a tracker for hikers. We have enabled Qwiic connection using the channels.
* Excerpts from the code:
baseline = getPressure(); Serial.print("baseline pressure: "); Serial.print(baseline);
double a,P; P = getPressure(); // Get a new pressure reading: a = pressure.altitude(P,baseline); // Show the relative altitude difference between the new reading and the baseline reading char status; double T,P; status = pressure.startTemperature(); status = pressure.getTemperature(T); status = pressure.startPressure(); status = pressure.getPressure(P,T);
* Pin mapping and connection instructions:
|Sensything pin label||BMP180 Sensor|
|- Connect the Qwiic BMP180 directly into the sensything Qwiic-1 or Qwiic-2 port|