Hardware Reference
In-Depth Information
Summary
Let's summarize what we did in this chapter. We created an independent measurement sta-
tion with Arduino that automatically measures and serves the data in some way. First, we
logged the data locally on a SD card and then we served this data using a web server run-
ning on the Arduino board.
The following are the major takeaways of this chapter:
1. First, we built the required hardware for this chapter, and inserted the SD card into
the Ethernet shield.
2. Then, in the first part of the project, we logged the measured data on the SD card
and used a remote time server to automatically get the measurement times.
3. Finally, we built a new Arduino sketch to have a web server running on the Ardu-
ino board. We then modified the plotting code from the previous chapter so it can
call the server on the Arduino board to get and plot the measured data.
There are, of course, many ways to improve this project. You can add more sensors to the
project and either log this additional data on a SD card or serve it on a web page using the
Arduino web server. You can also have many of these boards in your home or even outside
and make your computer poll all these Arduino servers at a regular interval to get their
measurements.
In the next chapter, we are going to work again with this idea of creating an independent
system with the Arduino Ethernet shield. We are going to connect a relay to the Arduino
board, so you can switch a lamp on and off remotely. This project will come in two flavors.
First, we will make a sketch to control the relay remotely via your web browser. In the
second part of the chapter, we will use a special library so the relay can be controlled from
anywhere in the world.
Search WWH ::




Custom Search