Surilli
Published © LGPL

LED Blinking ON and OFF Using HC-05 and Surilli GSM

Blink an LED ON and OFF through serial communication using a HC-05 Bluetooth module.

BeginnerFull instructions provided9 minutes950
LED Blinking ON and OFF Using HC-05 and Surilli GSM

Things used in this project

Hardware components

HC-05 Bluetooth Module
HC-05 Bluetooth Module
×1
Jumper wires (generic)
Jumper wires (generic)
×4
Breadboard (generic)
Breadboard (generic)
×1
Surilli GSM
Surilli GSM
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

LED Blinking ON and OFF using HC-05 and Surilli GSM

Code

Bluetooth_Module_HC-05

C/C++
#include <SoftwareSerial.h>// import the serial library

SoftwareSerial Genotronex(9, 10); // RX, TX
int ledpin=13; // led on D13 will show blink on / off
int BluetoothData; // the data given from Computer

void setup() {
  // put your setup code here, to run once:
  Genotronex.begin(9600);
  Genotronex.println("Bluetooth On please press 1 or 0 blink LED ..");
  pinMode(ledpin,OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
   if (Genotronex.available()){
BluetoothData=Genotronex.read();
   if(BluetoothData=='1'){   // if number 1 pressed ....
   digitalWrite(ledpin,1);
   Genotronex.println("LED  On D13 ON ! ");
   }
  if (BluetoothData=='0'){// if number 0 pressed ....
  digitalWrite(ledpin,0);
   Genotronex.println("LED  On D13 Off ! ");
  }
}
delay(100);// prepare for next data ...
}

Credits

Surilli

Surilli

196 projects • 62 followers
Surilli is a premiere Internet of Things centric Technology Company aimed at providing cutting edge innovative solutions.

Comments