Wiring Forum
http://wiring.org.co/cgi-bin/yabb/YaBB.pl
Bugs >> Website,  Reference,  Examples Bugs >> BMP085 Sensor Example code
http://wiring.org.co/cgi-bin/yabb/YaBB.pl?num=1290842898

Message started by Christopher on 11/27/10 at 07:28:18

Title: BMP085 Sensor Example code
Post by Christopher on 11/27/10 at 07:28:18
I am finding that something is not working correctly with the example code provided for the BMP085 sensor....  After copying and pasting the code and downloading it to my Arduino Dem.  I the code is stopping after displaying "Reading Calibration Data".  I have checked and my wiring is exactly like the example, seems something is wrong with the wiring.h transmission of the bytes to the sensor...  any suggestions...

I commented out //ac1 = readIntRegister(0xAA); to see if anything would happen and I get the AC1:  0 in the serial monitor.

Cheers,
Christopher

Title: Re: BMP085 Sensor Example code
Post by barragan on 11/29/10 at 04:00:58
hi Christoper, I've tested the code using a Wiring a board and the connections as shown in the example, it seems to be working fine. Please check your connections again and let me know. I am assuming you're using the latest Wiring software 0027. Inside the loop you could also increase a bit the delay to delay(200);
Sometimes it takes longer between readings depending on the sensor.

Title: Re: BMP085 Sensor Example code
Post by wbp on 03/06/11 at 05:16:01
This is an old post, but if anyone else runs into this problem, check your SDA/SCL wiring.  I'll bet they're connected to D0/D1.  They should be connected to A4/A5 - these are the SDA/SCL pins for the Arduino.  It's an easy mistake to make...

William

Wiring Forum » Powered by YaBB 2.5 AE!
YaBB Forum Software © 2000-2010. All Rights Reserved.