Book Image

Smart Internet of Things Projects

By : Agus Kurniawan
Book Image

Smart Internet of Things Projects

By: Agus Kurniawan

Overview of this book

Internet of Things (IoT) is a groundbreaking technology that involves connecting numerous physical devices to the Internet and controlling them. Creating basic IoT projects is common, but imagine building smart IoT projects that can extract data from physical devices, thereby making decisions by themselves. Our book overcomes the challenge of analyzing data from physical devices and accomplishes all that your imagination can dream up by teaching you how to build smart IoT projects. Basic statistics and various applied algorithms in data science and machine learning are introduced to accelerate your knowledge of how to integrate a decision system into a physical device. This book contains IoT projects such as building a smart temperature controller, creating your own vision machine project, building an autonomous mobile robot car, controlling IoT projects through voice commands, building IoT applications utilizing cloud technology and data science, and many more. We will also leverage a small yet powerful IoT chip, Raspberry Pi with Arduino, in order to integrate a smart decision-making system in the IoT projects.
Table of Contents (13 chapters)
Smart Internet of Things Projects
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Preface

Internet of Things is a groundbreaking technology that is connecting numerous physical devices to the internet and controlling them. Creating basic IoT projects is common but imagine building smart IoT projects that can extract data from physical devices, thereby making decision by itself.

Smart Internet of Things project is an essential reference of practical solution to build a project that combines IoT and intelligent system. Basic statistics and various applied algorithms on Data Science and Machine Learning are introduced to accelerate your learning of how to integrate decision system into the physical devices. This book contains IoT projects, such as building a smart temperature controller, creating your own vision machine project, how to build an autonomous mobile robot like a car, how to control IoT projects through voice command, building IoT applications utilizing cloud technology, and data science and many more.

I hope you find this book useful and that it will help you to take your skill to a higher level.

What this book covers

Chapter 1, Make Your IoT Project Smart, helps you to sense and actuate from IoT devices, such as Arduino and Raspberry Pi. Various Python libraries related to Statistics and Data Science is introduced so that we know their existence.

Chapter 2, Decision System for IoT Projects, helps you learn how to build a decision system that is implemented on IoT devices. Reviewing some Python libraries related to decision system and then implementing decision system program into IoT boards will also be covered.

Chapter 3, Build Your Own Machine Vision, explores how to make a machine to see by deploying a camera and starting to understand machine vision till we detect and track object model by training our machine. Several camera modules will also be reviewed.

Chapter 4, Make Your Own Autonomous Car Robot, explores how to build a car robot. It integrates some sensor and actuator devices to make a robot run without human interference. We will also learn how to navigate a robot and control it from your computer.

Chapter 5, Building Voice Technology on IoT Projects, helps you in making your IoT board speak something. Various sound and speech modules will be explored during the project journey.

Chapter 6, Building Data Science-based Cloud for IoT Projects, explores how to apply cloud platforms on IoT projects; back-end infrastructure for our IoT projects is also important. By distributing IoT boards on some locations with different countries needs more attention in acquiring sensor data.

What you need for this book

You should have Raspberry Pi, Arduino and several electronics components to run the entire projects in this book.

Who this book is for

This book is for those who want to learn how to build IoT projects with integrating various machine learning algorithms. You also will learn to implement machine learning into IoT project in real application. However, you don't need to have any previous experience with the Raspberry Pi and Arduino.

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: “ We build a linear regression using sm.OLS().”

A block of code is set as follows:

import RPi.GPIO as GPIO
import time

led_pin = 17
GPIO.setmode(GPIO.BCM)
GPIO.setup(led_pin, GPIO.OUT)

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

try:
    while 1:
        print(“turn on led”)
        GPIO.output(led_pin, GPIO.HIGH)
        time.sleep(2)
        print(“turn off led”)
        GPIO.output(led_pin, GPIO.LOW)
        time.sleep(2)

except KeyboardInterrupt:
    GPIO.output(led_pin, GPIO.LOW)
    GPIO.cleanup()

print(“done”)

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

$ mkdirgps_web
$ cdgps_web
$ nano gspapp.py

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: “Click the menu Sketch | Include Library | Manage Libraries so you will get a dialog.”

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of.

To send us general feedback, simply e-mail , and mention the book's title in the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for this book 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 files e-mailed directly to you.

You can download the code files by following these steps:

  1. Log in or register to our website using your e-mail address and password.

  2. Hover the mouse pointer on the SUPPORT tab at the top.

  3. Click on Code Downloads & Errata.

  4. Enter the name of the book in the Search box.

  5. Select the book for which you're looking to download the code files.

  6. Choose from the drop-down menu where you purchased this book from.

  7. Click on Code Download.

You can also download the code files by clicking on the Code Files button on the book's webpage at the Packt Publishing website. This page can be accessed by entering the book's name in the Search box. Please note that you need to be logged in to your Packt account.

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/Smart-Internet-of-Things-Projects. We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title.

To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.

Piracy

Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors and our ability to bring you valuable content.

Questions

If you have a problem with any aspect of this book, you can contact us at , and we will do our best to address the problem.