Smart Technology
Published © CC BY-NC-SA

Control Arduino Using Smartphone via USB with Blynk App

In this tutorial we're going to learn how to use Blynk app & Arduino in order to control a lamp; the combination will be through USB serial.

IntermediateFull instructions provided2 hours2,804
Control Arduino Using Smartphone via USB with Blynk App

Things used in this project

Hardware components

Arduino UNO & Genuino UNO
Arduino UNO & Genuino UNO
×1
RobotGeek Relay
RobotGeek Relay
×1
Lamp
×1
Jumper wires (generic)
Jumper wires (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE
Blynk
Blynk

Story

Read more

Code

Code snippet #1

Plain text
#include 
SoftwareSerial DebugSerial(2, 3); // RX, TX

#include 

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "Authentication key";

void setup()
{
  // Debug console
  DebugSerial.begin(9600);

  // Blynk will work through Serial
  // Do not read or write this serial manually in your sketch
  Serial.begin(9600);
  Blynk.begin(Serial, auth);
}

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

Github file

https://github.com/blynkkk/blynk-library/releases/tag/v0.5.0

Credits

Smart Technology

Smart Technology

7 projects • 27 followers
Graduate of a Professional License in Instrumentation and Biomedical Maintenance and a D.U.T in Electrical Engineering and Maintenance.

Comments

Add projectSign up / Login