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://git.drogon.net/wiringPi

 

After installing  Wiring Pi,download Blynk library:

git clone https://github.com/blynkkk/blynk-library.git 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

14 Comments

Thank you so much for providing individuals with remarkably special possiblity to read from this site. It's always so lovely plus stuffed with fun for me personally and my office fellow workers to search your site at the least 3 times in one week to study the new issues you will have. Of course, I'm actually amazed for the mind-blowing solutions you serve. Certain 3 areas in this posting are really the most efficient we've had.

I would like to show thanks to this writer for bailing me out of such a scenario. After researching through the the net and obtaining proposals that were not pleasant, I figured my life was well over. Existing without the presence of answers to the difficulties you've sorted out by way of your good article content is a critical case, and those that would have negatively damaged my entire career if I hadn't come across the website. Your primary ability and kindness in maneuvering a lot of stuff was precious. I don't know what I would have done if I had not come across such a solution like this. It's possible to at this point look ahead to my future. Thank you so much for the skilled and amazing help. I will not think twice to endorse your web sites to any person who desires guide about this matter.

Ahaa, its pleasant discussion about this article here at this website, I have read all that, so at this time me also commenting at this place.|

My spouse and i have been so comfortable that Peter managed to finish off his analysis out of the precious recommendations he got out of your web pages. It's not at all simplistic to simply be giving out steps which some others have been trying to sell. And now we understand we've got the blog owner to give thanks to for this. All the explanations you have made, the straightforward blog menu, the relationships you help to create - it's many fabulous, and it's aiding our son in addition to us do think this concept is thrilling, and that's extremely fundamental. Many thanks for the whole thing!

I actually wanted to type a small message to be able to express gratitude to you for those precious solutions you are posting here. My time intensive internet research has finally been compensated with really good strategies to share with my neighbours. I would assert that many of us site visitors actually are undoubtedly lucky to be in a superb community with so many outstanding individuals with very helpful basics. I feel very blessed to have used your entire web page and look forward to so many more fabulous moments reading here. Thanks a lot again for everything.

I enjoy you because of your entire hard work on this web page. Kate takes pleasure in participating in research and it's easy to see why. Most of us hear all about the powerful means you deliver advantageous tips by means of your blog and in addition inspire participation from others about this topic plus our daughter is now starting to learn a great deal. Enjoy the rest of the year. You're the one conducting a pretty cool job.

I truly wanted to send a simple word to thank you for these great guidelines you are sharing on this site. My extended internet search has now been rewarded with good tips to go over with my co-workers. I 'd tell you that we site visitors are rather blessed to exist in a decent network with very many wonderful people with very beneficial methods. I feel rather grateful to have used the web site and look forward to so many more fabulous moments reading here. Thanks a lot once more for everything.

I precisely desired to thank you so much once again. I'm not certain the things I would've achieved without the actual concepts discussed by you about my situation. It has been a real horrifying issue for me personally, but discovering a well-written approach you processed it forced me to leap for happiness. Extremely happier for this assistance and have high hopes you are aware of a great job you have been undertaking teaching others thru your web blog. I am certain you have never come across all of us.

I am only writing to let you be aware of of the impressive encounter my friend's child enjoyed going through your webblog. She discovered many things, which included what it's like to have a very effective teaching mood to make many people with ease completely grasp specific tricky subject matter. You truly exceeded her expectations. Thanks for distributing the necessary, safe, edifying as well as unique tips about that topic to Mary.

Thank you a lot for giving everyone an extraordinarily spectacular possiblity to read critical reviews from here. It is usually so superb plus jam-packed with amusement for me personally and my office peers to search your site more than 3 times a week to find out the latest issues you have. Of course, I am usually contented for the outstanding tricks you give. Selected two points in this article are unequivocally the very best I've had.

Thank you a lot for giving everyone a very terrific chance to read articles and blog posts from this web site. It really is very great and also full of amusement for me personally and my office co-workers to search your website at the least thrice weekly to learn the new items you have got. And indeed, I am always amazed with your sensational suggestions you give. Some 1 tips on this page are rather the most suitable we have all had.

I am just commenting to make you understand what a outstanding discovery my wife's daughter gained browsing your web page. She picked up plenty of issues, not to mention how it is like to possess a great teaching nature to make other folks without difficulty gain knowledge of a number of complex things. You undoubtedly did more than people's expectations. I appreciate you for imparting these powerful, trustworthy, edifying as well as cool tips about that topic to Janet.

I'm just writing to let you know what a fine experience my friend's child obtained viewing the blog. She came to find some pieces, which include how it is like to possess a marvelous helping spirit to have other folks just understand some advanced things. You actually surpassed our expected results. Thanks for distributing the good, healthy, revealing as well as cool tips on that topic to Lizeth.

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.