SFE_BMP180 stops at verification
by ChrisPSR » Tue Aug 04, 2015 9:12 am
Hi.
I decided to adopt this program as it will (?) later fit along with my home weather monitor running on a 1.8" tft. I'm not entirely new to the Arduino environment but I’m afraid that I am struggling with the SFE_BMP180_Example.
The program verifies, loads and runs but almost as soon as its started in the Windows/Arduino Consul it stops at what I call the verification point, all at the illustrated example final line:
//Start of illustration
#include <SFE_BMP180.h>
#include <Wire.h>
// You will need to create an SFE_BMP180 object, here called "pressure":
SFE_BMP180 pressure;
#define ALTITUDE 34.6 // Altitude of my road in meters
void setup()
{
Serial.begin(9600);
Serial.println("REBOOT");
// Initialize the sensor (it is important to get calibration values stored on the device).
if (pressure.begin())
Serial.println("BMP180 init success");
else
{
// Oops, something went wrong, this is usually a connection problem,
// see the comments at the top of this sketch for the proper connections.
Serial.println("BMP180 init fail\n\n"); //This is where I believe the program halts.
//End of illustration
I'm not too sure just what the comment "// You will need to create an SFE_BMP180 object, here called "pressure":" actually means; is the answer as the next instruction/line "SFE_BMP180 pressure;" or am I supposed to write something into the program. Whatever it stops here and will not go any further. So: where am I up to:
1] The board is definitely provided with a Vcc of Arduino 3.3V's, and never any other.
2] The four wires hardly require any elucidation (or do they).
3] My project board is a Duemilanove (pin-outs as a UNO[?]).
4] Why O'why is it stopping.
I have loads of stuff to write as soon as I can extract the fundamental numbers so: Any help would be most kindly welcomed, Cheers,
A Braindead ChrisPSR