Arduino Pressure Shield acts as Arduino Shield via 1Sheeld

Buy 1Sheeld
1Sheeld pressure sensor shield

Get pressure values from the pressure sensor on your smartphone to use it in your sketch.

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.

unsigned long getValue(void)

Get sensed pressure values from the pressure sensor.

 

SYNTAX
PressureSensor.getValue();

 

RETURNS
Returns an unsinged long holding the value of proximity.

 

PARAMETERS
None.

 

USAGE
unsigned long value = PressureSensor.getValue();

 

void setOnValueChange(void(*userFunction)(unsigned long))

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.

 

SYNTAX
PressureSensor.setOnValueChange(&userFunctionName);

 

RETURNS
None.

 

PARAMETERS
&userFunctionName: takes the physical address of the userFunction in the memory and jump to it once called to execute it’s functionality.

 

USAGE
PressureSensor.setOnButtonChange(&myFunction);
/* 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. */
    Terminal.println(pressureValue);
}