ratack0
Published © GPL3+

Getting started with Blynk

Learn how to use Blynk.

IntermediateFull instructions provided148
Getting started with Blynk

Things used in this project

Hardware components

Arduino MKR WiFi 1010
Arduino MKR WiFi 1010
×1
LED (generic)
LED (generic)
Connected to digital pin 2
×1
Resistor 220 ohm
Resistor 220 ohm
×1
Breadboard (generic)
Breadboard (generic)
×1

Software apps and online services

Blynk
Blynk
Arduino IDE
Arduino IDE
Arduino Web Editor
Arduino Web Editor

Story

Read more

Schematics

LED connections

Code

Basic LED control

C#
/*
 * Starting Blynk code.
 * This code will connect to the Blynk project
 * Circuit: LED connected to digital pin 2, and a 220 ohm resistor to GND
 * Blynk project setup: Button widget (swipe right to left, select button,tap  * button while code is paused (play button at top,) select PIN, then select   * D2)
 * When you press the button, the LED should turn on
 */


#define BLYNK_PRINT Serial // debug output

#include <SPI.h>                  // necessary libraries
#include <WiFiNINA.h>
#include <BlynkSimpleWiFiNINA.h>

char auth = "Your auth token (emailed to you when you create a project)";
char ssid = "Your network SSID";
char pass = "Your network password"

void setup(){
  Serial.begin(9600); // debug output (Serial monitor)
  Blynk.begin(auth, ssid, pass);
}

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

Credits

ratack0

ratack0

0 projects • 0 followers

Comments

Add projectSign up / Login