HC06 not Blinking

hi there,
I bought two different HC06 modules from two different places, but now when I connect both, they're not blinking and obviously not found in Bluetooth,
just wanted to know doesn't it sounds like both of them are already broken?

thanks

Why is this obvious? What have you tried, besides powering them and observing the LEDs?

Have already upload different codes, change rxd txd pins
Used another arduino…

What else could I do to debug?

Please post the entire code you tested with, in code tags, along with a complete description of the problem behaviour. Post a complete, accurate diagram of the wiring.

Avoid using Breadboard; make direct connection using male-female jumpers. This is from my experience with four brand new HC-05 which were not blinking on Breadboard.

Have you messed up the BT configuration with AT commands?

I tried this tutorial: #36 Control your Arduino from your phone - HC06 Bluetooth module - YouTube
with this code:

#include "Arduino.h"
#include <SoftwareSerial.h>

SoftwareSerial BTSerial(4,6);

void setup(){
  BTSerial.begin(9600);
  Serial.print("Set Up Complet");
  Serial.begin(9600);
}

String messageBuffer = "";
String message = "";

void loop(){
  if(BTSerial.available() > 0){
    char data = (char) BTSerial.read();

    switch(data){
      case '1':
      Serial.print("ON");
      break;

      case '0':
      Serial.print("OFF");
      break;

      default:
      Serial.print("NotRec");
      break;
    }
  }
}

also this tutorial: Adding Bluetooth to Your Arduino Project with an HC-05 or HC-06 Bluetooth Module - YouTube

with this code:

#include "Arduino.h"
#include <SoftwareSerial.h>

const byte rxPin = 9;
const byte txPin = 8;
SoftwareSerial BTSerial(rxPin,txPin);

void setup(){
  pinMode(rxPin, INPUT);
  pinMode(txPin, OUTPUT);
  BTSerial.begin(9600);
  Serial.begin(9600);
}

String messageBuffer = "";
String message = "";

void loop(){

  while(BTSerial.available() > 0){
    char data = (char) BTSerial.read();
    messageBuffer += data;

    if(data == ':'){
      message = messageBuffer;
      messageBuffer = "";
      Serial.print(message);
      message = "You Sent" + message;
      BTSerial.print(message);
    }

  }
}

with the same pin numbers as mentioned in the tutorial

Can your mobile phone "see" the BT module?
Have you done the "pairing" between the two?

1. Make the following connection.
hc5-1

2. Upload the following sketch.

#include <SoftwareSerial.h>
SoftwareSerial SUART(2, 3); // SRX = 2, STX = 3
#define ledpin 13  //built-in L of UNO

void setup()
{
  Serial.begin(9600);
  SUART.begin(9600);
  pinMode(ledpin, OUTPUT);
  digitalWrite(ledpin, LOW);  //L is OFF
}

void loop()
{
  if (SUART.available())
  {
    char x = SUART.read();
    if (x == 'Y')
    {
      digitalWrite(ledpin, HIGH);  //L is ON
    }
    if (x == 'N')
    {
      digitalWrite(ledpin, LOW);    //L is OFF
    }
  }
  if(Serial.available())
  {
    char c = Serial.read();
    SUART.print(c);
  }
}

3. Open BT Terminal in your Phone.
4. Pair your Phone with BT.
5. Send Y from Phone and check that L (built-in LED) is ON.
6. Send N from Phone and check that L is OFF.
7. Open Serial Monitor at Bd = 9600.
8. Enter Hello in the InputBox of SM and then click on the Send Button.
9. Check that Hello has appeared on the BT Terminal of your Phone.
10. This is the end of functional check of BT.

2 Likes

no never, It's not even flashing,

How many BT you have?

As I've seen if I connect the RXD TXD to the TX,RX of Arduino, then it cannot build and upload the code on the board, but in my case it does, and still, nothing happens and the module not flashing.

I have two, both are the same,

Buy two more -- hobby costs a lot!!

have you used resistors too?

You have to pair both devices first to continue.

I can't find it in any list,
even no light flashing on the module.

Post a useful picture of the hardware setup.

1 Like

My newly bought HC05 works with resistors and w/o resistors for its RX-pin.