Reader small image

You're reading from  Hands-On Edge Analytics with Azure IoT

Product typeBook
Published inMay 2020
PublisherPackt
ISBN-139781838829902
Edition1st Edition
Right arrow
Author (1)
Colin Dow
Colin Dow
author image
Colin Dow

Colin Dow has been 3D printing since 2013 starting with the laser cut wooden frame version of the Ultimaker 3D printer. He has gone through a dozen or so 3D printers over the years from MakerBots, PrintrBots, early Prusa i3s, delta printers, and liquid resin printers. Colin has been working with OpenSCAD since 2014 using it with 3D printers to design and manufacture model rocketry parts for his model rocketry business. Through his aerospace workshops he has introduced many students to 3D printing including in-class demonstrations of 3D printing. Over the last few years Colin has been designing and building automated drones for his drone startup using 3D printers and OpenSCAD.
Read more about Colin Dow

Right arrow

To get the most out of this book

To get the most out of this book, having the following will be beneficial:

  • In Chapter 2, How Does IoT Edge Analytics Work?, we will use an ESP8266 with an RGB LED to create a weather forecasting application.
  • In Chapter 5, Using the Raspberry Pi with Azure IoT Edge, we will install Azure IoT Edge onto a Raspberry Pi 3B+. Although there is a newer version of the Raspberry Pi (the Raspberry Pi 4), the Raspberry Pi 3B+ will be needed in order to install an older version of the Raspbian operating system.
  • A computer with Windows installed will be needed to run the Microsoft Device Explorer tool that we will use in Chapter 4, Working with Microsoft Azure IoT Hub, and Chapter 5, Using the Raspberry Pi with Azure IoT Edge.
  • The purchase of an ESP32 with LoRa and the Pycom LoPy/LoPy 4 will assist in Chapter 6, Using MicroPython for Edge Analytics, as we cover MicroPython and microcontrollers.
  • A webcam will be used in Chapter 8, Designing a Smart Doorbell with Visual Recognition, as we build our smart doorbell application.

Software/hardware covered in the book

OS requirements

Raspberry Pi 3B+

Raspbian Stretch

Pycom LoPy / LoPy 4

Latest MicroPython firmware from Pycom

ESP32 with LoRa

Latest version of MicroPython

ESP8266

Default firmware

RGB LED

DHT11 temperature sensor

PC

Windows 10 and Node-RED

If you are using the digital version of this book, we advise you to type the code yourself or access the code via the GitHub repository (link available in the next section). Doing so will help you avoid any potential errors related to the copying and pasting of code.

Download the example code files

You can download the example code files for this book from your account at www.packt.com. If you purchased this book elsewhere, you can visit www.packtpub.com/support and register to have the files emailed directly to you.

You can download the code files by following these steps:

  1. Log in or register at www.packt.com.
  2. Select the Support tab.
  3. Click on Code Downloads.
  4. Enter the name of the book in the Search box and follow the onscreen instructions.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

  • WinRAR/7-Zip for Windows
  • Zipeg/iZip/UnRarX for Mac
  • 7-Zip/PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Hands-On-Edge-Analytics-with-Azure-IoT. In case there's an update to the code, it will be updated on the existing GitHub repository.

We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Download the color images

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "The LoRaMessage class is used to send LoRa messages to the gateway device."

A block of code is set as follows:

import pycom
import time

pycom.heartbeat(False)

while True:
pycom.rgbled(0xFF0000) # Red
time.sleep(1)
pycom.rgbled(0x00FF00) # Green
time.sleep(1)
pycom.rgbled(0x0000FF) # Blue
time.sle

Any command-line input or output is written as follows:

$ sudo apt-get update
$ sudo apt-get install moby-engine

Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Review your instance before clicking on the green + Create New Instance button."

Warnings or important notes appear like this.
Tips and tricks appear like this.
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Hands-On Edge Analytics with Azure IoT
Published in: May 2020Publisher: PacktISBN-13: 9781838829902

Author (1)

author image
Colin Dow

Colin Dow has been 3D printing since 2013 starting with the laser cut wooden frame version of the Ultimaker 3D printer. He has gone through a dozen or so 3D printers over the years from MakerBots, PrintrBots, early Prusa i3s, delta printers, and liquid resin printers. Colin has been working with OpenSCAD since 2014 using it with 3D printers to design and manufacture model rocketry parts for his model rocketry business. Through his aerospace workshops he has introduced many students to 3D printing including in-class demonstrations of 3D printing. Over the last few years Colin has been designing and building automated drones for his drone startup using 3D printers and OpenSCAD.
Read more about Colin Dow