Tutorial.BarometricPressureSensor History

Hide minor edits - Show changes to markup

February 11, 2013, at 11:16 AM by Roberto Guido - removed links to internal editorial site
Changed lines 5-6 from:

This example shows how to use the SPI (Serial Peripheral Interface) Communications Library to read data from a SCP1000 Barometric Pressure sensor. Please click here for more information on SPI.

to:

This example shows how to use the SPI (Serial Peripheral Interface) Communications Library to read data from a SCP1000 Barometric Pressure sensor. Please click here for more information on SPI.

November 16, 2011, at 04:38 AM by Scott Fitzgerald -
Changed line 35 from:
to:
September 23, 2010, at 10:58 PM by Christian Cerrito -
Changed line 40 from:
to:
August 17, 2010, at 10:18 PM by Christian Cerrito -
Changed lines 5-6 from:

This example shows how to use the SPI (Serial Peripheral Interface) Communications Library to read data from a SCP1000 Barometric Pressure sensor. Please click here? for more information on SPI.

to:

This example shows how to use the SPI (Serial Peripheral Interface) Communications Library to read data from a SCP1000 Barometric Pressure sensor. Please click here for more information on SPI.

August 17, 2010, at 10:18 PM by Christian Cerrito -
Changed lines 5-6 from:

This example shows how to use the SPI (Serial Peripheral Interface) Communications Library to read data from a SCP1000 Barometric Pressure sensor. Please * SPI

to:

This example shows how to use the SPI (Serial Peripheral Interface) Communications Library to read data from a SCP1000 Barometric Pressure sensor. Please click here? for more information on SPI.

August 17, 2010, at 10:17 PM by Christian Cerrito -
Changed lines 5-6 from:

This example shows how to use SPI (Serial Peripheral Interface) communications to read data from a SCP1000 Barometric Pressure sensor. For more information on SPI, please take a look at

to:

This example shows how to use the SPI (Serial Peripheral Interface) Communications Library to read data from a SCP1000 Barometric Pressure sensor. Please * SPI

August 17, 2010, at 10:12 PM by Christian Cerrito -
August 17, 2010, at 10:10 PM by Christian Cerrito -
Changed lines 5-6 from:

This example shows how to use SPI communications to read data from a SCP1000 Barometric Pressure sensor.

to:

This example shows how to use SPI (Serial Peripheral Interface) communications to read data from a SCP1000 Barometric Pressure sensor. For more information on SPI, please take a look at

August 15, 2010, at 03:44 PM by Tom Igoe -
Changed lines 5-6 from:

This example shows how to use SPI communications to read data from a SCP1000 Barometric Pressure sensor

to:

This example shows how to use SPI communications to read data from a SCP1000 Barometric Pressure sensor.

Added lines 10-11:
  • Arduino board
  • Breadboard or prototyping Board
Changed line 23 from:

Schematic

to:

Schematic

Changed lines 28-32 from:

Describe what's going on here

to:

The SCP1000 barometric pressure sensor can read both air presure and temperature and report them via the SPI connection. For details of the control registers, see the SCP1000 data sheet.

In the code below, the Arduino starts out by setting the SCP1000's configuration registers in the setup(). In the main loop,it sets the sensor to read in high resolution mode, meaning that it will return a 19-bit value for the pressure reading, and 16 bits for the temperature. The actual reading in degrees Celsius is the 16-bit result divided by 20.

Then it reads the temperature's two bytes. Once it's got the temperature, it reads the pressure in two parts. First it reads the highest three bits, then the lower 16 bits. It combines these two into one single long integer by bit shifting the high bits then using a bitwise OR to combine them with the lower 16 bits. The actual humidity in Pascals is the 19-bit result divide by 4.

Changed lines 40-42 from:
to:
August 04, 2010, at 11:44 PM by Tom Igoe -
Deleted line 18:
August 04, 2010, at 11:44 PM by Tom Igoe -
Changed lines 14-19 from:
to:

image developed using Fritzing. For more circuit examples, see the Fritzing project page

August 04, 2010, at 11:42 PM by Tom Igoe -
Changed line 14 from:
to:
Changed line 19 from:
to:
August 04, 2010, at 11:40 PM by Tom Igoe -
Added lines 1-30:

Share