Skip to main content

Project Based Engineering Instrumentation High Level Coding and Microcontrollers

Chapter 23 Barometers

List 23.0.1. Parts List
  1. Laptop
  2. CPX/CPB or Arduino
  3. USB Cable
  4. LPS22 (Note that other barometers will work for this lab you will just have to change the code to accommodate the change in hardware)[34]
  5. Alligator Clips (x4)
  6. Bread Board
  7. Soldering iron
List 23.0.2. Learning Objectives
  1. Continue to understand the concept of soldering
  2. Reinforce the I2C protocol at a high level
  3. Learn the components of a Pressure and temperature Sensor (Barometer)
  4. Read Pressure data and plot
In this lab we’re going to use a pressure and temperature sensor (Barometer) to measure atmospheric pressure and temperature. Although SubsectionΒ 15.1.3 already discussed temperature sensors, this external device (LPS22) has a pressure sensor as well adding the ability to measure more atmospheric conditions. Assuming a standard atmosphere model it’s also possible to convert pressure to altitude.
Figure 23.0.3. Pressure Sensor (Barometer) without header pins soldered
The sensor above is the LPS22[34]. The first sensor on board is a pressure sensor which uses a pressure transducer (something that creates a voltage when pressure is applied). The second is a temperature sensor which is more than likely a thermistor. The two of these sensors put together (pressure, temperature) is called a Barometer. This can bed purchased on Adafruit for only $7 at the time of this writing. The interesting thing about this device is that you can actually purchase the LPS22 and the temperature sensor separately but this breakout board has both chips on board. The goal of this lab is not only to use this specific sensor but to understand Barometers and reinforce I2C protocol like has been discussed in previous chapters (ChapterΒ 22 and SubsectionΒ 15.1.4).