How to control Pin 13 LED using Smartphone via Bluetooth

About This Tutorial
In this tutorial you will be turning on and off led Pin-13 of evive via smartphone.
Tutorial Info

Components Required

ImageComponentQuantityAvailable in Kit
HC05 Bluetooth Module1
USB A-B Cable1


In this tutorial you will be turning on and off the led Pin-13 on evive via smartphone. For this smartphone will be connected to bluetooth module Hc-05 plugged on evive. Commands for controlling led will be sent by smartphone via app named “Serial Bluetooth Terminal” for Android. This app transmits the command entered in it to Hc-05 via bluetooth of smartphone. The app can be downloaded from google play store. Before using app at first pair the bluetooth with your smartphone. Further instruction for using app can be seen by clicking on video

The password for HC-05/HM-10/AT-09 Bluetooth module is either 1234 or 0000 or 123456 or 00000 by default.

Working of Code

  • Whatever data is received by Hc-05 is stored at first.
  • This stored value is compared with character ‘H’ and ‘L’.
  • If stored value is ‘H’ led turns on.
  • If stored value is ‘L’ led turns off.

Arduino IDE Sketch

Below is the Arduino IDE sketch:

This helped
This didn't help
Share this Tutorial
Share on facebook
Share on twitter
Share on google
Share on pinterest
Share on reddit
Share on print
Related Projects & Tutorials
Arduino IDE for Loop
Arduino IDE: for Loop
This tutorial discusses what is loop statement, a for loop, its general syntax in Arduino IDE, and how it works.
All articles loaded
No more articles to load
Featured Projects
DIY Robotic Arm Bartender

This project will show you how to make your own robotic arm bartender that will make you a star host!

All articles loaded
No more articles to load
Close Menu