Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Hands-On Internet of Things with Blynk

You're reading from   Hands-On Internet of Things with Blynk Build on the power of Blynk to configure smart devices and build exciting IoT projects

Arrow left icon
Product type Paperback
Published in May 2018
Publisher Packt
ISBN-13 9781788995061
Length 271 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
 Seneviratne Seneviratne
Author Profile Icon Seneviratne
Seneviratne
Arrow right icon
View More author details
Toc

Controlling an LED


You are now ready to build your first Blynk application that can be used to control an LED attached to the Raspberry Pi from your smartphone or tablet. The application consists of the following components:

  • Blynk app running on your smartphone or tablet
  • C++ project running on Raspberry Pi
  • Blynk cloud

Things you need

You will need following things to build the circuit:

Building the circuit

The following diagram shows how you can connect an LED to the BCM_GPIO pin 18 (physical pin 12) of the Raspberry Pi 3:

LED connected to the BCM_GPIO 18 of the Raspberry Pi 3

Connect the positive leg (the longer leg) of the LED to the physical pin 12 (BCM_GPIO PIN 18) of the Raspberry Pi.

Connect the negative leg (the shorter leg or the leg adjacent to the flat edge on the...

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 $15.99/month. Cancel anytime
Visually different images