Project tutorial
Arduino MKR1000 & Blynk

Arduino MKR1000 & Blynk © GPL3+

A simple Internet of Things experiment, using an Arduino MKR1000 board to control two LEDs and monitor a potentiometer, via Blynk app.

  • 492 views
  • 0 comments
  • 3 respects

Components and supplies

Apps and online services

About this project

A simple Internet of Things (IoT) experiment using an Arduino MKR1000 and Blynk. Watch the video below to see it in action, then follow the instructions to build your own!

Arduino MKR1000 & Blynk

1. What You Need 🎁

To build this project, you will need the following items:

  • 1 Arduino MKR1000 board
  • 2 LEDs
  • 1 potentiometer
  • 1 breadboard
  • Some jumper wires
  • Blynk mobile app

2. Set Up Blynk App πŸ“±

  • Open Blynk app, login then create a new project. Choose device: Arduino MKR1000 with connection type: WiFi. Click Create button and you will receive Blynk Auth Token by email.
  • On your project, add 2 button widget and a gauge. Set each widget as the picture below.

3. Schematics πŸ”§πŸ”¨

  • Connect your parts to Arduino MKR1000 as the following picture:

4. Sketch πŸ“‹

  • First, extract Blynk library then copy it to C:\...\Documents\Arduino\libraries.
  • Open Arduino IDE then copy sketch below. Insert your WiFi SSID, WiFi password & Blynk Auth Token. Make sure you have chosen the right option for Board and Port under Tools menu. Upload it!
#define BLYNK_PRINT SerialUSB
#include <SPI.h>
#include <WiFi101.h>
#include <BlynkSimpleWiFiShield101.h>
char auth[] = "Blynk_Auth_Token";
char ssid[] = "Your_WiFi_Name";
char pass[] = "Your_WiFi_Password";
void setup(){
    SerialUSB.begin(9600);
    Blynk.begin(auth, ssid, pass);
}
void loop(){
    Blynk.run();
}

5. Have Fun! 😎

  • After uploading done, make sure your Arduino MKR1000 and smartphone has a good internet connection. Click play button ▢️ on top right corner of your Blynk project, then you're ready to go! Have fun!

Lintang Wisesa πŸ’Œ lintangwisesa@ymail.com

Facebook | Twitter | Google+ | Youtube | GitHub | Hackster

Code

Arduino MKR1000 & BlynkC/C++
#define BLYNK_PRINT SerialUSB
#include <SPI.h>
#include <WiFi101.h>
#include <BlynkSimpleWiFiShield101.h>

char auth[] = "Blynk_Auth_Token";
char ssid[] = "Your_WiFi_Name";
char pass[] = "Your_WiFi_Password";

void setup(){
    SerialUSB.begin(9600);
    Blynk.begin(auth, ssid, pass);
}

void loop(){
    Blynk.run();
}

Comments

Similar projects you might like

Arduino MKR1000 & Thinger

Project tutorial by Lintang Wisesa

  • 182 views
  • 0 comments
  • 3 respects

Arduino MKR1000 & Favoriot

Project tutorial by Lintang Wisesa

  • 295 views
  • 0 comments
  • 2 respects

Christmas Tree Water Level via Cayenne and MKR1000

Project showcase by Ian Zahn

  • 1,919 views
  • 0 comments
  • 2 respects

Send MKR1000 Data to Google Sheets

Project tutorial by Stephen Borsay

  • 10,004 views
  • 28 comments
  • 31 respects

Arduino/Genuino 101 BLE Thermometer With TMP102 and Blynk

Project tutorial by Konstantin Dimitrov

  • 7,878 views
  • 1 comment
  • 26 respects
Add projectSign up / Login