Arduino IoT Cloud for Developers

Book description

Understand essential IoT concepts to build smart IoT projects at reduced costs using the Arduino IoT Cloud platform, Arduino, ESP32 series boards, Amazon Alexa Voice Assistant, and MQT-135 with this practical guide

Key Features

  • Learn about the Arduino IoT Cloud from scratch with hands-on projects
  • Gain a solid understanding of IoT application development from basics to advanced features
  • Explore the Arduino IoT Cloud’s capabilities for commercial IoT solutions in depth
  • Purchase of the print or Kindle book includes a free PDF eBook

Book Description

The Arduino IoT Cloud offers a variety of features for building modern IoT solutions while reducing time and costs for prototyping and deployment. This book is a step-by-step guide, helping you master the powerful Arduino IoT Cloud ecosystem.

This book begins by introducing you to the IoT landscape including its architecture, communication technologies, and protocols and then to the capabilities of the Arduino IoT Cloud platform and the Cloud Editor. With practical projects, such as monitoring air quality, building a portable asset tracker, and creating a remote alarm system using the LoRaWAN specification, you'll learn how to implement real-world IoT applications. Next, you'll explore communication between IoT devices and cloud platforms as well as the implementation of the Arduino IoT Cloud SDK and JavaScript for advanced customization. You'll also find out how to program IoT nodes, analyze the surrounding environment data, and visualize it on dashboards. Additionally, you’ll get to grips with advanced features such as task scheduling, synchronization, remote over-the-air updates for IoT nodes, and scripting with CCLI, through hands-on examples.

By the end of this book, you’ll have learned how to work with the Arduino IoT Cloud platform and related hardware devices and will be able to develop industry-specific and cost-effective IoT solutions, such as smart homes and smart agriculture.

What you will learn

  • Gain a solid understanding of IoT fundamentals and concepts
  • Build creative IoT projects using Arduino MKR boards, Pulse sensors, and more
  • Master various communication technologies, including LoRaWAN and 3G/4G
  • Harness data exchange between IoT devices and cloud platforms using Zapier or IFTTT
  • Explore advanced features like scheduling, over-the-air updates, and scripting
  • Understand easy-to-sync properties across multiple devices with no-code
  • Develop voice-assisted home automation and heart rate tracking applications

Who this book is for

This book is for aspiring IoT developers and seasoned professionals eager to harness the potential of Arduino and cloud integration as well as technology enthusiasts, students, and hobbyists interested in experimenting with IoT technologies. Prior knowledge of basic electronics and embedded systems, cloud computing, Arduino, and programming languages like C and JavaScript is needed.

Table of contents

  1. Arduino IoT Cloud for Developers
  2. Note from the Founding Director of EZIT
  3. Contributors
  4. About the author
  5. About the reviewer
  6. Preface
    1. Who this book is for
    2. What this book covers
    3. To get the most out of this book
    4. Download the example code files
    5. Conventions used
    6. Get in touch
    7. Share Your Thoughts
    8. Download a free PDF copy of this book
  7. Part 1: Introduction to IoT and Communication Technologies and the Arduino IoT Cloud
  8. Chapter 1: Introduction to the IoT and Arduino
    1. What is the Internet of Things?
      1. Intelligence at the edge versus on the cloud
      2. The Arduino ecosystem
      3. The IoT, big data, artificial intelligence, and machine learning
      4. The IoT, IIoT, and I4.0
    2. Benefits for users
    3. The enablement of different business models
      1. Business models enabled by the IoT
    4. The architecture of an end-to-end IoT application
    5. Communication technologies and protocols
    6. Security aspects and device provisioning
      1. Hardware security
      2. Encryption for secure communication
      3. Bulk device provisioning
      4. Arduino PRO for commercial use cases
    7. Open source
      1. Benefits and obligations of different open source licenses
      2. The protection of your intellectual property
      3. Respect for the Arduino trademarks in commercial applications
    8. Summary
  9. Chapter 2: First Look at the Arduino IoT Cloud
    1. Technical requirements
    2. Understanding how the Arduino IoT Cloud works
    3. The Arduino IoT Cloud and the MKR1010 Hello World example
      1. What is the Arduino Create Agent?
      2. Setting up the Thing, device, and variable
      3. Writing a sketch
      4. Creating a dashboard for web and mobile with an interactive widget
      5. Assignment 1
    4. Introducing Node-RED
    5. The Arduino IoT Cloud and a Node-RED Hello World example
      1. A tour of the Node-RED editor
      2. Installing the Arduino IoT Cloud module for Node-RED
      3. Setting up an API, variable, and dashboard widget
      4. Creating a first project with Node-RED
      5. Assignment 2
    6. Summary
  10. Chapter 3: Insights into the Arduino IoT Cloud Platform and Web Editor
    1. Technical requirements
    2. Introducing the Arduino IoT Cloud interface
      1. Devices and things
      2. Dashboards
      3. Integrations and templates
    3. Exploring input controls
      1. Switch, push button, slider, and stepper
      2. Color, dimmed light, and colored light
      3. Time picker (configuration)
      4. Scheduler (configuration)
    4. Delving into output controls
      1. Value, status, gauge, percentage, and LED
      2. Maps and charts
      3. Messenger and sticky notes
    5. Understanding the Arduino Web Editor
      1. Sketchbook
      2. Examples
      3. Libraries and the Library Manager
      4. Monitor AKA the Serial Monitor
      5. Reference, help, and preferences
      6. Arduino IoT Web Editor features
    6. Assignments
      1. Assignment 1
      2. Assignment 2
      3. Assignment 3
    7. Summary
  11. Part 2: Getting Hands-On with Different Communication Technologies
  12. Chapter 4: Project #1 – a Smarter Setup for Sensing the Environment
    1. Technical requirements
    2. Why is air quality monitoring necessary?
    3. Exploring the hardware requirements
    4. Understanding the project architecture
      1. Schematics and design
      2. PCB design and the assembly of hardware components
    5. Setting up the Thing, network credentials, cloud variables, and code
      1. Cloud variables
      2. Associating a device
      3. Network
      4. Coding
    6. Setting up a dashboard for web and mobile
    7. What’s next?
    8. Summary
  13. Chapter 5: Project #2 – Creating a Portable Thing Tracker Using MKR GSM 1400
    1. Technical requirements
    2. Enhancing operations with IoT asset tracking and remote control
    3. Exploring the advantages of GSM/LTE/NB-IoT communication technologies
    4. Seamless global connectivity with IoT SIM cards
    5. Building blocks – sensors and development boards for IoT
    6. Designing the project architecture
      1. Schematic design and assembly
      2. Testing GPS module data
    7. Activating SIM cards for IoT deployment
    8. Configuring the Thing, network credentials, cloud variables, and code
      1. Cloud variables
      2. Associating a device
      3. Network
      4. Coding
    9. Creating comprehensive web and mobile dashboards
    10. What next?
    11. Summary
  14. Chapter 6: Project #3 – a Remote Asset Tracking Application with LoRaWAN
    1. Technical requirements
    2. Understanding LoRaWAN and its IoT applications
      1. Usage in IoT
    3. LoRaWAN versus other communication technologies
    4. Components of a LoRaWAN IoT application
    5. Essential hardware – sensors and development boards
    6. Designing the project architecture
      1. Schematics design and assembly
      2. Testing GPS module data
    7. Setting up the Thing, device association, cloud variables, and code
      1. Cloud variables
      2. Associating a device
      3. Network
      4. Coding
    8. Configuring the The Things Indoor Gateway
    9. Creating web and mobile dashboards
    10. What next?
    11. Summary
  15. Part 3: Exchanging Data between Nodes and Cloud Applications
  16. Chapter 7: Enabling Communication between Different Devices
    1. Technical requirements
    2. What is D2D communication in the IoT cloud?
    3. The benefits of Arduino IoT Cloud thing-to-thing communication
    4. Hardware components – sensors and development boards
    5. Project architecture
      1. Schematics design and assembly
    6. Setting up a Thing
      1. Cloud variables
      2. Associating a device
      3. Network
      4. Coding
    7. Implementation of GUI using synchronized cloud variables
    8. Limitations of cloud variable/property synchronization
    9. What next?
    10. Summary
  17. Chapter 8: Working with the Arduino IoT Cloud SDK and JavaScript
    1. Technical requirements
    2. Demystifying the Arduino IoT Cloud SDK – functionality and operation
    3. Securing access – unveiling API keys and authentication
    4. Initial exploration – test drive using Postman
    5. Diverse platform compatibility – SDKs for various environments
    6. Step-by-step – installing the Arduino Node.js SDK client
    7. Interacting with devices – hands-on with the Node.js SDK
      1. Creating a device
      2. Updating a device
      3. Deleting a device
      4. Listing devices
      5. Showing a device
      6. Device properties/variables
    8. Engaging with Things – Node.js SDK implementation guide
      1. Creating a Thing
      2. Updating a Thing
      3. Creating a Thing sketch
      4. Deleting a Thing
      5. Listing Things
      6. Showing a Thing
    9. Exploring properties – Node.js SDK interaction techniques
      1. Creating a property
      2. Updating a property
      3. Deleting a property
      4. Listing properties
    10. Crafting dashboards – unleashing potential via the Node.js SDK
      1. Creating a dashboard
      2. Updating a dashboard
      3. Deleting a dashboard
      4. Listing dashboards
    11. Fine-tuning with the Node.js SDK – property value management
      1. Get a property value
      2. Set a property value
    12. Assignment
    13. Summary
  18. Chapter 9: Project 4 – Collecting Data from the Soil and Environment for Smart Farming
    1. Technical requirements
    2. Smart farming with IoT
    3. Essential hardware for your agri-tech project
    4. Architecting your agriculture IoT system
      1. Schematics and design
      2. PCB design and the assembly of hardware components
    5. Perfecting sensor calibration
    6. Setting up things, networks, and cloud variables
      1. Cloud variables
      2. Network configuration
      3. Coding
    7. Creating web and mobile dashboards
    8. What next?
    9. Summary
  19. Chapter 10: Project #6 – Making Your Home Smarter with a Voice Assistant
    1. Technical requirements
    2. Creating smarter homes with IoT
    3. Essential components – sensors and development boards
    4. Blueprint for your smart home IoT project
      1. Schematic design and assembly
      2. Testing the WS2812 with the Arduino IDE
    5. Initial setup – Thing, network credentials, cloud variables, and code
      1. Cloud variables
      2. Associating a device
      3. Network
      4. Coding
    6. User-friendly controls – building web and mobile dashboards
    7. Enhancing controls – integrating the Arduino IoT Cloud with Amazon Alexa
    8. What next?
    9. Summary
  20. Part 4: Learning Advanced Features of the Arduino IoT Cloud and Looking Ahead
  21. Chapter 11: Implementing the Arduino IoT Cloud Scheduler and Over-the-Air Features
    1. Technical requirements
    2. The importance of the Scheduler in IoT
    3. Using the Arduino IoT Cloud Scheduler – an MKR Wi-Fi 1010 illustration
      1. The Arduino IoT Cloud Scheduler
      2. An MKR Wi-Fi 1010 example
    4. Initial configuration – Things, network credentials, cloud variables, and code
      1. Cloud variables
      2. Associating a device
      3. Network configuration
      4. Coding
    5. Dashboard creation and a deep dive into the Scheduler widget
    6. The task at hand – an assignment
    7. Exploring OTA updates in IoT
    8. Leveraging the Arduino IoT Cloud for OTA updates
      1. The Arduino IoT Cloud pros
      2. Arduino IoT Cloud OTA cons
      3. A list of compatible development hardware for Arduino OTA
      4. Implementing the OTA update on the MKR Wi-Fi 1010
      5. How OTA works
    9. Summary
  22. Chapter 12: Project #6 – Tracking and Notifying about Your Heart Rate
    1. Technical requirements
    2. Exploring IoT for smart health solutions
    3. Knowing the hardware components – sensors and development boards
    4. Understanding the project architecture
      1. Schematics design and assembly
      2. Sensor calibration
    5. Setting up a Thing, network credentials, cloud variables, and code
      1. Cloud variables
      2. Device association
      3. Network
      4. Coding
    6. Setting up a dashboard for web and mobile
    7. Setting up the notification service
    8. What next?
    9. Summary
  23. Chapter 13: Scripting the Arduino IoT Cloud with Cloud CLI
    1. Technical requirements
    2. What is the Arduino Cloud CLI?
    3. Securing access – unveiling API keys and authentication
    4. Installing the Arduino Cloud CLI
    5. Interacting with devices
      1. Creating a device
      2. Listing devices
      3. Deleting a device
      4. Tagging and untagging a device
      5. Extracting a template from a Thing
      6. Creating a Thing
      7. Cloning a Thing
      8. Listing Things
      9. Deleting a Thing
      10. Associating a device with a Thing
      11. Tagging and untagging a Thing
    6. Crafting dashboards – unleashing potential via the command line
      1. Extracting a template from a dashboard
      2. Listing dashboards
      3. Deleting a dashboard
      4. Creating a dashboard
    7. OTA management
      1. Exporting a binary using the Arduino IDE
      2. Uploading a sketch to a device
    8. What next?
    9. Summary
  24. Chapter 14: Moving Ahead in the Arduino IoT Cloud
    1. Arduino IoT Cloud plans
      1. Plans for individuals
      2. Plans for schools
      3. The enterprise base plan
    2. Arduino PRO
      1. Arduino PRO hardware
      2. Arduino PRO software
    3. Further resources and insights
    4. Summary
  25. Index
    1. Why subscribe?
  26. Other Books You May Enjoy
    1. Packt is searching for authors like you
    2. Share Your Thoughts
    3. Download a free PDF copy of this book

Product information

  • Title: Arduino IoT Cloud for Developers
  • Author(s): Muhammad Afzal
  • Release date: November 2023
  • Publisher(s): Packt Publishing
  • ISBN: 9781837637171