loading
4 CommentsSC/USA

Tell us about yourself!

Complete Your Profile
  • tpolito followed Electronics, LEDs, Raspberry Pi, Laptops and 6 others channel 3 months ago
  • tpolito commented on AdrieSentosa's instructable Arduino Weather Station (AWS)4 months ago
    Arduino Weather Station (AWS)

    Since I'll probably need more inputs and Arduino hardware resources, moved to my Arduino Mega 2560. But you have to move the BMP180 SDA/SCL pins. Referencing the attached picture, the uno is the smaller board. The brown and white wires are the ones I moved. I've included a link (bottom of this post) to the BMP180 info that tells which pins to use depending upon which Arduino board you use. Scroll down the page to "running the example sketch" for the chart.SDA A4 (uno) to A20 (mega)SCL A5 (uno) to A21 (mega)https://github.com/sparkfun/BMP180_BreakoutIf you saw my previous post on this (which I just deleted), please disregard it.

    For the altitude, any suggestions on where to find the numerical equivalents? In the code, it shows #define ALTITUDE 3 //Altitude where I live (change this to your altitude)Looked in the header for the BMP but only found a SourceForge link with formulas.

    Excellent first project for me and my Arduino Uno R3. Like a "newbie", hit some of the stumbling blocks mentioned previously (duh, had to load the libraries). Yes, you have to look at the code to determine the correct pins to connect the rain and soil sensors to. But, I looked at it as a learning tool. In a class, they give you errors and you have to correct to show you understand, helped me learn the code. Also, didn't realize the "serial monitor" in the Arduino program; once I found it, figured how to see the results. Used Sunfounder parts instead of ones shown, but they're basically identical. Yes, you can use a BMP180 because that's what I'm using. In fact, I think the code is set for the 180. Also, as a good learning tool, if you want to change the shown temp fr...see more »Excellent first project for me and my Arduino Uno R3. Like a "newbie", hit some of the stumbling blocks mentioned previously (duh, had to load the libraries). Yes, you have to look at the code to determine the correct pins to connect the rain and soil sensors to. But, I looked at it as a learning tool. In a class, they give you errors and you have to correct to show you understand, helped me learn the code. Also, didn't realize the "serial monitor" in the Arduino program; once I found it, figured how to see the results. Used Sunfounder parts instead of ones shown, but they're basically identical. Yes, you can use a BMP180 because that's what I'm using. In fact, I think the code is set for the 180. Also, as a good learning tool, if you want to change the shown temp from C to F, look in the DHT header file, you'll see there's a function for this. Wrapped it around the original sensor command and adjusted serial write to show F instead of C.result[4] = dht.convertCtoF(dht.readTemperature());Also, changed from hPA to "in" since most weather sites I access use "in".// result[2]=p0; //shows hPa result[2]=p0 * 0.02952998751; //shows inchesNext learning step will be to figure out how to write data to file instead of serial output. But noticed there was link to IWS. Also, trying the idea of output to LCD, thanks to AdrieSentosa for the link to the LCD tutorial.Sorry for the lousy pictures, didn't realize I had to "pose for the camera" to post.

    Had a little issue converting to my Arduino Mega2560. Had to comment out the lines that tests the "pressure.begin". Not sure why the Mega doesn't like the BMP library/sensor. Depending upon mood, will look in the header to see if anything jumps out at me. So on the Mega, no pressure detection. Going back to Uno and starting on the LCD output.//BMP180 Setup//if (pressure.begin()) //If initialization was successful, continue// {// Serial.println("BMP180 init success"); Serial.print("AWS :"); Serial.print("\t"); Serial.print("Rain Drop\t"); Serial.print("Soil Hum\t"); Serial.print("Pressure \t"); Serial.print("Air Hum\t"); Serial.print("\t"); Serial.println("Temp \t");// }//else ...see more »Had a little issue converting to my Arduino Mega2560. Had to comment out the lines that tests the "pressure.begin". Not sure why the Mega doesn't like the BMP library/sensor. Depending upon mood, will look in the header to see if anything jumps out at me. So on the Mega, no pressure detection. Going back to Uno and starting on the LCD output.//BMP180 Setup//if (pressure.begin()) //If initialization was successful, continue// {// Serial.println("BMP180 init success"); Serial.print("AWS :"); Serial.print("\t"); Serial.print("Rain Drop\t"); Serial.print("Soil Hum\t"); Serial.print("Pressure \t"); Serial.print("Air Hum\t"); Serial.print("\t"); Serial.println("Temp \t");// }//else //Else, stop code forever// {// Serial.println("BMP180 init fail");// while (1);// }

    View Instructable »
  • tpolito followed AdrieSentosa4 months ago