Différences entre versions de « BMP085-Utiliser-APIv2 »

De MCHobby - Wiki
Sauter à la navigation Sauter à la recherche
(Page créée avec « {{BMP085-NAV}} xx {{BMP085-TRAILER}} »)
 
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}}

Version du 17 février 2014 à 17:01

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 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.

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.

Restart the IDE

Now you can run this first example sketch


Source: Bosch BMP085 Breakout Board réalisé par LadyAda pour AdaFruit Industries

Créé par LadyAda pour AdaFruit Indrustries.

Traduit avec l'autorisation d'AdaFruit Industries - Translated with the permission from Adafruit Industries - www.adafruit.com

Toute référence, mention ou extrait de cette traduction doit être explicitement accompagné du texte suivant : «  Traduction par MCHobby (www.MCHobby.be) - Vente de kit et composants » avec un lien vers la source (donc cette page) et ce quelque soit le média utilisé.

L'utilisation commercial de la traduction (texte) et/ou réalisation, même partielle, pourrait être soumis à redevance. Dans tous les cas de figures, vous devez également obtenir l'accord du(des) détenteur initial des droits. Celui de MC Hobby s'arrêtant au travail de traduction proprement dit.