Book Image

Learn Arduino Prototyping in 10 days

By : Kallol Bosu Roy Choudhuri
Book Image

Learn Arduino Prototyping in 10 days

By: Kallol Bosu Roy Choudhuri

Overview of this book

This book is a quick, 10-day crash course that will help you become well acquainted with the Arduino platform. The primary focus is to empower you to use the Arduino platform by applying basic fundamental principles. You will be able to apply these principles to build almost any type of physical device. The projects you will work through in this book are self-contained micro-controller projects, interfacing with single peripheral devices (such as sensors), building compound devices (multiple devices in a single setup), prototyping standalone devices (powered from independent power sources), working with actuators (such as DC motors), interfacing with an AC-powered device, wireless devices (with Infrared, Radio Frequency and GSM techniques), and finally implementing the Internet of Things (using the ESP8266 series Wi-Fi chip with an IoT cloud platform). The first half of the book focuses on fundamental techniques and building basic types of device, and the final few chapters will show you how to prototype wireless devices. By the end of this book, you will have become acquainted with the fundamental principles in a pragmatic and scientific manner. You will also be confident enough to take up new device prototyping challenges.
Table of Contents (13 chapters)

Using relays with AC powered devices

In this section, we will learn the concept of separating a DC circuit from an AC circuit by using a relay device. AC powered devices operate at dangerous voltages and currents, whereas the Arduino Uno is a 5V, low current device in comparison to an AC powered device. Therefore, in order to interface the Arduino with an AC powered device, an intermediate device known as a relay is used. A typical relay device is shown in the following figure:

Figure 1:&# A typical relay device

As we can see, there are three socket type ports on the left-hand side of the Relay device. Usually, these ports are marked with abbreviations such as: NO, C, and NC. The usage of these three sockets is explained as follows:

  • Normally Open (NO): This port is called 'Normally Open' because this port is always disconnected (Open) from the AC circuit, via the...