Hardware Reference
In-Depth Information
Connecting an altimeter/pressure sensor to
Arduino
The final sensor that you'll learn about in this chapter is the altimeter/pressure sensor. An
altimeter measures the barometric pressure, and as this pressure decreases with rising elev-
ation, it can indicate elevation. This is particularly useful when you want to build a robot
that can fly. First, you'll need to select a device. One device that can provide this informa-
tion is the SainSmart BMP085 Module Digital Barometric Pressure Sensor, available at
many online retailers. It looks as follows:
It looks very similar to the digital compass, and just like the earlier two devices, it connects
via the I2C interface. You can even use the same libraries you just downloaded for the ac-
celerometer/gyro for I2C support.
The connections between Arduino and the device will be the same as the digital compass,
as demonstrated in the following table:
Arduino pin
Sensor pin
5V
5V
GND
GND
A5
SCL
A4
SDA
Search WWH ::




Custom Search