Modifications

Sauter à la navigation Sauter à la recherche
1 409 octets ajoutés ,  17 février 2014 à 17:01
aucun résumé de modification
Ligne 1 : Ligne 1 :  
{{BMP085-NAV}}
 
{{BMP085-NAV}}
   −
xx
+
== Utiliser l'API v2 ==
 +
This page is based on the new v2 of the BMP085 driver, which uses Adafruit's new Unified Sensor Driver. The driver provides better support for altitude calculations, and makes it easy to switch between the BMP085 and any other supported pressure sensor in your projects.
 +
 
 +
If you haven't already done so, you'll need to install the [https://github.com/adafruit/Adafruit_Sensor Adafruit_Sensor library] on your system as well, since Adafruit_BMP085 relies on this library to generate the sensor data in a universal manner.
 +
 
 +
== Utiliser le BMP085/BMP180 ==
 +
 
 +
To use this sensor and calculate the altitude and barometric pressure, there's a lot of very hairy and unpleasant math. You can check out the math in the datasheet but really, its not intuitive or educational - its just how the sensor works. So we took care of all the icky math and wrapped it up into a nice Arduino library.
 +
 
 +
[https://github.com/adafruit/Adafruit_BMP085_Unified You can find the Arduino library repository on github] To install it, click this button to download the compressed ZIP file then install it. This guide will help you with the install process if you have never installed an Arduino library.
 +
 
 +
* [https://github.com/adafruit/Adafruit_BMP085_Unified/archive/master.zip Télécharger la bibliothèque Adafruit_BMP085 pour Arduino ('''API v2''')]
 +
 
 +
Restart the IDE
 +
 
 +
Now you can run this first example sketch
    
{{BMP085-TRAILER}}
 
{{BMP085-TRAILER}}
29 922

modifications

Menu de navigation