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)

Smoke detector (analog I/O method)

Now let us examine the method of reading the analog output pin of the MQ2 gas sensor. The circuit connections for building a smoke detector prototype using its analog output pin is shown in figure 3. As shown in the figure, the MQ2 gas sensor to Arduino Uno connection, via its analog pin, is tabulated as follows:

Arduino Uno pin

MQ2 gas sensor pin

Analog I/O pin A5

A0

5V

VCC

GND

GND

Table 3: MQ2 gas sensor to Arduino - Analog connections

The remaining portions of the circuit, such as the Piezo Buzzer connection, will remain unaltered from the previous example with the digital pin. The Piezo Buzzer interfacing details are provided in the following table for reference.

Arduino Uno Pin

Piezo Buzzer Pin

Digital I/O pin 8

(via 100 Ohms)

Positive terminal (longer leg)

GND

Negative terminal (shorter leg...