Hi,
i want to use BMP085 sensor on arduino uno.
I have download library here : GitHub - adafruit/Adafruit-BMP085-Library: A powerful but easy to use BMP085/BMP180 Arduino library
I create a directory "Adafruit_BMP085" and put the 3 files : Adafruit_BMP085.cpp Adafruit_BMP085.h et readme.txt
I take the example :
#include <Wire.h>
#include <Adafruit_BMP085.h>
/***************************************************
This is an example for the BMP085 Barometric Pressure & Temp Sensor
Designed specifically to work with the Adafruit BMP085 Breakout
----> BMP085 Barometric Pressure/Temperature/Altitude Sensor- 5V ready : ID 391 : Adafruit Industries, Unique & fun DIY electronics and kits
These displays use I2C to communicate, 2 pins are required to
interface
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!
Written by Limor Fried/Ladyada for Adafruit Industries.
BSD license, all text above must be included in any redistribution
****************************************************/
// Connect VCC of the BMP085 sensor to 3.3V (NOT 5.0V!)
// Connect GND to Ground
// Connect SCL to i2c clock - on '168/'328 Arduino Uno/Duemilanove/etc thats Analog 5
// Connect SDA to i2c data - on '168/'328 Arduino Uno/Duemilanove/etc thats Analog 4
// EOC is not used, it signifies an end of conversion
// XCLR is a reset pin, also not used here
Adafruit_BMP085 bmp;
void setup() {
Serial.begin(9600);
if (!bmp.begin()) {
Serial.println("Could not find a valid BMP085 sensor, check wiring!");
while (1) {}
}
}
void loop() {
Serial.print("Temperature = ");
Serial.print(bmp.readTemperature());
Serial.println(" *C");
Serial.print("Pressure = ");
Serial.print(bmp.readPressure());
Serial.println(" Pa");
// Calculate altitude assuming 'standard' barometric
// pressure of 1013.25 millibar = 101325 Pascal
Serial.print("Altitude = ");
Serial.print(bmp.readAltitude());
Serial.println(" meters");
Serial.print("Pressure at sealevel (calculated) = ");
Serial.print(bmp.readSealevelPressure());
Serial.println(" Pa");
// you can get a more precise measurement of altitude
// if you know the current sea level pressure which will
// vary with weather and such. If it is 1015 millibars
// that is equal to 101500 Pascals.
Serial.print("Real altitude = ");
Serial.print(bmp.readAltitude(101500));
Serial.println(" meters");
Serial.println();
delay(500);
}
and i have the error :
In file included from sketch_BM085_01.ino:2:
C:\Program Files (x86)\Arduino\libraries\Adafruit_BMP085/Adafruit_BMP085.h:1: error: stray '\357' in program
C:\Program Files (x86)\Arduino\libraries\Adafruit_BMP085/Adafruit_BMP085.h:1: error: stray '\273' in program
C:\Program Files (x86)\Arduino\libraries\Adafruit_BMP085/Adafruit_BMP085.h:1: error: stray '\277' in program
I repeat and always the same error
what is the problem ?
Thanks for your help.