Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Intelligent IoT Projects in 7 Days

You're reading from   Intelligent IoT Projects in 7 Days Build exciting projects using smart devices

Arrow left icon
Product type Paperback
Published in Sep 2017
Publisher Packt
ISBN-13 9781787286429
Length 206 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Agus Kurniawan Agus Kurniawan
Author Profile Icon Agus Kurniawan
Agus Kurniawan
Arrow right icon
View More author details
Toc

Table of Contents (9) Chapters Close

Preface 1. A Simple Smart Gardening System 2. A Smart Parking System FREE CHAPTER 3. Making Your Own Vending Machine 4. A Smart Digital Advertising Dashboard 5. A Smart Speaker Machine 6. Autonomous Firefighter Robot 7. Multi-Robot Cooperation Using Swarm Intelligence 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);   ...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime