In the second part of this tutorial we added to our wireless thermostat the ability to interact with the user through an LCD display and switches. We can simply increase/decrease temperature using two practical switches and we can see the ambient temperature on the LCD display. We also used an AirQ 100 wireless temperature sensor to separate the Arduino from where we want to detect temperature: this allows us maximum flexibility since AirQ 100 sensor can be placed wherever we want.
We are not satisfied, however: in the Internet of Things (IoT) era there is more to do. We want to control our thermostat by the Internet. And the good news it that it’s a trivial task tanks to Arduino Ethernet shield. Let’s go
Bill of material
For this part of the tutorial we need the following material:
- One Arduino Uno.
- An Arduino Ethernet shield.
- An AirQ ShielD for Arduino Uno.
- An AirQ 305 wireless relay board.
- An AirQ 100 low-cost wireless temperature sensor.
- A character 16×2 LCD (see part two for more info about this).
- Two SPST switches.
The hardware setup
The hardware setup is almost the same of the second part of this tutorial. There are only a couple of differences:
- We obviously need the Ethernet shield and we can put it between Arduino and AirQ ShielD (we always suggest to put AirQ ShielD on the top to avoid reduction of operative distance between the shield and other AirQ Networks devices).
- Since AirQ ShielD uses pin 10 and 11 and these pins are also used by Ethernet shield, we need to rearrange them. So, using a couple of patches, and leaving those pins non inserted in the ethernet shield pin headers, we can rearrange pin 10 and 11 on pin 8 and 9 respectively, as shown in the following photo.
With these two fixes we are ready to add web functionalities to our thermostat