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

Building your own decision system-based IoT


In this section, we build a simple decision system using fuzzy logic on Raspberry Pi. We use Python for implementation.

We build a system to monitor temperature and humidity in a room to decide if the environment is comfortable or not. If the environment is not comfortable, then we turn on a cooler machine.

The following is our design:

To sense temperature and humidity, we use the DHT22 module. We already learned about this module in Chapter 1, Make Your IoT Project Smart. A relay module is used to connect our Raspberry Pi to a cooler machine.

Let's start to build our system.

Wiring

We use DHT22 and relay modules for our wiring. Connect the DHT22 module into the following connections:

  • DHT22 pin 1 (VDD) is connected to the 3.3V pin from Raspberry Pi

  • DHT22 pin 2 (SIG) is connected to the GPIO23 (see the BCM column) pin from Raspberry Pi

  • DHT22 pin 4 (GND) is connected to the GND pin from Raspberry Pi

  • A relay VCC is connected to the 3.3V pin from Raspberry Pi...