Tags: HC05, HC-05, Master-slave, 6pin, JY-MCU, Anti-reverse, Wireless, Integrated, Bluetooth, Module, Arduino

HC-05 (HC05) Bluetooth Module for Arduino Master slave 6pin JY-MCU Anti-reverse Wireless Integrated

  • 20.00 AED

    30.00 AED

    • Ex Tax:20.00 AED
    • Product Code: HC05
    • Availability: In Stock
    This class 2 Bluetooth module comes programmed with firmware that allows it to pass the output of a serial communications port (default is 9600 baud) over a Bluetooth wireless connection with no software configuration. The module is mounted on a convenient mezzanine adapter board providing an interf..

    This class 2 Bluetooth module comes programmed with firmware that allows it to pass the output of a serial communications port (default is 9600 baud) over a Bluetooth wireless connection with no software configuration. The module is mounted on a convenient mezzanine adapter board providing an interface for power and Tx/Rx serial communication. Additionally the module, by use of AT type text commands issued via the serial interface can be reconfigured from its default Bluetooth slave state to a Master state. This means that module can not only communicate with Bluetooth master devices such as PC's and smart phones, but also when in master mode it can automatically pair with a second module in its default slave configuration allowing an end to end serial communication over Bluetooth
    HC-05 could be setted to master or slave by user. HC-06 can only be master or slave which could be customized.
    Wiring(only need 4 wires): RX to RXD / TX to TXD / GND to GND / 3.6V to 6V
    Power: 3.3V



    Control led or any other stuff with android

    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 

    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.

    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 :-

    void setup() {
    Serial.begin(9600);
     pinMode(8, OUTPUT); // put your setup code here, to run once:
     }
    
    void loop() {
      // put your main code here, to run repeatedly:
     if(Serial.available()>0)
       {     
          char data= Serial.read(); // reading the data received from the bluetooth module
          switch(data)
          {
            case 'a': digitalWrite(8, HIGH);break; // when a is pressed on the app on your smart phone
            case 'd': digitalWrite(8, LOW);break; // when d is pressed on the app on your smart phone
            default : break;
          }
          Serial.println(data);
       }
       delay(50);
    }