Hardware Reference
In-Depth Information
Hardware and software requirements
Let's first see what components we need for this project. You will need the usual Arduino
Uno board. Other boards such as Arduino Mega would work as well, but this project has
not been tested with more recent boards such as Arduino Leonardo or Arduino Due.
You will also need a board that hosts the CC3000 Wi-Fi chip. I used the Adafruit CC3000
Wi-Fi board again, but you can also use an Arduino shield that hosts this Wi-Fi chip like
the Adafruit CC3000 shield.
Note
Other boards or shields hosting the same Wi-Fi chip would work as well, but there are no
guarantees and you might have to slightly change the code of the project.
For the temperature and humidity measurement, we are going to use a digital sensor, the
DHT11. Note that you can also use the DHT22 sensor, which is more precise and works
with the same library.
You can also use your own sensor for these measurements, or even two sensors, but you
will then have to change the code accordingly. You will also need a 4.7k ohm resistor for
the project to work.
For light-level measurements, you will need a photocell (which is simply a resistor that
changes its resistance according to the ambient light) and a 10k ohm resistor. Of course,
you will need the usual breadboard and jumper wires to make the connections between the
different components.
This is a list of the components that are used in this chapter:
• Arduino Uno R3 ( http://www.adafruit.com/products/50 )
• CC3000 Wi-Fi module ( http://www.adafruit.com/products/1469 )
• DHT11 sensor and resistor ( http://www.adafruit.com/product/386 )
• Photocell ( http://www.adafruit.com/product/161 )
• Breadboard ( http://www.adafruit.com/product/64 )
• Jumper wires ( http://www.adafruit.com/product/759 )
On the software side, you need to have the latest version of the Arduino IDE installed on
your computer, as well as the DHT library for the DHT11 sensor that will be used in this
project. You can find this library at https://github.com/adafruit/DHT-sensor-library .
Search WWH ::




Custom Search