loading

In this project, we will be making a weather station that measures air pressure, temperature, rain drop, soil humidity and air humidity using Arduino which save the data for data acquisition!

It’s a fairly easy project and can be used either on its own or part of something bigger, check it out >> Integrated Weather Station (IWS).

Step 1: List of Material

For this project, we will be using:

- Arduino boards (mine Arduino Uno Rev3)

- DHT11 Humidity and temperature sensor cost: ~5.00 USD

- BMP185 Barometer sensor cost: ~6.00 USD

- Rain Drop sensor module cost:~2.00 USD

- Soil Humidity sensor module cost:~2.00 USD

- Breadboard or Custom ProtoShield (Check it out how to make it >> )

- Jumper Wire

Step 2: Hardware Connections

In general, the connections are very simple. Follow the instructions and images above, and you should have no problems.

Connecting Rain Drop Module

  • the VCC pin on Arduino’s 5V output
  • the GND pin to Arduino’s GND and
  • the Analog Data to Arduino's analog pin 0

Connecting Soil Humidity Module

  • the VCC pin on Arduino’s 5V output
  • the GND pin to Arduino’s GND and
  • the Analog Data to Arduino's analog pin 1

Connecting BMP185

  • the VCC pin on Arduino’s 3.3V output
  • the GND pin to Arduino’s GND
  • the SDA (Serial Data Line) pin to Arduino’s analog pin 4 and
  • the SCL (Serial Clock Line) pin to Arduino’s analog pin 5

Connecting DHT11

  • the VCC pin on Arduino’s 5V output
  • the GND pin to Arduino’s GND and
  • the DATA pin to Arduino’s digital pin 4

Step 3: Arduino Programming

Below is the Arduino Weather Station code. Include the library from AWS_library.rar, upload the code to your Arduino (Mine Arduino Uno Rev3), and you should have no problems.

You can clone and edit the code in any way you prefer.

Step 4: Enjoy!

Power through batteries or a plug and you’re good to go.

After making sure that everything works smoothly, you can take this project into bigger project. Check it out >> Integrated Weather Station(IWS) !

<p>hi can i use a dht 22 instead of the dht 11 what will be the change in code and circuit pls tell fast i am a total beginner in this</p>
<p>Great build! I really enjoyed putting it together. I will like to make the custom Proto-Shield but the link to the instructions appears to be broken. Are they still available?</p>
<p>hi i build this project but i want to add an LCD screen how to edit the program?</p>
<p>nice</p>
<p>Hi im trying to build this project but i wanted to know if you have an schematic for the breadboard conections, and the other thing is if you could give me your email to talk more about this project?. I hope you can help me, heres my email:</p><p>geraaa.acosta@gmail.com</p>
<p>hey this is ajit. I've tried all this things but my Arduino IDE is showing compile error in wire.h library</p>
<p>How to send attach a PIR sensor and DHT11 Humidity and temperature sensor in audrino and send the status of these sensors to an android app via bluetooth.</p><p>PLEASE help me </p>
<p>is there a version of this project that stocks data on an attached SD card ? And possibly also solar powered ?</p>
<p>Hi,</p><p>Every time I compile the code, I always get an error that says:</p><p>undefined reference to *insert function*</p><p>Is there any way to fix this? Thanks!</p>
<p>did you fix it? </p>
<p>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 &quot;running the example sketch&quot; for the chart.</p><p>SDA A4 (uno) to A20 (mega)</p><p>SCL A5 (uno) to A21 (mega)</p><p><a href="https://github.com/sparkfun/BMP180_Breakout">https://github.com/sparkfun/BMP180_Breakout</a></p><p>If you saw my previous post on this (which I just deleted), please disregard it.</p>
<p>For the altitude, any suggestions on where to find the numerical equivalents? In the code, it shows </p><p>#define ALTITUDE 3 //Altitude where I live (change this to your altitude)</p><p>Looked in the header for the BMP but only found a SourceForge link with formulas. </p>
<blockquote>Excellent first project for me and my Arduino Uno R3. Like a &quot;newbie&quot;, 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 &quot;serial monitor&quot; 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.<br><br><strong>result[4] = dht.convertCtoF(dht.readTemperature());<br></strong><br><span style="font-style: normal;">Also, changed from hPA to &quot;in&quot; since most weather sites I access use &quot;in&quot;.<br><br></span><strong>// result[2]=p0; //shows hPa</strong><p><strong> result[2]=p0 * 0.02952998751; //shows inches</strong></p><span style="font-style: normal;">Next 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 </span><a href="https://www.instructables.com/member/AdrieSentosa" style="">AdrieSentosa</a> for the link to the LCD tutorial.<br><br>Sorry for the lousy pictures, didn't realize I had to &quot;pose for the camera&quot; to post.</blockquote>
<p>Is this a dead project?</p>
<p>Hello, </p><p>Does anyone know on average how much power this draws? I want to hook it up to a solar panel. </p><p>Thanks</p>
Please sir I will like to talk with you on this project because I'm building something like it. Can I get your email or please email me at Morexonline2003@gmail.com. Thanks for your concern
Hi, With this project i am only using the bmp185 and the dht 11. I did all the stuff the intsructable told me to and then plugged it in and ran the program. The Barometric pressure shows fin but the temp and humidity all read zeroes. Could somebody help with this?<br><br>Also is there a way to record the data being collected on to the arduino's storage (or perhaps an SD card)?<br>Thank you.<br>
<p>check the program again dude, sometimes the program a little tricky. for <strong>record data, </strong>yup you could do it. check the link below and you should be fine<br><br>https://learn.adafruit.com/adafruit-micro-sd-breakout-board-card-tutorial?view=all</p>
Hi,how can i show the result of these mesuerments on a lcd ,becuase in this project ,there is no output ,i mean what wilk happen after sensing by these sensors.<br>Thank you for your answers
<p>yup you could do it. check this nice tutorial link from adafruit below<br><br>https://learn.adafruit.com/adafruit-arduino-lesson-11-lcd-displays-1?view=all</p>
<p>hi i'm trying to get the code to my Arduino but there is error massage </p><p>fatal error : SFE_BMP180.h: no such file or directory </p><p>any one know what is the problem </p>
<p>include the library dude. you could do it in sketch-&gt;include library. hope this help!<br></p>
<p>Without knowing much more, my guess is that you didn't download the library and then place it in the library directory that the arduino software points to. </p>
<p>Hello, how can I connect a screen to see your data?, thanks</p>
<p>Hello, where can I find the </p><p>BMP185 Barometer sensor</p><p>, thanks</p>
<p>BTW, you can create pretty cool little online dashboard with these sensors. I just combined it with few other sensors and wifi cc3000 shield and you can get something on the pic bellow. </p><p>I have 10 more sensors to add to it. I am not really building weather station...more like replica of Mars Rover...so it is robot which has all these sensors to measure enviroment. </p>
<p>Can you give me more info about this?</p>
<p>Yes, I hope this tutorial helps:</p><p>https://www.openhomeautomation.net/internet-of-things-dashboard/</p>
<p>Signed hardware connections (+, -ive) would be better for beginners. </p>
<p>edited sir</p>
<p>Many thanks. I really liked your project.</p>
<p>BTW, you can create pretty cool little online dashboard with these sensors. I just combined it with few other sensors and wifi cc3000 shield and you can get something on the pic bellow. </p><p>I have 10 more sensors to add to it. I am not really building weather station...more like replica of Mars Rover...so it is robot which has all these sensors to measure enviroment. </p>
<p>Hi There, thank you for your tutorial. </p><p>I have followed every step and i get to the point where i open the Serial Monitor and only thing that showes is:</p><p>Program Started.</p><p>Nothing else loads. Any idea why would that happen?</p><p>Also, in your code and on your picture you dedicated DHT pin to Digital 2 pin but in instructions you said it will be digital pin 4, so I did put on pin 2 and still not getting what you are getting on your screen. </p><p>:-(</p>
<p>Hei,</p><p>As I encountered the same issue, when It only shows Program Started, it's better to check BMP180/185 and be sure to connect it properly (SDL/SDA and 3.3V).</p><p>And the problem with DHT Pin, you just need to change the line #define DHTPIN 2 //Define DHT11 digital pin to #define DHTPIN 4 //Define DHT11 digital pin and it should work well.</p><p>Hope it helps.</p>
<p>Yep,</p><p>that fixed it. Thank you so much for this. :-)</p><p>Slav</p>
<p>In your photo what are the two boards with the blue potentiometers?</p>
<p>Hi,</p><p>It's the amplifier of Rain Drop and Soil Humidity I suppose.</p>
<p>Nice project, thanks for sharing! Do you know if I could shinkify this using a Attiny85 IC, instead of using Arduino? I'm planning make one myself, but I'd like to &quot;save&quot; the arduino, as I have only one board, and a couple of Attiny85 waiting to be used... </p>
<p>You could save the data to an SD card using an SD card breakout board or you could upload the data to Google Sheets using ifttt.com or something similar.</p>
<p>You could save the data to an SD card using an SD card breakout board or you could upload the data to Google Sheets using ifttt.com or something similar.</p>
<p>Does the barometer sensor have to be BMP185, or can it be BMP180 as well? </p>
Good but use rtc and a logging system for storing data and time
<p>Sorry for really late reply, <br><br>thank you for your suggestion, i just made instructables about it (check it out in below link).<br><a href="https://www.instructables.com/id/Raspberry-Pi-Real-Time-Clock-RTC/" rel="nofollow">https://www.instructables.com/id/Raspberry-Pi-Real-...</a><br>https://www.instructables.com/id/Raspberry-Pi-Data-Logging/ </p>
<p>let me know if you have problem building your own weather station, it's a fairly easy to follow project.<br><br>for lcd tutorial check it out adafruit tutorial, <br><a href="https://learn.adafruit.com/adafruit-arduino-lesson-11-lcd-displays-1?view=all" rel="nofollow">https://learn.adafruit.com/adafruit-arduino-lesson...<br><br></a>hope my answer help you a bit</p>
<p>Where did you get the Fritizng Part for the Rain Sensor(YL-83)? Could you provide me with a link to it.</p>
<p>I want to use that Fritzing part in my Instructable: <a href="https://www.instructables.com/id/TWIST-DIY-Tweeting-Weather-Station/">https://www.instructables.com/id/TWIST-DIY-Tweeting-Weather-Station/</a> , but I couldn't find that rain sensor part anywhere.</p>
<p>i made it myself. you could edit or clone my picture any way you prefer.<br></p><p>here, take a look<br><a href="https://learn.sparkfun.com/tutorials/make-your-own-fritzing-parts" rel="nofollow">https://learn.sparkfun.com/tutorials/make-your-own...</a><br> </p>
It would be really nice if you could attach the Fritzing file.
<p>send me your email address dude, i dont know how to attach file in comment.</p>
<p>I use &quot;Thingspeak&quot; to plot my data but included a small solar panel from a solar garden light and put my instruments behind that.and also have one that will be using the MQ sensor to plot air quality. I spent a few days monitoring my set up and added small offsets to allow for the differences on my DHT which has been rock solid for a month now. I will be going wireless once my ESP's arrive and the solar panel is going to help charge a small battery pack too.</p><p>https://thingspeak.com/channels/60110</p>

About This Instructable

122,496views

945favorites

License:

Bio: A candle loses nothing of its light when lighting another
More by AdrieSentosa:LED Acrylic Trophy / Placard Raspberry Pi - Remote Desktop Connection IoT Service Robot 
Add instructable to: