Weather Shield

I am using Sparkfun weathershield using Edison and Arduiono breakout. I mounted the weathershield, downloaded the two libraries recommended. HTU21D Library and MPL3115A2. I tried using one of the examples (in fact i tried multiple) and i am getting wrong output for pressure/temperature/altitutde.

Pressusre ¶: -999.00, Temp(f): -1766.20 Altimeter setting InHg: nan

There were no additional connections i did, i just mounted the shield and uploaded the example program, Any help is apprecaited

Srinivas

You might want to read this thread.

https://forum.sparkfun.com/viewtopic.ph … &hilit=nan

Thanks - my problem is more basic than the code. Added code for ref. I took out the altimeter code to illustrate the point - i keep getting the following seriou monitor output .

Pressusre ¶: -999.00, Temp(f): -1766.20

I suspect reading from somewhere that 10K resistors are huge and/or sensors need more votlage and hence not providing the right values. Any help in that regard as to i i need to short something or add more voltage and/or check some values is appreciated.

#include <Wire.h>

#include “MPL3115A2.h”

//Create an instance of the object

MPL3115A2 myPressure;

void setup()

{

Wire.begin(); // Join i2c bus

Serial.begin(9600); // Start serial for output

myPressure.begin(); // Get sensor online

// Configure the sensor

//myPressure.setModeAltimeter(); // Measure altitude above sea level in meters

myPressure.setModeBarometer(); // Measure pressure in Pascals from 20 to 110 kPa

myPressure.setOversampleRate(7); // Set Oversample to the recommended 128

myPressure.enableEventFlags(); // Enable all three pressure and temp event flags

}

void loop()

{

float pressure = myPressure.readPressure();

Serial.print(“Pressure¶:”);

Serial.print(pressure, 2);

float temperature = myPressure.readTempF();

Serial.print(" Temp(f):");

Serial.print(temperature, 2);

Serial.println();

}