The reason why I seperate weather data collection in Arduino and database and Internet programming in Raspberry Pi is I like modulized design.Both system are independent to each other.It make life a lot simple.
The AirPi is an automatic air quality & weather monitoring device powered by a Raspberry Pi, capable of displaying, recording and uploading information about temperature, humidity, air pressure, light levels, UV levels, carbon monoxide, nitrogen dioxide and smoke level to the internet.
First, the Arduino and Raspberry Pi and very inexpensive at under $40. The BeagleBone comes in at nearly the cost of three Arduino Unos. Also worthy of note is that the clock speed on the Arduino is about 40 times slower than the other two and it has 128,000 (!) times less RAM. Already, you can see the differences starting to come out. The Arduino and Raspberry Pi are inexpensive and the Raspberry Pi and BeagleBone are much more powerful. Seems like the Raspberry Pi is looking really good at this point, however, it’s never that simple. First, its price isn’t quite as good as it seems because to run the Raspberry Pi you need to supply your own SD Card which will run you another $5-10 in cost.
Once you boot the Pie, enter the username and password based on the image/distribution you are using (user/password is normally pi/raspberry). Now, to install mono, we’ll use the apt-get package manager. Let us update and upgrade all the packages before we proceed with the install. Run apt-get with admin permissions, using sudo in the console/terminal.
Each of the below command will take a bit of time - so make sure you've a pressure ball around. And let the force be with you for a successful installation #lol.
Install RPi.GPIO version 0.5.1a for multiple threaded callback interrupts
If you need to, you can install 0.5.1a or later with sudo apt-get update sudo apt-get dist-upgrade (This will update all your Raspbian packages and may take up to an hour)
or, from the command line prompt (this will only update RPi.GPIO)… wget http://raspberry-gpio-python.googlecode.com/files/python-rpi.gpio_0.5.1a-1_armhf.deb wget http://raspberry-gpio-python.googlecode.com/files/python3-rpi.gpio_0.5.1a-1_armhf.deb sudo dpkg -i python-rpi.gpio_0.5.1a-1_armhf.deb sudo dpkg -i python3-rpi.gpio_0.5.1a-1_armhf.deb
The camera module is based on a 5 megapixel sensor, allowing it to capture 2560×1920 images as well as full 1080 video with the help of some drivers being whipped up at the Raspberry Pi foundation.
Considering the Raspi USB webcam projects we’ve seen aren’t really all that capable –OpenCV runs at about 4 fps without any image processing and about 1 fps with edge detection – the Raspberry Pi camera board should be less taxing for the Pi, enabling some really cool computer vision projects.
The camera board should be available in a little more than a month, so for those of us waiting to get our hands on this thing now, we’ll have to settle for the demo video of the Pi streaming 1080p video to a network at 30fps after the break.
If you have a Beagleboard, Pandaboard, Raspberry Pi, or other ARM hardware running Linux, and you want to compile and debug C/C++ applications from your Windows or Linux desktop, it's relatively straightforward: download a pre-built tool chain from Mentor Graphics (formerly Code Sourcery). No such luck for OS X users. You have to build it yourself, and it's pretty painful. Hopefully, the info below will make it less painful for you. If you don't care to build the tools yourself, I posted the binaries on SourceForge.
You’ve plugged everything in, waited for it to load and typed in the user / password. Now what?
The first thing you should type:
It’ll give you full privileges for the rest of the session and help stop you having to type “sudo” at the beginning of everything.
The second thing you should do is type this:
It’ll update all the packages on your installation to the most recent versions.
That should bring your device up to date and ready to use.
Installing some stuff
There is going to be a few things you’ll want to install, a nice text editor and maybe a web server? Experienced linux users can skip this bit and install what ever they want, but here are some tips for beginners on what extra packages to install.
To install these, just type the command under the name and hit enter:
git (version control software)
apt-get install git-core
Apache (Turn your device into a web server)
apt-get install apache2
MySQL (A database)
apt-get install mysql-server mysql-client
NOTE: During this process you’ll be asked to enter a password for the database root user
This bit is a bit more advanced. I couldn’t find any guides on installing django on a raspberry pi so I’ve written a short one here.
A few of these packages might not be needed, but it was the route I followed successfully without any trouble so feel free to let me know what I can remove from this guide.
This guide assumes you’ve installed all of the above packages first.
Here are the features including a few extra goodies:
Flexible power. Can be powered directly from the Pi, standalone with a battery or wall-wart, or USB power. This is important if your shield takes more power than the Pi can provide or if you want to undock it for standalone operation.
Programmable via the Pi’s UART on the GPIO pins, or an FTDI USB-Serial adapter or ISP.
Header for connecting Fastrax UP501 GPS.
DS3234 Real time Clock. The Pi doesn’t have it’s own battery backed RTC. You can set a program in the AlaMode to report the time to the Pi via serial or I2C
Micro-SD card slot. Useful for datalogging, and big-memory for your Arduino applications
Row of Servo Headers connected to the PWM pins with a configurable power and ground rail