![Seeed Grove - Barometer Скачать руководство пользователя страница 9](http://html.mh-extra.com/html/seeed/grove-barometer/grove-barometer_manual_1232929009.webp)
6
5.
Usage
5.1
Barometric condition is one of the criteria used to predict coming change in weather and deduce altitude
above sea level. Here is a demo to show you how to read the barometric data from this Grove - Barometer
Sensor.
1.
Connect it to IIC port of Seeeduino or Grove - Base Shield via a Grove cable. And connect Arduino to PC
via a USB cable.
2.
Download the library Grove_Barometer_HP20x;Unzip it into the libraries file of Arduino IDE by the
path: ..\arduino-1.0.1\libraries.
3.
Create a new Arduino sketch and paste the codes below to it or open the code directly by the path:
File > Example >Barometer_Sensor>Barometer_Sensor.
/*
* Demo name : HP20x_dev demo
* Usage : I2C PRECISION BAROMETER AND ALTIMETER [HP206C hopeRF]
* Author : Oliver Wang from Seeed Studio
* Version : V0.1
* Change log : Add kalman filter 2014/04/04
*/
#include <HP20x_dev.h>