Get pressure values from the pressure sensor on your smartphone to use it in your sketch.
Use it along with temperature sensor and create an environment monitoring system. Learn more from the example page.
This shield is one of the sensor shields. Sensor shields allows you to tap into your smartphone’s sensors and use in prototyping with Arduino, you can get information from the surrounding environment and use it to trigger a certain action. Learn more from the sensor shields tutorial.
Pressure sensors measures the ambient air pressure in hpa or mbar.Pressure sensor Library allows arduino to get measured pressure values from the smartphone.
Adding #define CUSTOM_SETTINGS along with #define INCLUDE_PRESSURE_SENSOR_SHIELD is a key that will let you unlock the Pressure shield only amongst all shields and prevent 1Sheeld library from eating your memory specially for UNO board.
Note: Range is from 950->1050 hpa for Samsung galaxy S3, note that this range differs from a device to another.
Get sensed pressure values from the pressure sensor from smartphone.
unsinged long value of data.
unsigned long value = PressureSensor.getValue();
Sets a certain individual function written by the user in the sketch to be called and runs its functionality once a new value of pressure is sensed by the pressure sensor.
&userFunctionName: takes the physical address of the userFunction in the memory and jump to it once called to execute it’s functionality.
/* myFunction exists under the loop function. */
/* This function will be invoked each time a new value is sensed by the pressure sensor. */
void myFunction (unsigned long pressureValue)
/*Print out the pressure values on the Terminal of the application. */