obniz Parts Library

DPS310

GitHub
DPS310
Usable Devices :
obniz_board
Found at :

Pressure Sensor - DPS310

DPS310 Shield 2Go

wired(obniz, {sda, scl, gnd})

Connect obniz Board and DPS310
It is necessary to devide the voltage so that it does not exceed the current specification.
Wiring diagram, as specified below:

//JavaScript example
obniz.setVccGnd(11, 9, '5v'); //vcc:11, gnd:9
var sensor = obniz.wired("DPS310", { sda:0, scl:1, gnd:2 });

[await] initWait();

Initialize DPS310.

//JavaScript example
var sensor = obniz.wired("DPS310", { sda:0, scl:1, gnd:2 });
await sensor.initWait(); 

[await] measurePressureOnceWait();

Get pressure value once.

//JavaScript example
var sensor = obniz.wired("DPS310", { sda:0, scl:1, gnd:2 });
await sensor.initWait(); 
var data = await sensor.measurePressureOnceWait();
console.log(data);

Supported from: obnizOS 3.5.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