Chapter 6. Outdoor Weather Station

In this chapter, we will make an outdoor weather station that is accessible over the Internet, which will allow remote monitoring and recording of the weather conditions.

To do this, we will have a look at a new skill that will allow us to take some existing sensors and adapt them for use in our project—reverse engineering. This is essentially the process of taking a part of an existing product and deriving the communication method between it and the rest of the product, so that you can replace either a specific part or a whole product.

We will also take a quick look at how to use the Pi as a web server and the method used to develop and deploy a Python web application.

What you will need

This is a list of all the parts you will need in order to complete this project. Most of these are available at high-street electronic components stores and online distributors:

Note that even though I have specifically listed an Arduino Uno, any standard 8-bit AVR-based Arduino should work fine for this project, for example, the Uno, Mega, Nano, and Duemilanove.

I have also specified two different DHT sensors that can be used. The only real difference between them is that DHT22 has a wider operating range than DHT11; DHT11 can read temperatures between 0 and 50 degrees Celsius and humidity between 20 and 80 percent RH (relative humidity), whereas the DHT22 can read temperatures between -40 to 80 degrees Celsius and humidity between 0 to 100 percent RH.

We will make use of different valued resistors a couple of times. These are small devices that are used to limit the flow of current through a circuit. Their resistance is measured in Ohms and is denoted by Ω. Since these devices do not have their resistance value printed on them, a color code must be used. To find the color code used to denote a particular resistance, a good reference chart can be found at www.digikey.co.uk/en/resources/conversion-calculators/conversion-calculator-resistor-color-code-4-band. Throughout this chapter, resistors are referred to by both value and color code.

Note that we will not use the full pack of resistors I provided a link to. However, they are very handy to have as having to order parts like resistors as and when they are needed slows down this type of electronics project.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.16.69.199