Arduino Barometric Pressure Web Server

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

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

Read more: Arduino Barometric Pressure Web Server

Leave a Comment

Your email address will not be published. Required fields are marked *