SCP1000 Pressure Sensor
Note
This part has been moved to the components section of the website. http://developer.mbed.org/components/SCP1000-Pressure-Sensor/
The SCP1000 is a MEMs barometric pressure sensor in a surface mount package. It outputs absolute pressure at 17 bit resolution. The small package also includes a temperature sensor. The data is internally compensated and the range of the sensor is 30kPa...120kPa and -20C...70C.
The sensor is avaliable for either SPI (SPC1000-D01) or I2C (SCP1000-D11) communication. However, the library on this page is for the SPI version.
Avaliable as a
Hello World¶
SCP1000-D01 | mbed |
---|---|
CSB | p8 |
MISO | p6 |
MOSI | p5 |
SCK | p7 |
Library¶
This library for the SCP1000-D01 uses the high resolution mode with a 4 wire connection.
Import library
Public Member Functions |
|
SCP1000 (PinName mosi, PinName miso, PinName sclk, PinName cs) | |
Constructor.
|
|
unsigned long | readPressure () |
Read the pressure.
|
|
float | readTemperature () |
Read the temperature.
|