Book Image

Mastering IOT

By : Colin Dow, Perry Lea
Book Image

Mastering IOT

By: Colin Dow, Perry Lea

Overview of this book

The Internet of Things (IoT) is the fastest growing technology market. Industries are embracing IoT technologies to improve operational expenses, product life, and people's well-being. We’ll begin our journey with an introduction to Raspberry Pi and quickly jump right into Python programming. We’ll learn all concepts through multiple projects, and then reinforce our learnings by creating an IoT robot car. We’ll examine modern sensor systems and focus on what their power and functionality can bring to our system. We’ll also gain insight into cloud and fog architectures, including the OpenFog standards. The Learning Path will conclude by discussing three forms of prevalent attacks and ways to improve the security of our IoT infrastructure. By the end of this Learning Path, we will have traversed the entire spectrum of technologies needed to build a successful IoT system, and will have the confidence to build, secure, and monitor our IoT infrastructure. This Learning Path includes content from the following Packt products: Internet of Things Programming Projects by Colin Dow Internet of Things for Architects by Perry Lea
Table of Contents (34 chapters)
Title Page
Copyright
About Packt
Contributors
Preface
Free Chapter
1
The IoT Story
Index

Learning how to control the robot car


In Chapter 23, Controlling the Robot Car Using Python, we will start writing code to control T.A.R.A.S. Before we jump into the code, it's a good idea to look at how we may set up Raspberry Pi to access the interfaces that are needed. We should install the libraries we need to use to create the control code.

Configuring our Raspberry Pi

To ensure that we have the inferences that we require enabled for the robot car, do the following:

  1. Navigate to Application Menu | Preferences | Raspberry Pi Configuration
  2. Click on the Interfaces tab
  1. Enable Camera, SSH, and I2C. You may need to restart your Raspberry Pi:

Note

If you haven't changed the default password for the pi user, you may get a warning about it after you enable SSH. It's a good idea to change the password from the default. You may change it under the System tab in the Raspberry Pi Configuration tool.

Python library for Adafruit Servo HAT

In order to access the Adafruit Servo HAT, you must download and install...