Arduino Barometric Pressure Web Server




This example shows how to use SPI communications to read data from a SCP1000 Barometric Pressure sensor, and how to then post that data to the web by using your Arduino/Ethernet Shield combo as a simple web server.

Arduino Barometric Pressure Web Server




Using the Ethernet library, your device will be able to answer HTTP requests by responding with just enough HTML for a browser to display the temperature and barometric pressure values outputted by your sensor. After completing your circuit and uploading the example code below, simply navigate to your Ethernet shield’s IP address, in a browser, to see this information.

See the Barometric Pressure Sensor example for more on how the sensor works.

Schematic

Arduino Barometric Pressure Web Server Schematic

Code

/*
SCP1000 Barometric Pressure Sensor Display

Serves the output of a Barometric Pressure Sensor as a web page.
Uses the SPI library. For details on the sensor, see:
http://www.sparkfun.com/commerce/product_info.php?products_id=8161
http://www.vti.fi/en/support/obsolete_products/pressure_sensors/

This sketch adapted from Nathan Seidle's SCP1000 example for PIC:
http://www.sparkfun.com/datasheets/Sensors/SCP1000-Testing.zip

Circuit:
SCP1000 sensor attached to pins 6,7, and 11 - 13:
DRDY: pin 6
CSB: pin 7
MOSI: pin 11
MISO: pin 12
SCK: pin 13

created 31 July 2010
by Tom Igoe
*/

Major Components in Project

Hardware Required

  • SCP1000 Pressure Sensor Breakout Board
  • Arduino Ethernet Shield

For more detail: Arduino Barometric Pressure Web Server




Clip to Evernote

Leave a Comment

(Spamcheck Enabled)

Read previous post:
Arduino NES in a Cartridge
NES in a Cartridge using Arduino

Have your ever seen any of "Ben Hecks" portable console builds? Well if you haven't, he often uses these Chinese...

Close
Scroll to top