Discover millions of ebooks, audiobooks, and so much more with a free trial

From $11.99/month after trial. Cancel anytime.

Hands-On Internet of Things with Blynk: Build on the power of Blynk to configure smart devices and build exciting IoT projects
Hands-On Internet of Things with Blynk: Build on the power of Blynk to configure smart devices and build exciting IoT projects
Hands-On Internet of Things with Blynk: Build on the power of Blynk to configure smart devices and build exciting IoT projects
Ebook433 pages1 hour

Hands-On Internet of Things with Blynk: Build on the power of Blynk to configure smart devices and build exciting IoT projects

Rating: 0 out of 5 stars

()

Read preview

About this ebook

Blynk, known as the most user-friendly IoT platform, provides a way to build mobile applications in minutes. With the Blynk drag-n-drop mobile app builder, anyone can build amazing IoT applications with minimal resources and effort, on hardware ranging from prototyping platforms such as Arduino and Raspberry Pi 3 to industrial-grade ESP8266, Intel, Sierra Wireless, Particle, Texas Instruments, and a few others.

This book uses Raspberry Pi as the main hardware platform and C/C++ to write sketches to build projects. The first part of this book shows how to set up a development environment with various hardware combinations and required software. Then you will build your first IoT application with Blynk using various hardware combinations and connectivity types such as Ethernet and Wi-Fi. Then you'll use and configure various widgets (control, display, notification, interface, time input, and some advanced widgets) with Blynk App Builder to build applications. Towards the end, you will learn how to connect with and use built-in sensors on Android and iOS mobile devices. Finally you will learn how to build a robot that can be controlled with a Blynk app through the Blynk cloud and personal server.

By the end of this book, you will have hands-on experience building IoT applications using Blynk.

LanguageEnglish
Release dateMay 28, 2018
ISBN9781788997065
Hands-On Internet of Things with Blynk: Build on the power of Blynk to configure smart devices and build exciting IoT projects

Read more from Pradeeka Seneviratne

Related to Hands-On Internet of Things with Blynk

Related ebooks

Hardware For You

View More

Related articles

Reviews for Hands-On Internet of Things with Blynk

Rating: 0 out of 5 stars
0 ratings

0 ratings0 reviews

What did you think?

Tap to rate

Review must be at least 10 words

    Book preview

    Hands-On Internet of Things with Blynk - Pradeeka Seneviratne

    Hands-On Internet of Things with Blynk

    Hands-On Internet of Things with Blynk

    Build on the power of Blynk to configure smart devices and build exciting IoT projects

    Pradeeka Seneviratne

    BIRMINGHAM - MUMBAI

    Hands-On Internet of Things with Blynk

    Copyright © 2018 Packt Publishing

    All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

    Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.

    Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

    Commissioning Editor: Gebin George

    Acquisition Editor: Prachi Bisht

    Content Development Editor: Trusha Shriyan

    Technical Editor: Varsha Shivhare

    Copy Editor: Safis Editing

    Project Coordinator: Kinjal Bari

    Proofreader: Safis Editing

    Indexer: Pratik Shirodkar

    Graphics: Jisha Chirayil

    Production Coordinator: Shantanu Zagade

    First published: May 2018

    Production reference: 1220518

    Published by Packt Publishing Ltd.

    Livery Place

    35 Livery Street

    Birmingham

    B3 2PB, UK.

    ISBN 978-1-78899-506-1

    www.packtpub.com

    mapt.io

    Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.

    Why subscribe?

    Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals

    Improve your learning with Skill Plans built especially for you

    Get a free eBook or video every month

    Mapt is fully searchable

    Copy and paste, print, and bookmark content

    PacktPub.com

    Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at [email protected] for more details.

    At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.

    Contributors

    About the author

    Pradeeka Seneviratne is a software engineer with over 10 years of experience in computer programming and systems design. He is an expert in the development of Arduino- and Raspberry Pi-based embedded systems, and is currently a full-time embedded software engineer working with embedded systems and highly scalable technologies. Previously, he worked as a software engineer for several IT infrastructure and technology servicing companies. He has also authored Beginning BBC micro:bit, published by Apress.

    About the reviewer

    Munawwar Hussain Shelia is a digital artist and software engineer based in Mumbai, India. An engineering graduate (BE) in computer science, his curiosity to try his hand at the next latest technology keeps him thinking ahead on the boundaries of coding. He started his career in mobile application development with Java and Android, before moving on to full-stack JavaScript (MEAN stack) Node.js, where he put his heart and soul into building more real-time web applications. Currently, he is in the role of data science, and extracts actionable intelligence and does predictive analytics from large datasets.

    Packt is searching for authors like you

    If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.

    Table of Contents

    Title Page

    Copyright and Credits

    Hands-On Internet of Things with Blynk

    Packt Upsell

    Why subscribe?

    PacktPub.com

    Contributors

    About the author

    About the reviewer

    Packt is searching for authors like you

    Preface

    Who this book is for

    What this book covers

    To get the most out of this book

    Download the example code files

    Download the color images

    Conventions used

    Get in touch

    Reviews

    Setting Up a Development Environment

    What is Blynk?

    Hardware platforms

    Connection types

    Blynk architecture

    Blynk ecosystem

    Online resources

    The Blynk app builder

    Installing the Blynk app builder

    Creating a Blynk account

    Creating a new project

    Getting parts

    Raspberry Pi

    Setting up Raspberry Pi

    Setting up software on Raspberry Pi

    Installing Raspbian

    Writing Raspbian Stretch Lite image on SD card

    Creating a configuration file for SSH

    Connecting with Raspberry Pi with SSH

    Configuring a wireless connection on Raspberry Pi

    Installing prerequisite software on Raspbian

    Updating and upgrading Raspbian

    Installing git

    Installing WiringPi

    Deploying Blynk libraries

    Connecting Raspberry Pi with Blynk Cloud

    Summary

    Building Your First Blynk Application

    Controlling an LED

    Things you need

    Building the circuit

    Building the Blynk app

    Adding a Button widget

    Running the project

    Playing the app

    Using virtual pins

    Configuring Button widget with virtual pin

    Modifying the main.cpp file

    Running the project

    Summary

    Using Controller Widgets

    Creating a project

    Slider

    Adding a Slider widget

    Using digital pins

    Using virtual pins

    Step

    Adding a Step widget

    Using digital pins

    Using virtual pins

    zeRGBa

    Using digital pins

    Using virtual pins

    Controlling an RGB LED

    Building the circuit

    Running the project

    Joystick

    Using digital pins

    Using virtual pins

    Summary

    Using Display Widgets

    Value Display

    Using digital pins

    Using virtual pins

    Labeled Value

    Configuring a Labeled Value widget

    LED

    Using virtual pins

    Summary

    Using Notification Widgets

    Twitter

    Adding a Twitter widget

    Configuring

    Sending tweets

    Twitter button

    Notification widget

    Configuring the Notification widget

    Writing a notification

    Email

    Configuring the Email widget

    Writing code to send email

    Summary

    Connecting with Sensors on Your Mobile Device

    Accelerometer

    Accelerometer widget

    Configuring the Accelerometer widget

    Reading accelerometer data

    Calculating overall acceleration

    Light sensor

    Adding the Light Sensor widget

    Configuring the Light Sensor widget

    Reading light sensor

    Proximity sensor

    Configuring the Proximity Sensor widget

    Writing code

    Summary

    Setting Up a Personal Blynk Server

    Setting up a Blynk server on Raspberry Pi

    Enabling autostart with rc.local

    Enabling autostart with crontab

    Verifying that the Blynk server is running

    Connecting the Blynk app builder with the server

    Creating a new project to get the auth token

    Using the administration interface

    Writing a simple code to build the connection

    Summary

    Controlling a Robot with Blynk

    Choosing a chassis kit

    Adafruit

    SparkFun

    Pololu

    Creating a Blynk app

    Motor driver

    Summary

    Other Books You May Enjoy

    Leave a review - let other readers know what you think

    Preface

    Blynk is referred to as the most user-friendly IoT platform, providing a way to build mobile applications in minutes. With Blynk's drag and drop mobile app builder, anyone can build amazing IoT applications with minimal resources and effort. Blynk supports over 400 hardware platforms and major connectivity types. The hardware could be prototyping platforms, such as Arduino and Raspberry Pi, to industrial-grade ESP8266, Intel, Sierra Wireless, Particle, and Texas Instruments offerings.

    This book uses Raspberry Pi as the main hardware platform and C++

    Enjoying the preview?
    Page 1 of 1