Hands-On Internet of Things with Blynk: Build on the power of Blynk to configure smart devices and build exciting IoT projects
()
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.
Read more from Pradeeka Seneviratne
Internet of Things with Arduino Blueprints Rating: 0 out of 5 stars0 ratingsRaspberry Pi 3 Projects for Java Programmers Rating: 0 out of 5 stars0 ratingsBeginning BBC micro:bit: A Practical Introduction to micro:bit Development Rating: 0 out of 5 stars0 ratingsBeginning e-Textile Development: Prototyping e-Textiles with Wearic Smart Textiles Kit and the BBC micro:bit Rating: 0 out of 5 stars0 ratingsESP8266 Robotics Projects: DIY Wi-Fi controlled robots Rating: 0 out of 5 stars0 ratingsBBC micro:bit Recipes: Learn Programming with Microsoft MakeCode Blocks Rating: 0 out of 5 stars0 ratingsBeginning LoRa Radio Networks with Arduino: Build Long Range, Low Power Wireless IoT Networks Rating: 0 out of 5 stars0 ratingsIoT: Building Arduino-Based Projects Rating: 0 out of 5 stars0 ratings
Related to Hands-On Internet of Things with Blynk
Related ebooks
Raspberry Pi LED Blueprints Rating: 0 out of 5 stars0 ratingsRaspberry Pi 3 Projects for Java Programmers: Get the most out of your Raspberry Pi 3 with Java Rating: 0 out of 5 stars0 ratingsInternet of Things Programming Projects: Build modern IoT solutions with the Raspberry Pi 3 and Python Rating: 0 out of 5 stars0 ratingsPractical Internet of Things with JavaScript: Build standalone exciting IoT projects with Raspberry Pi 3 and JavaScript (ES5/ES6) Rating: 0 out of 5 stars0 ratingsHands-On Robotics with JavaScript: Build robotic projects using Johnny-Five and control hardware with JavaScript and Raspberry Pi Rating: 0 out of 5 stars0 ratingsHands-On Internet of Things with MQTT: Build connected IoT devices with Arduino and MQ Telemetry Transport (MQTT) Rating: 0 out of 5 stars0 ratingsInternet of Things with Raspberry Pi 3: Leverage the power of Raspberry Pi 3 and JavaScript to build exciting IoT projects Rating: 0 out of 5 stars0 ratingsHands-On Edge Analytics with Azure IoT: Design and develop IoT applications with edge analytical solutions including Azure IoT Edge Rating: 0 out of 5 stars0 ratingsInternet of Things Programming Projects: Build exciting IoT projects using Raspberry Pi 5, Raspberry Pi Pico, and Python Rating: 0 out of 5 stars0 ratingsRaspberry Pi Android Projects Rating: 0 out of 5 stars0 ratingsFlutter Projects: A practical, project-based guide to building real-world cross-platform mobile applications and games Rating: 0 out of 5 stars0 ratingsKotlin Programming By Example: Build real-world Android and web applications the Kotlin way Rating: 0 out of 5 stars0 ratingsSmart Internet of Things Projects Rating: 4 out of 5 stars4/5MicroPython Projects: A do-it-yourself guide for embedded developers to build a range of applications using Python Rating: 0 out of 5 stars0 ratingsLearning Ionic, Second Edition: Hybrid mobile apps with HTML5, CSS3, and Angular Rating: 0 out of 5 stars0 ratingsHands-On Embedded Programming with Qt: Develop high performance applications for embedded systems with C++ and Qt 5 Rating: 0 out of 5 stars0 ratingsFull Stack Web Development with Raspberry Pi 3: Build complex web applications with a portable computer Rating: 0 out of 5 stars0 ratingsMastering Spring Boot 2.0: Build modern, cloud-native, and distributed systems using Spring Boot Rating: 0 out of 5 stars0 ratingsLearn IoT Programming Using Node-RED: Begin to Code Full Stack IoT Apps and Edge Devices with Raspberry Pi, NodeJS, and Grafana Rating: 0 out of 5 stars0 ratingsHands-On Microservices with Kubernetes: Build, deploy, and manage scalable microservices on Kubernetes Rating: 0 out of 5 stars0 ratingsMastering GUI Programming with Python: Develop impressive cross-platform GUI applications with PyQt Rating: 0 out of 5 stars0 ratings
Hardware For You
Electrical Engineering | Step by Step Rating: 0 out of 5 stars0 ratingsCompTIA A+ Complete Review Guide: Exam Core 1 220-1001 and Exam Core 2 220-1002 Rating: 5 out of 5 stars5/5Chip War: The Fight for the World's Most Critical Technology Rating: 4 out of 5 stars4/5Exploring Apple iPad: iPadOS 15 Edition: The Illustrated, Practical Guide to Using your iPad Rating: 0 out of 5 stars0 ratingsCompTIA A+ Complete Review Guide: Core 1 Exam 220-1101 and Core 2 Exam 220-1102 Rating: 5 out of 5 stars5/5Programming Arduino: Getting Started with Sketches Rating: 4 out of 5 stars4/5iPhone For Dummies Rating: 0 out of 5 stars0 ratingsAfter Steve: How Apple Became a Trillion-Dollar Company and Lost Its Soul Rating: 4 out of 5 stars4/5Build Your Own PC Do-It-Yourself For Dummies Rating: 4 out of 5 stars4/5How To Repair Your iPad - Quickly and Professionally!: Fix It Yourself, #5 Rating: 0 out of 5 stars0 ratingsExploring Arduino: Tools and Techniques for Engineering Wizardry Rating: 4 out of 5 stars4/5Help! iOS 17 - iPhone: How to Use iOS17 Rating: 0 out of 5 stars0 ratingsDancing with Qubits: How quantum computing works and how it can change the world Rating: 5 out of 5 stars5/5macOS Sonoma For Dummies Rating: 0 out of 5 stars0 ratingsLinux All-In-One For Dummies Rating: 2 out of 5 stars2/5Raspberry Pi Electronics Projects for the Evil Genius Rating: 3 out of 5 stars3/5Troubleshooting and Maintaining Your PC All-in-One For Dummies Rating: 5 out of 5 stars5/5Raspberry Pi Cookbook for Python Programmers Rating: 0 out of 5 stars0 ratingsAmazon Web Services (AWS) Interview Questions and Answers Rating: 5 out of 5 stars5/5Chromebook For Dummies Rating: 5 out of 5 stars5/5Creative Selection: Inside Apple's Design Process During the Golden Age of Steve Jobs Rating: 5 out of 5 stars5/5iMac For Dummies Rating: 0 out of 5 stars0 ratingsExperts' Guide to iPad Note Taking with an Apple Pencil Rating: 3 out of 5 stars3/5MacBook For Dummies Rating: 4 out of 5 stars4/5iPhone X Hacks, Tips and Tricks: Discover 101 Awesome Tips and Tricks for iPhone XS, XS Max and iPhone X Rating: 3 out of 5 stars3/5
Reviews for Hands-On Internet of Things with Blynk
0 ratings0 reviews
Book preview
Hands-On Internet of Things with Blynk - Pradeeka Seneviratne
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
Adding a Twitter widget
Configuring
Sending tweets
Twitter button
Notification widget
Configuring the Notification widget
Writing a notification
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++