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
Close Menu


STEMpedia Starter Package is now on Indiegogo!
Get 41% OFF with Super Early Bird discounts!