Hardware Reference
In-Depth Information
Hardware and software requirements
On the hardware side, you will of course need the Arduino Uno board and Arduino Ether-
net shield.
You will also need a sensor to measure some data. As this topic is about how to use the
Ethernet shield and not how to measure data from sensors, you can actually take any sensor
of your choice.
I used a DHT11 sensor, which is a digital temperature and humidity sensor. I chose this
sensor for this chapter and for many chapters of the topic since it is a very cheap sensor and
easy to interface with Arduino. Along with the DHT11 sensor, you will also need a 4.7k
Ohm resistor.
You can also use other kind of sensors. You can use analog sensors, which return a signal
depending on the measured data. For example, the TMP36 sensor is an analog temperature
sensor that returns a voltage proportional to the ambient temperature.
Other kind of sensors you can use here are sensors based on the SPI or I2C protocols,
which are digital communication protocols that are easy to use with Arduino. For example,
you can use the BMP085 or BMP180 sensors, which have an I2C interface, and you can
also measure the barometric pressure and ambient humidity.
You will also need a breadboard and some jumper wires to make the connections between
the sensor and the Ethernet shield.
This is a list of all the components that were used for this chapter:
• Arduino Uno ( https://www.adafruit.com/products/50 )
• Arduino Ethernet Shield ( https://www.adafruit.com/products/201 )
• DHT11 sensor ( https://www.adafruit.com/products/386 )
• Breadboard ( https://www.adafruit.com/product/64 )
• Jumper wires ( https://www.adafruit.com/product/758 )
On the software side, the first thing you will need is the library to interface with the sensor
you chose before. As I chose a DHT11 sensor for this project, you will need to download
and install the DHT library:
https://github.com/adafruit/DHT-sensor-library
Search WWH ::




Custom Search