Book Image

Intelligent IoT Projects in 7 Days

By : Agus Kurniawan
Book Image

Intelligent IoT Projects in 7 Days

By: Agus Kurniawan

Overview of this book

Intelligent IoT Projects in 7 days is about creating smart IoT projects in just 7 days. This book will help you to overcome the challenge of analyzing data from physical devices. This book aims to help you put together some of the most exciting IoT projects in a short span of time. You'll be able to use these in achieving or automating everyday tasks—one project per day. We will start with a simple smart gardening system and move on to a smart parking system, and then we will make our own vending machine, a smart digital advertising dashboard, a smart speaker machine, an autonomous fire fighter robot, and finally look at a multi-robot cooperation using swarm intelligence
Table of Contents (9 chapters)
8
Essential Hardware Components

Integrating your IoT boards with ReSpeaker

ReSpeaker is built with Arduino (ATmega32U4) and Linux-based OpenWrt with MCU MT7688 so that we can access GPIO pins in our program. We can develop a sketch program for the ReSpeaker board. Start by downloading the ReSpeaker library for Arduino from https://github.com/respeaker/respeaker_arduino_library. Download and extract it to the Arduino library with the name respeaker.

Now you can use the ReSpeaker library in your Arduino IDE. For testing, we'll try to access 12 RGB LEDs using the pixels library.

First, you should install Arduino software from this site: https://www.arduino.cc/en/Main/Software. Then, you can write the following sketch program:

#include "respeaker.h" 
 
uint8_t offset = 0; 
void setup() { 
  respeaker.begin(); 
  // set brightness level (from 0 to 255) 
  respeaker.pixels().set_brightness(128);   ...