Control LEDs with Voice Command | Arduino-Bluetooth module tutorial

At first, I had a notion that it must be such a difficult job – controlling things just by giving voice commands ! Uhh… it seemed that only the experts & nerds could do it ! But believe me, this turned out to be one of the easiest things I’ve come across related to Arduino. So without wasting our time lets know how to control LEDs with voice commands with this Arduino-Bluetooth module tutorial !

Requirements :-

  1. Arduino board
  2. Breadboard
  3. Jumpers/single stranded wires
  4. RGB led
  5. Bluetooth module HC-05
  6. Android
  7. A can of beer to celebrate after you do it ! ?

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 –

Note that you connect the terminals to PWM pins only !

  • Longest terminal (2) – VCC
  • Terminal 1  – Pin 9
  • Terminal 3 – Pin 10
  • Terminal 4 – Pin 11
Arduino-bluetooth module tutorial

Connections of Arduino with BT module HC05 & RGB LED.


2 types of RGB led are available in the market – common anode & common cathode. Here I’m using common anode . If you are using common cathode, connect the longest terminal to GND pin of Arduino; rest all the connections are same.

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 BT Voice Control/AMR Voice(It’s free). Here is the link
  4. Open the app AMR Voice app (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 !

Here is a video tutorial for you. This will surely make your job easy !

Connections & Code for controlling normal LED with Voice commands :-

Connections :- Control led or any other stuff with android

Just replace RGB led with normal LED & connect the positive terminal to any PWM pin(here 9)

Code :-


Comment down the problems faced by you. I’ll be very glad to help you 🙂

Leave a Reply

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