Building Arduino Projects for the Internet of Things

(Steven Felgate) #1

© Adeel Javed 2016 111
A. Javed, Building Arduino Projects for the Internet of Things,
DOI 10.1007/978-1-4842-1940-9_6


CHAPTER 6


IoT Patterns: Remote Control


Remote control is currently one of the most popular IoT patterns. Examples of this
pattern can be found in IoT applications that let you remotely control things such as
lights, thermostats, and garage doors using handheld devices or computers. It has mainly
been used for home automation applications so far.
In this chapter, you are going to build a lighting control system. Figure  6-1 shows
components of a lighting control system. The first component is an Android app that lets
users control lights. It publishes messages to an MQTT broker whenever the user taps
on the app screen. The second component is an MQTT broker, and the final component
of this IoT application is an Arduino device that turns lights on or off based on messages
received from the MQTT broker.


Figure 6-1. Components of the lighting control system

Free download pdf