대기압 센서 BMP085
(Barometer Sensor -BMP085)
개요
- 본 제품은 보쉬사의 BMP085 대기압 센서를 기반으로 디자인된 모듈입니다.
- 높은 정교성을 가진 센서로 대기압과 온도를 측정하며, 300hPa에서 1100hPa까지 측정이 가능하며, 대기압은 고도에 따라 변하므로, 고도로 환산하면, -500m에서 9000미터까지 측정이 가능한 범위입니다.
- 측정 가능한 최대 분해능은 0.03hPa(0.25m)입니다.
- 센서는 3.3V 및 5V 시스템과 사용이 가능합니다.
특징
- Wide pressure range
- Arduino/Crowduino compatible interface (3.3V or 5V)
- I2C interface
- Fully calibrated
- Low power consumption: 5μA at 1 sample/sec. in standard mode
- Low noise:
- 0.06hPa(0.5m) in ultra-low power mode
- 0.03hPa(0.25m) in ultra-high resolution mode
- Possibility to lower to 0.1m(rms noise)
문서
- Demo code
- BMP085 Datasheet
- 아두이노와 VCC-5V, Gnd-Gnd, SCL-A5, SDA-A4 로 결선한 후 아래의 예제코드를 업로드합니다.
/* Barometer demo V1.0 * Get pressure, altitude, and temperature from the BMP085. * Serial.print it out at 9600 baud to serial monitor. * */ #include "Barometer.h" #include <Wire.h> float temperature; float pressure; float atm; float altitude; Barometer myBarometer; void setup(){ Serial.begin(9600); myBarometer.init(); } void loop() { temperature = myBarometer.bmp085GetTemperature(myBarometer.bmp085ReadUT()); //Get the temperature, bmp085ReadUT MUST be called first pressure = myBarometer.bmp085GetPressure(myBarometer.bmp085ReadUP());//Get the temperature altitude = myBarometer.calcAltitude(pressure); //Uncompensated caculation - in Meters atm = pressure / 101325; Serial.print("Temperature: "); Serial.print(temperature, 2); //display 2 decimal places Serial.println("deg C"); Serial.print("Pressure: "); Serial.print(pressure, 0); //whole number only. Serial.println(" Pa"); Serial.print("Ralated Atmosphere: "); Serial.println(atm, 4); //display 4 decimal places Serial.print("Altitude: "); Serial.print(altitude, 2); //display 2 decimal places Serial.println(" m"); Serial.println(); delay(1000); //wait a second and get values again. }
- 실행결과 화면입니다.