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.
Step 1: What You Need?
1 x Arduino Ethernet Shield
1 x SCP1000 Pressure Sensor Breakout Board
Step 2: Build Your Circuit.
Your Barometric Pressure sensor will be attached to pins 6,7, and 11 – 13 of your Arduino / Ethernet shieldcombo, and powered via your device’s 3.3 volt output. Connect the DRDY (Data Ready) pin on your sensor to digital pin 6 on your combo, and the CSB pin (Chip Select) to digital pin 7. Your sensor’s MOSI (Master Out Slave In) pin should then be connected to digital pin 11, and it’s counterpart MISO (Master In Slave Out) to digital pin 12. Finally, connect the SCK pin, the SPI clock input on your sensor, to digital pin 13 on your device, and make sure that the two share a common ground.
After wiring your sensor, your shield should be connected to a network with an ethernet cable. You will need to change the network settings in the program to correspond to your network.
Dated : Thursday, August 04, 2016
Source : https://myrobotduino.blogspot.kr/2016/08/barometric-pressure-web-server.html
Author : Robot edu