Akshay Aggarwal
Published © GPL3+

IoT Shield for Arduino

The ARMA IoT Shield is a breakout board for Arduino to make IoT projects quickly.

IntermediateFull instructions provided30 minutes5,345
IoT Shield for Arduino

Things used in this project

Story

Read more

Schematics

Schematic

Schematic Design

Code

Code

Arduino
This is a simple code for interfacing IoT shield with Blynk app using Arduino IDE
/**************ed************************************************
 * This code is to be used for ARMA IoT hardware. It is open source.
 * You can easily build graphic interfaces for all your
 * projects by simply dragging and dropping widgets.
 *
 *   Downloads, docs, tutorials: http://www.blynk.cc
 *   Blynk community:            http://community.blynk.cc
 *   Social networks:            http://www.fb.com/blynkapp
 *                               http://twitter.com/blynk_app
 *   Mektrasys ARMA IoT          http://mektrasys.com
 *
 * Blynk library is licensed under MIT license
 * This example code is in public domain.
 *
 **************************************************************
 *
 * This example shows how to use ESP8266 Shield (with AT commands)
 * to connect your project to Blynk.
 *
 * Note: Ensure a stable serial connection to ESP8266!
 *       Firmware version 1.0.0 (AT v0.22) is needed.
 *       You can change ESP baud rate. Connect to AT console and call:
 *           AT+UART_DEF=9600,8,1,0,0
 *       In general, Soft Serial may be unstable.
 *       It is highly recommended to switch to Hard Serial.
 *
 * Change WiFi ssid, pass, and Blynk auth token to run :)
 * Feel free to apply it to any other example. It's simple!
 *
 **************************************************************/

#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>

// You should get Auth Token in the Blynk App.

char auth[] = "5a9ef0a7de964d62b447951e2993141b";   //auth token

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "Wi-Fi Id";                //wi-fi ID, it is case sensitve and blank space between characters matter
char pass[] = "Wi-Fi Password";         //wifi password

#include <SoftwareSerial.h>


// Your ESP8266 baud rate:
#define ESP8266_BAUD 115200      // set serial monitor baud rate to 115200 as well

ESP8266 wifi(&Serial);

void setup()
{
  // Set console baud rate
  Serial.begin(115200);
  delay(10);
  // Set ESPop8266 baud rate
 Serial.begin(ESP8266_BAUD);
  delay(10);

  Blynk.begin(auth, wifi, ssid, pass);
}

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

Code

Credits

Akshay Aggarwal

Akshay Aggarwal

2 projects • 11 followers

Comments