You are on page 1of 4

instructables

Creating a Digital Timer Using Blynk

by Bnbe_club

In this post, we learn how to get started with Blynk - An IoT platform that is designed to simplify the whole process
for us and which also works with several internet-enabled boards.

Step 1: Watch the Video

ht t ps://www.yout ube.com/embed/MQgavDGHqEA?rel=0

The video above goes over the entire process of creating a digital timer and we cover some additional information
that is not present in this post. I'd recommend watching it rst before proceeding.

Step 2: Set-Up the APP

Creating a Digital Timer Using Blynk: Page 1


Start by downloading the app from the Play Store or address that you have access too as the
App Store, depending on your platform. Follow the authentication token will be sent to it.
onboarding process and make sure you enter an email

Start by creating a new project. Give it a suitable authentication token and we need to add that to the
name, select the correct board - which is WeMos D1 board next.
Mini in our case and then click the "Create Project"
option. You will receive an email with the

Step 3: Prepare the Board

Open up the Arduino IDE and then open up the to add your WiFi network credentials and then upload
library manager from the tools menu. Search for the sketch to the board. You can open up the serial
"Blynk" and install the library. Once done, open up the monitor to view the board status as it connects to
example template for your board - File->Examples- your WiFi network and then connects to the Blynk
>Blynk->Boards_WiFi->NodeMCU. server.

This is the template le and we need to copy/paste Connect an LED to the board at pin D1 by using a
the authentication token from the email that was 330Ohm current limiting resistor as shown in the
received. This token is unique for each project and it is image.
used for identi cation purposes. Once done, be sure

Creating a Digital Timer Using Blynk: Page 2


Step 4: Create the Program

I'd recommend watching the video to get an idea of widgets can be moved around to suit your needs.
the ow of things, but here is a quick summary.
Finally, we need to con gure the eventor widget
which is where all the magic happens. Create a new
Tap the + icon to access the widgets and then add a even to switch ON the GPIO pin by selecting the
Button, Value Display and Eventor widget. Con gure appropriate time zone, time and days. Then, create
the button to act as a switch and then assign pin D1 another event to switch OFF the GPIO pin at your
to it. For the value display widget, con gure it to preferred time. You can keep adding events to trigger
display the state of pin D1. This way, we can tap the di erent actions based on your intentions.
button to manually control the LED and we can also
view its status using the value display widget. The

Creating a Digital Timer Using Blynk: Page 3


Step 5: Test the Schedule

Click the play button within the app so that the con gure multiple events to add to the functionality.
program gets uploaded to the board. That's all you
need to do now. The GPIO pin will automatically
switch ON at the time you have set and it will then Do consider subscribing to our YouTube channel for
switch OFF at the OFF time that was set. You can even more projects like these.
close the app or shut down the phone and it will all
run as expected. Next, you can add a relay or

Creating a Digital Timer Using Blynk: Page 4

You might also like