Вы находитесь на странице: 1из 10

Food

Living

Outside

Play

Technology

Workshop

Arduino weather station.


by bram2202 on July 19, 2013

Table of Contents
Arduino weather station. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Intro: Arduino weather station. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Step 1: Parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Step 2: Code for transmitter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Step 3: Electrical diagram transmitter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Step 4: Code for receiver. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Step 5: Electrical diagram receiver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Step 6: Prototype . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Step 7: Designing the receiver housing. (first attempt) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Step 8: Designing and buidling the receiver housing. (second attempt) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Step 9: Painting the receiver housing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Step 10: Buidling the Transmitter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Step 11: Final Product . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

http://www.instructables.com/id/Arduino-weather-station/

Intro: Arduino weather station.


A while ago I got a idea to build my own weather station, from scratch.
It turned out great. Lets begin!

Step 1: Parts
A list of items I used:
-2x Arduino nano.
-433mhz transmitter .
-433mhz Receiver.
-4x20 LCD (blue)
-a Blue led and resistor
-Electric installation box (watertight).
- Digital Barometric Pressure and Temp Sensor.
- DHT11 Temperature & Humidity Sensor
-1mm Aluminum sheet.
-PIR sensor (movement).
-Bits of wire.
-Heat shrink tube.
-Nuts and bolts.
And a range of different (basic) tools.

http://www.instructables.com/id/Arduino-weather-station/

Step 2: Code for transmitter


So the first thing is to know which port is which on every part of te Transmitter:
The Arduino Nano was simple, just take a look on the site of Arduino.
http://arduino.cc/en/Main/ArduinoBoardNano
Next up is the 433Mhz Transmitter .
On the Board it says:
-Vcc
-Data
-GND
Next. The DHT11 . same as the Transmitter
-Vcc
-Data
-GND'
This part uses the 'DHT11 library'

http://www.instructables.com/id/Arduino-weather-station/

A Simple LED and Resistor


-VCC
-GND
I used this only if there was something sent.
The Digital Barometric Pressure sensor is another story dhow,
its got 6 Connections
-VCC (3.3v)
-SDA (Serial Data Signal) (IC)
-SCL (Serial CLock) (IC)
-XCLR (no idea) (did not use)
-EOC (end of conversion) (did not use)
-GND (Ground)
So we need to use the IC on de Sensor to communicate with the Arduino.
i uses the next Libs:
-OneWire.
-dht11.
-VirtualWire
Much of the code to read out the Digital Barometric Pressure and Temp Sensor was ripped form various sites/forums.

For Code and explanation, See the Code file

File Downloads

weather_Transmitter_CODE.zip (2 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'weather_Transmitter_CODE.zip']

Step 3: Electrical diagram transmitter


Based on the Code I wrote a drew an electrical diagram.
Please note that the Transmitter and humidity sensor works of the 5v line,
the Barometric sensors only needs a 1.8V - 3.6V input.

http://www.instructables.com/id/Arduino-weather-station/

Image Notes
1. Digital Barometric Pressure ant Temp Sensor

Step 4: Code for receiver.


In this code I needed to get the data from me Receiver and decode it to something useful
Hardware:
Screen (hd44780 capable).
-(16 Pins) data and power
PIR (motion sensor).
-VCC
-Trigger
-GND
Receiver .
-Vcc
-Data out
-GND
For the Screen I uses the standard Connection.
Only used 6 pins for Data, 1 to 5V and 3 to ground.
The Led +pin was connected to a Arduino Digital Pin.
that way I can control the Backlight whit the PIR.
Uses the next Libs:
-VirtualWire (for the Reviser)
-stdio
- string

http://www.instructables.com/id/Arduino-weather-station/

-LiquidCrystal (for the display)

For Code and explanation, See the Code file

File Downloads

weather_Reciver_CODE.zip (1 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'weather_Reciver_CODE.zip']

Step 5: Electrical diagram receiver


Based on the Code I wrote a drew an electrical diagram.
its recommended to connect pin 3 (V0) of the LCD to a 10K ohm Potentiometer, this Pot meter to VCC and GND.
To control the Brightness.
I connected strait to GND to get maximum Brightness, this works well on a couple of LCD, so TRY it first.
The rest is fairly straight forward.

Image Notes
1. 5V input
2. 433mhz Receiver.
3. PIR sensor

Step 6: Prototype
The next logical step is to make a prototype of the drawings and testing it.
So I got myself a couple of Breadboard and wire and began building it.
(note1) this picture was taken after I created the code :)
(note2) on the first picture you can see a component that later would be replaced by another part.

Image Notes
1. This part would later be replaced by the Digital Barometric Pressure and Temp
Sensor

http://www.instructables.com/id/Arduino-weather-station/

Step 7: Designing the receiver housing. (first attempt)


At first i wanted to 3D print a houding,
I measure all the components and wrote them down.
next I put them together in Inventor and drew a housing around the parts.
This ensured that the sizes where correct the parts would fit together
I used Inventor 2014 and Blender to create and render the image
because I did not own a 3D printer a had to send it to ShapeWays, it was to expensive for this project.
So redraw it for a sheet. (see next step)

Step 8: Designing and buidling the receiver housing. (second attempt)


Here I did the same as in the previews Step,
only difference is that I used Sheet metal drawing instead of extruding.
After this was done, it was a simple job to cut it out and bend it 90 disgrace.
To lock it in place I used 2 aluminum rivets.
(note)Dimensions in mm

Image Notes
1. Dutch

http://www.instructables.com/id/Arduino-weather-station/

Step 9: Painting the receiver housing


The next stap is to make the housing a bit more nicer.
So i want to give it a lik of paint.
it had to be a hard paint, able to withstand abuse.
I used "Motorcoater", its designed to be uses on engines.
it resists Olli, grease and lots of stuff, and its scratch resisted :)
A bit overdone, but I had it lying around.

Step 10: Buidling the Transmitter


I chose Electric installation box (watertight), is sturdy and watertight.
perfect for outside use.
I used 2 sockets to create holes to the outside of the box.
And on those I glued the sensors.
Drilled 3 hose,
1 for Power (5V)
1 for the external antenna.
and 1 for the blue LED
I just coiled some wire for the internal antenna.
Dont know the best antenna for 433Mhz, but it works.

Image Notes
1. Arduino Nano
2. 433Mhz Transmitter
3. Barometric Sensor
4. Humidity sensor

http://www.instructables.com/id/Arduino-weather-station/

Image Notes
1. Humidity Sensor
2. Barometric Sensor
3. Blue LED
4. Power and antanne

Step 11: Final Product


And the end result:
A good working Weather station.
Showing Temperature in C, Humidity an barometric pressure .
And all of this in a nice case, and low power consumption

Image Notes
1. Dutch
2. Pir

Related Instructables

How to use
Arduino Mega
2560 as Arduino
isp by tsillen

Arduino
Examples #2
Use an Arduino
as a FTDI
Programmer by
qazwsx755

Easy LCD
display With
Arduino by
Mayank3

Control Arduino
Board
Wirelessly With
iPhone, iPad or
iPod Using
iArduino App
and Ethernet
Shield by
DjTronix

http://www.instructables.com/id/Arduino-weather-station/

Read analog
data directly in
Processing by
snebtor

How to Install
the Arduino to
the Lithium
Backpack by
Severino

Advertisements

http://www.instructables.com/id/Arduino-weather-station/

Вам также может понравиться