Control LEDs with your Android | Arduino-Bluetooth module tutorial

You already know what we are gonna do today…so lets get started !

Things you’ll need :-

  • Arduino board
  • Breadboard
  • Bluetooth module/sensor – HC05
  • Couple of jumpers/single stranded wires
  • LEDs
  • An ANDROID(obviously 😛 )

Video tutorial down below !

Connections Of Bluetooth module HC05 :-

VCC – to VCC of Arduino.
GND – to GND of Arduino.
RX – to digital pin 0(TX pin) of Arduino.
TX – to digital pin 1(RX pin) of Arduino. (connect RX & TX pin after uploading the code)

Of LED –
Positive terminal – to pin 8 of Arduino.
Negative terminal – GND of Arduino.

bluetooth module tutorial, connections, coding, arduino

Connections of bluetooth module HC05 with Arduino

Procedure :-

  1. Make the connections as shown in the above image. Don’t connect the RX & TX pins WHILE/BEFORE  uploading the code !
  2. Copy the code given below.
  3. Download the app called BlueControl (It’s free). Here is the link
  4. Open the app Blue control (It will automatically turn on the device’s Bluetooth). Go to options. Click on “Connect to Robot”. Choose the device – HC 05.
  5. When you are connecting to the Bluetooth module for the first time, it will ask you the password. Enter 0000 OR 1234.
  6.  When the device gets successfully paired with the sensor, the LED lights on sensor will start blinking at a slower rate than usual.
  7. DONE. Copy the code given below & test it out !

Code :-

 

Here’s a video tutorial which will surely make your job easy… 🙂

Comment below if you face any difficulties. I’ll solve them for you ASAP

6 Comments

  1. Thank you for this tutorial, but I am facing a problem while applying this project.

    My circuit is connected as you connect and my code is the same, but when i press the button in my phone, Nothing happen 🙁

    Actually I change the default name and password for my Bluetooth module, I don’t know if this was the problem. Can you help me?

    Thank you

    • Hello Mary ! Check whether you’ve connected the RXD & TXD pins properly !
      Well, changing the name won’t affect the circuit, but if your connections are proper & code is correct, try reverting the module’s name back to the original/default one !

  2. Thank you for the tutorial..connections are same as you did, same code same app…But my led won’t turn on and off…and a on board Tx led is glowing as i’m pressing any buttons on the app…
    Waiting for the reply

  3. i want to connect bluetooth modulo hc-05 with arduino mega 2560.in which pin i connect rx and tx pin.

Leave a Reply

Your email address will not be published. Required fields are marked *