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 hours7,935
Control Arduino Using Smartphone via USB with Blynk App

Things used in this project

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 • 46 followers
Graduate of a Professional License in Instrumentation and Biomedical Maintenance and a D.U.T in Electrical Engineering and Maintenance.

Comments