Arduino 101 BLE with Sparkfun Blynk App © Apache-2.0

This guide will demonstrate to beginners how to use Arduino 101 BLE (Bluetooth Low Energy) feature to control an LED from an Android mobile.

  • 2,202 views
  • 2 comments
  • 4 respects

Components and supplies

Apps and online services

About this project

Introduction

This article will demonstrate to beginners how to use Arduino 101 BLE Feature. This post will show you how to control an LED using Arduino 101 BLE Feature and Spark fun Blynk App.

If you are totally new to Arduino 101 board then please read this article to prepare your system for Arduino 101. Click Here.

Following components required for this article:

Connect the LED to Digital Pin 7.

Second Setup

2nd setup is to download and install the Blynk app in your Android mobile. Register yourself and create the project in the Blynk app. For Blynk Mobile App Setup please view the video. It will demonstrate all the steps from Hardware Assembling to Complete Demo.

Third Setup

3rd setup is to download the Blynk Library from http://blynk.cc/. Add the Blynk Library in the Arduino IDE. Go to Sketch->Include Library->Add .Zip Library.

Library is in Arduino IDE, so Navigate to File->Examples->Blynk->Boards_Bluetooth->Arduino_101_BLE:

Now we have Code. Please put the Auth Token in a Code that you have got from Blynk Mobile App.

Execute the Code. For Blynk Mobile App Setup please view the video as it will demonstrate all the steps from Hardware Assembling to Complete Demo.

Code

Arduino_101_BLEArduino
//#define BLYNK_DEBUG
#define BLYNK_PRINT Serial

//#define BLYNK_USE_DIRECT_CONNECT

#include <BlynkSimpleCurieBLE.h>
#include <CurieBLE.h>

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

BLEPeripheral  blePeripheral;

void setup() {
  Serial.begin(1200);
  delay(1000);

  blePeripheral.setLocalName("Blynk");
  blePeripheral.setDeviceName("Blynk");
  blePeripheral.setAppearance(384);

  Blynk.begin(auth, blePeripheral);

  blePeripheral.begin();

  Serial.println("Waiting for connections...");
}

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

Schematics

Arduino 101 BLE
Ldfbvhuwnvqglyv5gzec

Comments

Similar projects you might like

Arduino/Genuino 101 BLE Thermometer With TMP102 and Blynk

Project tutorial by Konstantin Dimitrov

  • 7,511 views
  • 1 comment
  • 25 respects

Arduino 101 Blynk and BLE Example Panel

by Rafa Juárez

  • 1,137 views
  • 0 comments
  • 5 respects

Intel Arduino 101 BLE Blynk Tank

Project tutorial by Johnathan Hottell

  • 10,138 views
  • 6 comments
  • 37 respects

Arduino 101 BLE App

Project in progress by Alexis Santiago Allende

  • 9,546 views
  • 26 comments
  • 48 respects

Arduino 101 BLE RGB Lamp

Project tutorial by Gustavo Reynaga

  • 1,751 views
  • 2 comments
  • 8 respects
Add projectSign up / Login