Weather station with Arduino

Hi!

With this post I begin the weather station made with arduino.

Actually I bought an Arduino Ethernet (it contains an ethernet port and a microSD slot for record data), a temperature and humidity sensor and a pressure sensor.

To use Arduino I use Ubuntu 11.10 and the Arduino IDE 1.0 (you can find on the Arduino webpage), both at 64bit. To program the Arduino Ethernet I use the USB FTDI cable and with this last version of Arduino IDE you have not to burn a new bootloader.

At the moment I only tested the humidity and temperature sensor RHT03 (also called DHT22) with this library avaible at this link. But for use this library with last version of Arduino IDE I have to change the code in the DHT22.cpp file:

43: #include "DHT22.h"
44: #include "pins_arduino.h"
45:
46: extern "C" {
47:   #include "WConstants.h"
48:   #include <avr/io.h>
49:   #include <avr/interrupt.h>
50:   #include <avr/pgmspace.h>
51:   }

to:

43: #include "DHT22.h"
44: #include "pins_arduino.h"
45: #include "Arduino.h"
46:
47: extern "C" {
48:   #include <avr/io.h>
49:   #include <avr/interrupt.h>
50:   #include <avr/pgmspace.h>
51:   }

With this change everything works!

Bye! Stay tuned!

Annunci

Rispondi

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...