Home IoT & Hardware Learn Arduino Prototyping in 10 days

Learn Arduino Prototyping in 10 days

By Kallol Bosu Roy Choudhuri
books-svg-icon Book
eBook $29.99 $20.98
Print $38.99
Subscription $15.99 $10 p/m for three months
$10 p/m for first 3 months. $15.99 p/m after that. Cancel Anytime!
What do you get with a Packt Subscription?
This book & 7000+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with eBook + Subscription?
Download this book in EPUB and PDF formats, plus a monthly download credit
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with eBook?
Download this book in EPUB and PDF formats
Access this title in our online reader
DRM FREE - Read whenever, wherever and however you want
Online reader with customised display settings for better reading experience
What do you get with video?
Download this video in MP4 format
Access this title in our online reader
DRM FREE - Watch whenever, wherever and however you want
Online reader with customised display settings for better learning experience
What do you get with video?
Stream this video
Access this title in our online reader
DRM FREE - Watch whenever, wherever and however you want
Online reader with customised display settings for better learning experience
What do you get with Audiobook?
Download a zip folder consisting of audio files (in MP3 Format) along with supplementary PDF
What do you get with Exam Trainer?
Flashcards, Mock exams, Exam Tips, Practice Questions
Access these resources with our interactive certification platform
Mobile compatible-Practice whenever, wherever, however you want
BUY NOW $10 p/m for first 3 months. $15.99 p/m after that. Cancel Anytime!
eBook $29.99 $20.98
Print $38.99
Subscription $15.99 $10 p/m for three months
What do you get with a Packt Subscription?
This book & 7000+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with eBook + Subscription?
Download this book in EPUB and PDF formats, plus a monthly download credit
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with eBook?
Download this book in EPUB and PDF formats
Access this title in our online reader
DRM FREE - Read whenever, wherever and however you want
Online reader with customised display settings for better reading experience
What do you get with video?
Download this video in MP4 format
Access this title in our online reader
DRM FREE - Watch whenever, wherever and however you want
Online reader with customised display settings for better learning experience
What do you get with video?
Stream this video
Access this title in our online reader
DRM FREE - Watch whenever, wherever and however you want
Online reader with customised display settings for better learning experience
What do you get with Audiobook?
Download a zip folder consisting of audio files (in MP3 Format) along with supplementary PDF
What do you get with Exam Trainer?
Flashcards, Mock exams, Exam Tips, Practice Questions
Access these resources with our interactive certification platform
Mobile compatible-Practice whenever, wherever, however you want
  1. Free Chapter
    Boot Camp
About 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.
Publication date:
June 2017
Publisher
Packt
Pages
288
ISBN
9781788290685

 

Boot Camp

"For all things magic and beyond, there is the magic wand. For us lesser mortals, we use the Arduino!"
- Kallol Bosu Roy Choudhuri

The book welcomes you with this Boot Camp chapter that explains the organization of the chapters in this book, followed by guidance on how to use the book for maximum benefit. It lists the hardware components and devices that must be procured in order to follow the learning path outlined in the chapters. Most importantly, you will find a comprehensive list of the fundamentals, concepts, and projects that you will learn from this book.

 

Organization of the chapters

The chapters in this book are dedicated to laying down a strong technical foundation for the years to come in your Arduino-based device prototyping journey. To start off, we will see what the Arduino platform is and then through a series of ten, carefully graded chapters, in order of increasing level of complexity, we will become familiar with building device prototypes based on the Arduino platform.

The following diagram depicts the broad areas that the reader will learn in this book:

Figure 1: Organization of chapters in the book

At the end of each chapter, there is a Try the following section, meant to inspire the reader's imagination and take them a step nearer to becoming more self-reliant. The reader is urged to try out the suggestions in this section to get further insights into the various aspects covered in the chapters.

All the code files used in the chapters are available at the following online location:
https://github.com/PacktPublishing/Learn-Arduino-Prototyping-in-10-Days.

At the very end of each chapter there is a Things to remember section. This section lists all the important points that were covered and is meant to serve as a quick recollection of the concepts learnt in a chapter.

 

How to use the book

The initial chapters will provide detailed steps for building the example prototypes. However, sometimes during the course of the chapters, the reader will be subtly encouraged to become more independent. As you proceed through the chapters you will notice that the book starts covering only the bare minimum details, while you start understanding and doing more on your own.

  • If you are a beginner, go through the chapters one by one, in the order laid out in the book.
  • If you have a basic knowledge of Arduino prototyping then you may start from Chapter 4, Day 2 - Interfacing with Sensors.
  • If you are already aware of prototyping with Arduino, then you may start from Chapter 6, Day 4 - Building a Standalone Device,from Day 5 onwards.
  • Chapters up to Day 6 are for general device prototyping, whereas starting from Day 7 onwards the chapters deal with wireless communications. You may choose as per your requirements.

If the learning curve is perceived to be steep, then you are advised to pause, relax, and revisit the chapters as many times as needed. However, it is recommended that at no stage of the book should you rush; imbibe steadily and let the concepts sink into you so that you can understand and feel how Arduino-based prototyping is done.

 

Things you will need to get started

It is advisable to purchase an Arduino Uno starter kit to begin with. Usually a starter kit should cover most of the basic hardware components. However, there may be some advanced components (such as the sensor modules) that will have to be purchased separately. It is recommended you perform your own research for procuring the components at your convenience.

The components in the following table have been listed uniquely and incrementally. For example, a Piezo Buzzer has been used on Day 1 as well as Day 3, however, it has been listed only once for Day 1. This has been done intentionally to assist you during your procurement phase. However, if you want to focus on a particular chapter then you are advised to visit that chapter for a complete list of hardware parts required for the prototypes in that chapter:

Chapter

Hardware requirements (mentioned incrementally)

The Arduino platform

Arduino Uno R3 board, USB A to USB B cable

Day 1

One half-sized breadboard, three red LEDs, three pieces 220 Ohms resistors, a jumper wire set (male-to-male, male-to-female, female-to-female), one Piezo Buzzer, one piece 100 Ohms resistor, one N2222 transistor, two pieces 150 Ohms resistors, one piece IN4007 diode, one push button, one piece 10K Ohms resistor

Day 2

One photodiode, one photo resistor (LDR), one DHT11 temperature sensor, one 5K Ohms resistor, one soil moisture sensor

Day 3

One MQ2 gas sensor, one SD card module (micro SD), one micro SD card

Day 4

One full-sized breadboard, one piece 9V battery, one HC-SR04 ultrasonic sensor, one 16x2 LCD character display, one piece 10K potentiometer, two pieces 220 Ohms, and one piece 150 Ohms resistors.

Day 5

Four pieces 1.5V batteries, one 4 pieces battery holder, one push button, one small DC motor, one piece N2222 transistor, one piece IN4001/IN4007 diode, two pieces 150 Ohms resistors, one piece 10K Ohms resistor

Day 6

One sound detection sensor module, one 5V 10 amp AC relay, one AC light bulb (with holder), some insulated AC power wires

Day 7

One consumer remote control set (or a normal TV remote), one TSOP1738 (or equivalent) infrared receiver, one SM0038 IR receiver, one infrared transmitter LED (Blue/Transparent/other color), one NPN transistor (such as a N2222/BC547 general purpose NPN transistor)

Day 8

An additional Arduino Uno R3 board with USB A to USB B cable, two NRF24L01 2.4 GHz MSI band RF modules, one HC-04 Bluetooth module, three pieces 1K resistors

Day 9

One SIM800 GSM module (Arduino compatible), one active SIM card, one GSM module matching DC power source (Either battery or AC to DC adapter)

Day 10

One ESP8266 Wi-Fi chip, Wi-Fi router or/and Internet sharing capable smart phone

Table 1: List of hardware components
 

Things you will learn in this book

After completing this book, you will have learnt the following types of projects, devices, and fundamentals.

The following are the types of projects:

  • 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 AC powered devices (a light bulb)
  • Using transmitters, receivers and transceivers
  • Short range wireless communications (using Bluetooth and radio frequency)
  • Long range wireless communications (using GSM modules)

The following are sensors/device examples:

  • External LEDs
  • Photodiodes
  • Photo resistors (LDRs)
  • DHT11 temperature and humidity sensor
  • Soil moisture sensor
  • MQ2 smoke detector
  • Piezo Buzzer
  • SD card module
  • 16x2 LCD
  • HC-SR05 ultrasonic sensor
  • DC motor
  • Push button
  • AC-DC relay
  • Sound detector
  • TSOP1738/TSOP1838 IR receiver
  • SM0038 IR receiver
  • IR transmitter LED
  • NRF24L01 RF module
  • HC-04 Bluetooth module
  • GSM SIM800 module
  • ESP8266 Wi-Fi module

The following is the list of fundamentals/concepts:

  • Arduino C programs/sketches
  • Measuring voltage via analog pins from resistors, diodes, and transistors
  • Using serial window for viewing program output and debugging
  • Ohm's law calculations
  • Bread boarding
  • Voltage based logical HIGH/LOW
  • Using homogeneous voltage devices that is, 5V devices with Arduino Uno R3
  • Using device datasheets
  • Working with Arduino libraries
  • Digital input/output
  • Analog input/output
  • Using interrupts
  • Reverse current in motors
  • Voltage division technique
  • Using external power supply
  • Using multiple power sources
  • Concept of pull up resistors
  • Concept of pull down resistors
  • Concept of Pulse Width Modulation (PWM) for motor speed control
  • Using multiple power sources in a single setup
  • Common grounding
  • Keeping DC and AC powered circuits separate
  • Working with Infrared (IR) signals
  • Prototyping Radio Frequency (RF) devices
  • Working with a Bluetooth device
  • Wi-Fi module
  • Basic AT commands
  • GSM module
  • Internet of Things
  • IoT edge device prototyping
  • IoT Cloud
 

Summary

In this first chapter, we have understood who should benefit from using this book. We have also seen how the chapters in this book are structured in a well-planned manner, so that the reader can gain maximum knowledge in a minimum time frame.

By the end of this book, our aim is to have made you proficient in prototyping with the Arduino platform in just 10 days, and we urge you to take on the challenge! After completing the fundamental project types in this book, you will be in a state to build almost anything on your own. Some of the interesting areas that you will be ready to build after mastering the topics in this book will be infrared and radio frequency remote controlled gadgets, smart retail projects, smart environment projects, and Internet of Things projects.

From the next chapter, we shall begin our journey of learning prototyping on the Arduino platform where we will be introduced to the basics.

About the Author
  • Kallol Bosu Roy Choudhuri

    Kallol Bosu Roy Choudhuri is a passionate Arduino prototype creator. He is a professional computer science engineer, an IT enterprise architect, and thought leader with several years of industry experience. He provides expert consultancy on matters of software architecture and works on many exciting and innovative IoT devices and solutions. The author comes with more than 14 years of industry experience and works passionately with an entrepreneurial spirit. He practices as a senior architect in the Enterprise Architecture Group at Atos India, and works on many exciting and innovative engagements. He specializes in architecture and design, performance engineering, legacy modernization, IT transformations, assessments, strategy, presales, and consulting. Prior to Atos, he has worked for other multinational software companies such as Tata Consultancy Services and Cognizant Technology Solutions and has served many Fortune 500 customers at their site offices in Europe and North America.

    Browse publications by this author
Learn Arduino Prototyping in 10 days
Unlock this book and the full library FREE for 7 days
Start now