Menu Close

Blynk on Raspberry Pi – Digital Output.

This tutorial of Robo India explain how to get digital output on Raspberry Pi through Blynk app.

Detailed Tutorial

1. Introduction:

Blynk is a Platform with IOS and Android apps to control Arduino, Raspberry Pi and the likes over the Internet. It’s a digital dashboard where you can build a graphic interface for your project by simply dragging and dropping widgets.

1.2 Supported Hardware

1.3 Blynk App 

Blynk application can be found from the following links –

1. Android Blynk App

2. IOS Blynk App

After downloading the app, create an account and log in. (If possible than log in with your real mail id for better connectivity later.)

2. Create a Blynk Project

Click the “Create New Project” in the app to create a new Blynk app. Give it any name.

Blynk works with hundreds of hardware models and connection types. Select the Hardware type. After this, select connection type. In this project we have select WiFi connectivity.

The Auth Token is very important – you’ll need to stick it into your Raspberry’s firmware. For now, copy it down or use the “E-mail” button to send it to yourself.

3. Add Widgets To The Project

Then you’ll be presented with a blank new project. To open the widget box, click in the project window to open.

We are selecting a button to control Led connected with Raspberry Pi.

  1. Click on Button.
  2. Give name to Button say LED_Blynk.                                    
  3. Under OUTPUT tab- Click pin and select the pin to which led is connected to Raspberry Pi, here it is digital pin 25, hence select digital and under pin GP25. And Click continue.

Under MODE tab- Select whether you want this button as “push button” or “Switch”.

You have successfully created a GUI for Raspberry Pi.

 4. Connecting with Raspberry Pi

1 .Open the command window and write:

  $ sudo apt-get update

2. To make sure your Pi is up to date with the latest versions of Raspbian:

  If you do not have GIT installed, you can install it with:

  $ sudo apt-get install git-core

3 .To obtain WiringPi using GIT (WiringPi is maintained under GIT for ease of change tracking,):

  $ git clone git://git.drogon.net/wiringPi

4. After that write:

  cd wiringPi
  ./bulid
  cd
  Git clone https://github.com/blynkkk/blynk-library
  cd blynk-library/linux
  Make clean all target=raspberry
  Sudo ./blynk --token=token num

 5. Execution

After doing this, Raspberry pi is connected with your Blynk project. Press the button on Blynk app and watch the LED.

Then click the “Run” button in the top right corner of the Blynk app. Press the button and watch the LED

Then add more widgets to the project. They should immediately work, without uploading any new firmware.

6. Output

 If you have any query please write us at support@roboindia.com

Thanks and Regards
Content Development Team 
Robo India
https://roboindia.com

Leave a Reply