## Tutorial.BarometricPressureSensor History

September 03, 2015, at 10:54 AM by Simone Maiocchi -
Changed lines 1-6 from:
[[Tutorial.HomePage | Tutorials]] &gt; [[Tutorial.Examples | Examples]] &gt; SPI &gt; BarometricPressureSensor
(:divend:)

(:*toc:)
to:
(:html:)
<div class="breadcrumb columns large-10 medium-10">
<p>
<a class="wikilink" href="/en/Tutorial/HomePage">Tutorials </a>
> <a class="wikilink" href="/en/Tutorial/LibraryExamples"> Examples from Libraries </a> > SPI > BarometricPressureSensor
</p>
</div>
</div>
(:htmlend:)

Changed line 52 from:
* [[Tutorial/SPIDigitalPot]] - Controlling a Digital Potentiometer Using SPI.
to:
* [[Tutorial/DigitalPotControl]] - Controlling a Digital Potentiometer Using SPI.
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
* Breadboard or prototyping 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:
[[Tutorial.HomePage | Tutorials]] &gt; [[Tutorial.Examples | Examples]] &gt; SPI &gt; BarometricPressureSensor
(:divend:)

(:*toc:)

!!Using SPI to read a Barometric Pressure Sensor
Changed line 39 from:
(:source http://arduino.cc/en/pub/code/master/libraries/SPI/examples/BarometricPressureSensor/BarometricPressureSensor.ino lang=arduino tabwidth=4:)
to:
(:source https://raw.githubusercontent.com/arduino/Arduino/master/hardware/arduino/avr/libraries/SPI/examples/BarometricPressureSensor/BarometricPressureSensor.ino lang=arduino tabwidth=4:)
Changed lines 43-46 from:
* [[Reference/SPI | Arduino SPI LIbrary]]
* [[Tutorial/SPIDigitalPot]]
to:
* [[Reference/SPI | Arduino SPI LIbrary]] - Your reference for the SPI library.
* [[Tutorial/SPIDigitalPot]] - Controlling a Digital Potentiometer Using SPI.
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 [[http://dev.arduino.cc/wiki/uno/Reference/SPI | 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 [[Reference/SPI |click here]] for more information on SPI.
November 16, 2011, at 04:38 AM by Scott Fitzgerald -
Changed line 35 from:
(:source http://arduino.cc/en/pub/code/master/libraries/SPI/examples/BarometricPressureSensor/BarometricPressureSensor.pde lang=arduino tabwidth=4:)
to:
(:source http://arduino.cc/en/pub/code/master/libraries/SPI/examples/BarometricPressureSensor/BarometricPressureSensor.ino lang=arduino tabwidth=4:)
September 23, 2010, at 10:58 PM by Christian Cerrito -
Changed line 40 from:
* [[Reference/SPI]]
to:
* [[Reference/SPI | Arduino SPI LIbrary]]
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 [[Reference/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 [[http://dev.arduino.cc/wiki/uno/Reference/SPI | 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 * [[Reference/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 [[Reference/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 * [[Reference/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
* 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 [[http://www.sparkfun.com/datasheets/Components/SCP1000-D01.pdf|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:
* [[Reference/SPI]]
* [[Tutorial/SPIDigitalPot]]
August 04, 2010, at 11:44 PM by Tom Igoe -
Deleted line 18:
%height=300px%[[Attach:Attach:BaromettricPressureSensor_bb.png | Attach:BaromettricPressureSensor_bb.png]]
August 04, 2010, at 11:44 PM by Tom Igoe -
Changed lines 14-19 from:
%height=300px%Attach:BaromettricPressureSensor_bb.png
to:

%height=300px%[[Attach:BaromettricPressureSensor_bb.png | Attach:BaromettricPressureSensor_bb.png]]

[-image developed using [[http://www.fritzing.org |Fritzing]]. For more circuit examples, see the [[http://fritzing.org/projects/|Fritzing project page]] -]

%height=300px%[[Attach:Attach:BaromettricPressureSensor_bb.png | Attach:BaromettricPressureSensor_bb.png]]
August 04, 2010, at 11:42 PM by Tom Igoe -
Changed line 14 from:
Attach:BaromettricPressureSensor_bb.png
to:
%height=300px%Attach:BaromettricPressureSensor_bb.png
Changed line 19 from:
Attach:BaromettricPressureSensor_sch.png
to:
%height=300px%Attach:BaromettricPressureSensor_sch.png
August 04, 2010, at 11:40 PM by Tom Igoe -
''Examples > SPI LIbrary''

!!!Using SPI to read a Barometric Pressure Sensor

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

(:div class=BOM :)
!!!Hardware Required
* SCP1000 Pressure Sensor Breakout Board
(:divend:)

!!!Circuit
(:div class=circuit :)
Attach:BaromettricPressureSensor_bb.png
(:divend:)

!!!Schematic
(:div class=circuit :)
Attach:BaromettricPressureSensor_sch.png
(:divend:)

Describe what's going on here

(:div class=code :)
(:source http://arduino.cc/en/pub/code/master/libraries/SPI/examples/BarometricPressureSensor/BarometricPressureSensor.pde lang=arduino tabwidth=4:)
(:divend:)