IoT Controlled LED with Blynk App and Raspberry Pi

IoT Controlled LED with Blynk App and Raspberry Pi

Blynk is an IoT Platform to control Arduino, Raspberry Pi, NodeMCU and other microcontrollers over the Internet. Blynk app is a digital dashboard where you can build a graphic interface for any IoT based project by simply dragging and dropping widgets. Its simple and easy to use this IoT platform to build complex applications. Blynk is not bounded to some specific board or platform, but it can be used with any microcontroller, provided that the microcontroller is connected to internet. Raspberry Pi has inbuilt Wi-Fi and other microcontroller like Arduino can be connected to internet using some Wi-Fi module like ESP8266 etc.


Components Required

  • Raspberry pi
  • Blynk App
  • LED
  • Resistor(250 ohm)
  • Jumper Wires
  • Breadboard


Circuit Diagram

Raspberry Pi LED Circuit Connections to Control using Blynk App


The connections of this project is very simple. Just connect LED’s positive pin to raspberry Pi’s 3rd (GPIO2) pin and negative pin to resistor.


Step 1: Blynk App Setup with Raspberry Pi

To control LED with Blynk app, first download and install the Blynk app from Google or Apple app store. After installing, if you don’t have an account already then create a new account by entering your Email and password.


1. After sign up click on ‘New Project’ to start your project.

 Blynk App Setup with Raspberry pi


2. Now give your project a name in name slot. Blynk works with hundreds of hardware models and connection types so choose your device from options. I am here using Raspberry Pi 3B, so I am proceeding with Raspberry PI 3 B, you can choose different board. Then after choosing your board choose your connection type whether it is Wi-Fi or Ethernet or USB connection. After these steps click on ‘Create’ button to create your project.

 Create Project using Blynk App and Pi


3. Now after this you’ll see a blank new project. To add Widgets to the project click on Add button (Plus sign button)

 Project Created using Blynk App and Pi


4. Now after this click on ‘Button’ to add a button in your project.

Add Button to Project Created using Blynk App and Pi


5. Now in button settings give a name to your button. After this in ‘OUTPUT’ choose your pin where you connected your Led’s positive pin. Then give names to your On/Off labels.

 Setup Button in Project Created using Blynk App and Pi


Step 2:  Raspberry Pi Blynk App Setup to Control LED

First open the terminal window and update your Pi using:

sudo apt-get update


After updating your pi install GIT using:

sudo apt-get install git-core


Now to install Wiring Pi using this command:

git clone git://


After installing  Wiring Pi,download Blynk library:

git clone 6
 cd blynk-library/linux

make clean all target=raspberry


After doing all these steps now put your ‘Auth Token’  in terminal using this command:

sudo ./blynk --token= YourAuthToken


After doing all these steps now your Raspberry pi is connected with your Blynk project.

 Run Blynk App for Controlling LED


Step 3: Run Blynk App for Controlling LED

To run the project click on ‘play button’ on upper right corner. Then Press the button on Blynk app and watch the LED.

IoT Controlled LED with Blynk App and Raspberry Pi


I in addition to my friends were actually looking at the great solutions found on the website and all of a sudden developed an awful suspicion I had not thanked the web site owner for those strategies. The ladies are actually as a consequence joyful to learn all of them and already have simply been taking pleasure in those things. Thank you for being considerably considerate as well as for obtaining these kinds of remarkable subject areas most people are really desirous to learn about. Our sincere apologies for not expressing appreciation to you earlier.

I'm also writing to let you understand of the wonderful experience my cousin's girl experienced visiting your web page. She discovered a lot of things, with the inclusion of how it is like to possess a very effective giving mood to get other people easily completely grasp selected hard to do things. You undoubtedly did more than visitors' expectations. I appreciate you for supplying these good, dependable, educational and also easy tips about the topic to Janet.

I together with my pals were reviewing the excellent strategies found on your web site and immediately developed a horrible suspicion I had not expressed respect to the website owner for those tips. All of the young boys were definitely thrilled to see them and have in effect clearly been having fun with these things. Thank you for truly being indeed thoughtful and also for making a choice on some fantastic subjects most people are really wanting to learn about. My personal sincere apologies for not saying thanks to you earlier.

I in addition to my pals have been taking note of the great guides on the website and then before long got a horrible suspicion I had not expressed respect to the website owner for those tips. These boys came as a consequence happy to read them and have seriously been using those things. I appreciate you for really being quite kind and for getting this sort of very good useful guides most people are really eager to learn about. My honest apologies for not expressing gratitude to sooner.

I enjoy you because of your whole effort on this site. My mom really loves carrying out investigations and it is easy to see why. A lot of people hear all about the dynamic way you deliver invaluable steps via your web site and in addition strongly encourage contribution from the others on the topic while our favorite child is really becoming educated a lot. Take pleasure in the remaining portion of the year. You're the one performing a fabulous job.

I needed to put you this tiny note in order to thank you so much again for the great methods you've documented on this page. It has been certainly pretty open-handed with people like you to present unhampered what exactly numerous people would have advertised for an e-book to end up making some bucks on their own, primarily given that you could possibly have tried it in case you considered necessary. These principles additionally worked like the easy way to recognize that many people have the same dream similar to my very own to see lots more in respect of this issue. I am certain there are a lot more fun sessions up front for individuals who check out your website.

Add new comment

The content of this field is kept private and will not be shown publicly.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.