This post provides an overview and learning objectives of Chapter 6 from my book Building Arduino Projects for the Internet of Things.

Introduction

The 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, thermostat and garage door 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. The figure below shows components of a Lighting Control System. The first component is an Android app that lets users control lights. It publishes messages to 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 MQTT broker.

CodifyThings - Building Arduino Projects for the Internet of Things (IoT)

Learning Objectives

At the end of this chapter you will be able to:

  • Write code to turn LEDs connected to Arduino on or off
  • Subscribe Arduino to an MQTT broker
  • Build an Android app that publishes to MQTT broker

Final Product

CodifyThings - Building Arduino Projects for the Internet of Things (IoT)