Nguyen Ha
Published © GPL3+

Arduino UNO SIM800 with Blynk

Using Arduino UNO GSM SIM800 SIM network to remotely control any Arduino with Blynk app.

BeginnerProtip1 hour98
Arduino UNO SIM800 with Blynk

Things used in this project

Hardware components

USB-A to B Cable
USB-A to B Cable
×1
Arduino UNO GSM SIM800A
Arduino UNO R3 GSM SIM800A
×1

Software apps and online services

Arduino IDE
Arduino IDE
Blynk
Blynk

Story

Read more

Schematics

schematic KIT Arduino UNO GSM SIM800

Code

tinyGSM_blynk

C/C++
#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space

#define TINY_GSM_MODEM_SIM800

#include <TinyGsmClient.h>
#include <BlynkSimpleTinyGSM.h>
#define SerialMon Serial

#include <SoftwareSerial.h>
SoftwareSerial SerialAT(11, 10); // RX, TX

const char apn[]  = "YourAPN";
const char user[] = "";
const char pass[] = "";
const char auth[] = "YourAuthToken";

TinyGsm modem(SerialAT);

void setup()
{
  // Set console baud rate
  SerialMon.begin(9600);
  delay(10);

  // Set GSM module baud rate
  SerialAT.begin(9600);
  delay(3000);

  // Restart takes quite some time
  // To skip it, call init() instead of restart()
  SerialMon.println("Initializing modem...");
  modem.restart();

  String modemInfo = modem.getModemInfo();
  SerialMon.print("Modem Info: ");
  SerialMon.println(modemInfo);

  Blynk.begin(auth, modem, apn, user, pass);
}

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

Credits

Nguyen Ha

Nguyen Ha

1 project • 1 follower

Comments

Add projectSign up / Login