O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Learn Arduino Prototyping in 10 days

Book Description

The ultimate power-packed crash course in building Arduino-based projects in just 10 days!

About This Book

  • A carefully designed 10-day crash course, covering major project/device types, with 20+ unique hands-on examples

  • Get easy-to-understand explanations of basic electronics fundamentals and commonly used C sketch functions

  • This step-by-step guide with 90+ diagrams and 50+ important tips will help you become completely self-reliant and confident

  • Who This Book Is For

    This book is a beginner’s crash course for professionals, hobbyists, and students who are tech savvy, have a basic level of C programming knowledge, and basic familiarity with electronics, be it for embedded systems or the Internet of Things.

    What You Will Learn

  • Write Arduino sketches and understand the fundamentals of building prototype circuits using basic electronic components, such as resistors, transistors, and diodes

  • Build simple, compound, and standalone devices with auxiliary storage (SD card), a DC battery, and AC power supplies

  • Deal with basic sensors and interface sensor modules by using sensor datasheets

  • Discover the fundamental techniques of prototyping with actuators

  • Build remote-controlled devices with infrared (IR), radio frequency (RF),

  • and telephony with GSM

  • Learn IoT edge device prototyping (using ESP8266) and IoT cloud configuration

  • In Detail

    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.

    Style and approach

    This step-by- step guide will serve as a quick, 10-day crash course to help you become well acquainted with the Arduino platform.

    Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.

    Table of Contents

    1. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Downloading the color images of this book
        3. Errata
        4. Piracy
        5. Questions
    2. Boot Camp
      1. Organization of the chapters
      2. How to use the book
      3. Things you will need to get started
      4. Things you will learn in this book
      5. Summary
    3. The Arduino Platform
      1. Introduction to the Arduino platform
      2. Overview of Arduino prototyping
      3. Setting up the Arduino board
      4. Arduino program structure and execution
      5. Understanding the first Arduino sketch
      6. Compiling, loading and running a sketch
      7. Commonly used in-built C sketch functions
      8. Digital input and output
      9. Analog input and output
      10. Try the following
      11. Things to remember
      12. Summary
    4. Day 1 - Building a Simple Prototype
      1. The three LED project
      2. Rationale for using a resistor
      3. The Piezo Buzzer project
      4. Using transistors
      5. Using diodes
      6. LED with a push button
      7. Try the following
      8. Things to remember
      9. Summary
    5. Day 2 - Interfacing with Sensors
      1. Types of sensor components
        1. Basic sensor components
          1. Using a basic sensor - photodiode
          2. Using a basic sensor - photo resistor (LDR)
        2. Using integrated sensor modules
          1. Using a temperature sensor module (with an Arduino library)
          2. Understanding sensor module datasheets
          3. Installing the sensor-specific Arduino library
          4. Sensor interfacing sketch
          5. Viewing the program output
        3. Using a soil moisture sensor module (without an Arduino library)
          1. Soil moisture sensor circuit
          2. Soil moisture sensor sketch
      2. Future inspiration
      3. Try the following
      4. Things to remember
      5. Summary
    6. Day 3 - Building a Compound Device
      1. Compound devices
      2. Building a smoke detector
      3. Smoke detector - Digital I/O method
      4. Smoke detector sketch - Digital I/O method
      5. Smoke detector (analog I/O method)
      6. Smoke detector sketch (analog I/O method)
      7. Local storage with SD card modules
      8. Try the following
      9. Things to remember
      10. Summary
    7. Day 4 - Building a Standalone Device
      1. Standalone devices
      2. External power supply options
      3. Determining power source capacity
      4. Building a distance measurement device
      5. Distance measurement device circuit
      6. Distance measurement device sketch
      7. Operating the distance measurement device
      8. Finishing touches
      9. Try the following
      10. Things to remember
      11. Summary
    8. Day 5 - Using Actuators
      1. About actuators
      2. Special considerations while using DC motors
      3. A basic DC motor prototype
      4. Basic DC motor sketch
      5. DC motor speed control - PWM method
        1. DC motor speed control sketch
      6. Using Arduino interrupts
      7. Interfacing with a servo motor
        1. Servo motor control circuit
        2. Servo motor control sketch
      8. Future inspiration
      9. Try the following
      10. Things to remember
      11. Summary
    9. Day 6 - Using AC Powered Components
      1. Using relays with AC powered devices
      2. Part 1 - Simulation of sound activated light bulb controller
        1. The sound-activated device sketch
      3. Part 2 - Actual prototype for sound activated light bulb controller
      4. Future inspiration - Automatic room lights
      5. Try the following
      6. Things to remember
      7. Summary
    10. Day 7 - The World of Transmitters, Receivers, and Transceivers
      1. Understanding Infrared communications
        1. Infrared communication frequency
        2. Infrared communication protocol
      2. Hacking into an existing remote control
      3. Building an Infrared receiver device
        1. The Arduino Infrared library
        2. Using IR receiver TSOP series IR receivers
        3. Using IR receiver SM0038
      4. Building an Infrared transmitter device
        1. Using an IR transmitter LED
      5. Controlling Arduino projects
      6. Transceivers
      7. Try the following
      8. Things to remember
      9. Summary
    11. Day 8 - Short Range Wireless Communications
      1. Building a radio frequency device
        1. Using the nRF24L01 transceiver module
          1. Wiring nRF24L01 with Arduino
          2. Downloading the open source RF library for Arduino
          3. Transmitting radio frequency waves
          4. Receiving radio frequency signals
          5. Testing the RF transmitter-receiver pair
        2. Bluetooth communications
          1. Using the HC-05 Bluetooth module
          2. Connecting HC-05 to Arduino Uno
          3. HC-05 sketch
          4. Communicating with the HC-05 prototype
      2. Try the following
      3. Things to remember
      4. Summary
    12. Day 9 - Long-Range Wireless Communications
      1. The GSM module
      2. AT commands
      3. GSM module interfacing with Arduino Uno
      4. GSM module sketch
      5. Forest fire early warning system - Inspiration
      6. Try the following
      7. Things to remember
      8. Summary
    13. Day 10 - The Internet of Things
      1. Introduction to IOT
        1. IoT edge devices
        2. IoT Cloud platforms
      2. IoT cloud configuration
        1. Step 1 - IoT cloud registration
        2. Step 2 - Configuring an edge device channel
      3. Edge device setup
        1. Building the edge device
        2. Edge device sketch
      4. Smart retail project inspiration
      5. IOT project considerations
      6. Try the following
      7. Things to remember
      8. Summary