obniz Parts Library

Grove_PressureSensor

GitHub
Grove_PressureSensor
Usable Devices :
obniz_board
m5stickc
Found at :

Grove_PressureSensor

Pressure sensor that can be used with Grove connectors.
Returns the pressure acquired by the sensor between 0 and voltage.

wired(obniz, {[output, vcc, gnd, grove]});

Connects to the obniz device.
The yellow, red, and black lines correspond to OUTPUT, VCC, and GND, respectively.

name type required default description
vcc number(obniz Board io) no   Power Supply
gnd number(obniz Board io) no   Power Supply
output number(obniz Board io) no   output pin
grove object no   grove interface object if a device has
// Javascript Example
let sensor = obniz.wired("Grove_PressureSensor", {grove: obniz.grove0});

onchange = function(value){}

The callback function is called when there is a change in the value of the pressure sensor.

// Javascript Example
let sensor = obniz.wired("Grove_PressureSensor", {grove: obniz.grove0});
sensor.onchange = function(value){
  console.log(value)
};

[await]getWait();

Measure the value of the pressure sensor only once.

// Javascript Example
let sensor = obniz.wired("Grove_PressureSensor", {grove: obniz.grove0});
let value = await sensor.getWait();
console.log(value);

Supported from: obniz.js 3.7.0

You will Get in Few Days

Circuit for Starter “obniz Board” is available on Amazon and other online stores.
You can get it at below

Our products and resellers

Forum

Visit our developer’s forum to discuss and discover technologies.

Forum

Contact

Feel free to contact out support and technical team.

Contact us