Introduction: Blynk With Arduino

About: I'm a network / data center architect working in RTP, NC. In my copious free time, I tinker with micro controllers and woodworking figuring one day I'll somehow put them together. Also enjoy wilderness camping…

This is my first instructable. Not looking for sympathy, just saying this may not be the most 'polished' ible you've read.

I ran across Blynk on Kickstarter after the campaign had closed. I thought it sounded cool and quickly downloaded the app to my iPhone...where it sat...staring at me...for months.

Today, I decided to do something about it. I love the Arduino platform and have done many projects using various shapes and sizes (moteino anyone?) I had an Uno lying around looking lonely. I pulled an ethernet shield off of another project...stole a cat5 cable from another system in my shop and cobbled together what follows.

What I thought may take an hour or several, turned out to really only take a few minutes. I hope you all find this to be at least somewhat helpful.

Step 1: What You'll Need

For this little project I used the following:

Arduino Uno

Arduino Ethernet Shield

Mini Breadboard

Green LED


2 100 Ohm resistors

A few jumper wires

Cat5 cable for ethernet

USB cable for power/programming

Step 2: Wire It Up

I ran jumpers from ground, pin 9 and pin 6 to the breadboard and placed the resistor(s) between the + (anode) and the signal jumper.

Step 3: Code It .. Sort Of

Create a new project in the Blynk app on your phone (download it first of course) . Add a button and set it from the default of "push" to switch. The set the output pin ( I used pin 9 for the red LED ). Add a slider and associate it to your pin. Make sure it's a PWM pin ( I used pin 6 for the green LED ) I turned off the "send values on release only" setting as I wanted it to dim in real time.

Click on the nut icon for project settings and send yourself the auth token.

In codebender I used the appropriately titled BlynkBlink example. The code that matters is as follows:

#define BLYNK_PRINT Serial // Enables Serial Monitor
#include #include #include // This part is for Ethernet stuff

char auth[] = "YourAuthToken"; // Put your Auth Token here. (see Step 3 above)

void setup() { Serial.begin(9600); // See the connection status in Serial Monitor Blynk.begin(auth); // Here your Arduino connects to the Blynk Cloud. }

void loop() {; // All the Blynk Magic happens here...

// You can inject your own code or combine it with other sketches. // Check other examples on how to communicate with Blynk. Remember // to avoid delay() function! }

Just paste your token you emailed yourself in the YourAuthToken spot. That should be it! You're done. Upload the code to the Arduino. Run the project on your phone by clicking the play button. If you've wired it all up right, you can turn the red LED on and off and dim/brighten the green LED. You are on your way to being an IOT guru.

First Time Author Contest 2016

Participated in the
First Time Author Contest 2016