## Tutorial.BarometricPressureSensor History

September 03, 2015, at 10:54 AM by Simone Maiocchi -
Changed lines 1-6 from:
to:
Changed line 52 from:
to:
August 19, 2015, at 01:28 PM by Simone Maiocchi -
Changed line 37 from:

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 pressure in Pascals is the 19-bit result divide by 4.

to:

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 pressure in Pascal is the 19-bit result divide by 4.

August 19, 2015, at 01:00 PM by Simone Maiocchi -
Changed lines 47-48 from:
to:

Last revision 2015/08/19 by SM

August 19, 2015, at 12:54 PM by Simone Maiocchi -
Deleted line 15:
August 19, 2015, at 12:41 PM by Simone Maiocchi -
• Arduino or Genuino board
Changed lines 15-16 from:
• Arduino board
to:
• hook-up wires
August 19, 2015, at 12:39 PM by Simone Maiocchi -
Changed lines 34-36 from:

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.

to:

### Code

The code below 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 pressure in Pascals is the 19-bit result divide by 4.

August 19, 2015, at 12:31 PM by Simone Maiocchi -
Changed lines 1-4 from:

Examples > SPI LIbrary

### Using SPI to read a Barometric Pressure Sensor

to:
Changed line 39 from:
to:
Changed lines 43-46 from:

to:

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

to:

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:

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 * SPI

to:

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.

• Arduino board
Changed line 23 from:

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 -