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

Make your IoT board speak


Making your IoT board speak is interesting. Imagine your board give a voice notification about environment information such as temperature, humidity and so on. This happens if we implement speech module especially about Text-To-Speech module.

In this demo, we use Emic 2 for Text-To-Speech module and Arduino Uno R3 board. You can get it on Sparkfun store, https.

Let's start.

Setting up

We use EMIC2 library to communicate between Arduino Sketch and EMIC 2 module. This library can found on https://github.com/pAIgn10/EMIC2. You can download and put it on Arduino library folder.

Now you can write sketch program using Arduino IDE.

Wiring

Connecting EMIC 2 module into Arduino board is easy. The following is our wiring:

  • Connect EMIC2 5V to Arduino 5V

  • Connect EMIC2 GND to Arduino GND

  • Connect EMIC2 SOUT to Arduino digital pin 9

  • Connect EMIC2 SIN to Arduino digital pin 8

  • Connect EMIC2 SP- to speaker -

  • Connect EMIC2 SP+ to speaker +

The following is a sample of our demo wiring:

Writing...