Home > Projects > LED Projects > Arduino MKR1000 & Blynk

Arduino MKR1000 & Blynk

Summary of Arduino MKR1000 & Blynk


This article guides users through an IoT experiment using an Arduino MKR1000 to control two LEDs and monitor a potentiometer via the Blynk app. It details hardware setup, software installation including the Arduino IDE and Blynk library, and provides the necessary code for connecting the device to Wi-Fi and controlling widgets.

Parts used in the Arduino MKR1000 & Blynk IoT Experiment:

  • Arduino MKR1000 board
  • LED (generic)
  • Rotary potentiometer (generic)
  • Breadboard (generic)
  • Jumper wires (generic)
  • Arduino IDE
  • Blynk mobile app
  • WiFi101 library
  • Blynk library

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

mkr1000ok_WInT2Qqx7f

Things used in this project

Hardware components

Arduino MKR1000
Arduino MKR1000
× 1
LED (generic)
LED (generic)
× 2
Rotary potentiometer (generic)
Rotary potentiometer (generic)
× 1
Breadboard (generic)
Breadboard (generic)
× 1
Jumper wires (generic)
Jumper wires (generic)
× 5

Software apps and online services

Arduino IDE
Arduino IDE
Blynk
Blynk

Story

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.

Blynk_App

3. Schematics ??

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

Schematics

Code

#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();
}

Source : Arduino MKR1000 & Blynk

Quick Solutions to Questions related to Arduino MKR1000 & Blynk IoT Experiment:

  • How do I create a new project in the Blynk app?
    Open the Blynk app, login, create a new project, choose the Arduino MKR1000 device with WiFi connection, and click Create.
  • What widgets should I add to the Blynk project?
    You should add 2 button widgets and a gauge to the project interface.
  • Where can I download the Arduino IDE?
    The article mentions downloading the Arduino IDE but directs users to a link provided in the text.
  • Can I use this project on both Android and iOS devices?
    Yes, the article lists download links for the Blynk mobile app on both Android and iOS platforms.
  • What libraries are required for this project?
    You need the WiFi101 library and the Blynk library installed in your Arduino environment.
  • How do I install the Blynk library?
    Extract the Blynk library and copy it to the C:...DocumentsArduinolibraries folder.
  • Does the Arduino MKR1000 require a specific board selection in the IDE?
    Yes, you must ensure you have chosen the right option for Board under the Tools menu before uploading.
  • What information is needed in the sketch code?
    The sketch requires inserting your WiFi SSID, WiFi password, and Blynk Auth Token.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top