Building Arduino Projects for the Internet of Things

(Steven Felgate) #1
CHAPTER 6 ■ IOT PATTERNS: REMOTE CONTROL

Software Required


In order to develop this lighting control system, you need the following software:


  • Arduino IDE 1.6.4 or later

  • Android Studio 1.5.1 or later


Circuit


In this section, you are going to build the circuit required for the lighting control system.

1. Make sure your Arduino is not connected to a power source,
such as to a computer via a USB or a battery.

2. Attach a WiFi shield to the top of the Arduino. All the pins
should align.

3. Unlike previous circuits, you do not want to power your
breadboard all the time, instead you want to control it. So
use a jumper cable to connect digital port 3 of your Arduino
to power (+) port on the breadboard. You will use this port to
turn the LED on and off.

4. Use jumper cables to connect the ground (GND) port on
Arduino to the ground (-) port on the breadboard.

5. Attach an LED to your breadboard.

6. Use the jumper cable to connect the power (+) port of the
breadboard to the power (+) port of the LED.

7. Attach a 220Ω resistor between the ground (-) port of the
breadboard and the ground (-) port of the LED.

Your circuit is now complete and should look similar to Figures  6-3 and 6-4.
Free download pdf