Bluetooth HC-05 first use . unable to read from it

Hello.
I have connected the HC-05 to my arduino
VCC-3.3V
GND-GND
Tx - pin8
RX - PIn 9

using this code I have found on line

//  Sketc: basicSerialWithNL_001
// 
//  Uses hardware serial to talk to the host computer and software serial 
//  for communication with the Bluetooth module
//  Intended for Bluetooth devices that require line end characters "\r\n"
//
//  Pins
//  Arduino 5V out TO BT VCC
//  Arduino GND to BT GND
//  Arduino D9 to BT RX 
//  Arduino D8 BT TX
//
//  When a command is entered in the serial monitor on the computer 
//  the Arduino will relay it to the bluetooth module and display the result.
//
 
 
#include <SoftwareSerial.h>
SoftwareSerial BTserial(8, 9); // RX | TX
 
const long baudRate = 38400; 
char c=' ';
boolean NL = true;
 
void setup() 
{
    Serial.begin(9600);
    Serial.print("Sketch:   ");   Serial.println(__FILE__);
    Serial.print("Uploaded: ");   Serial.println(__DATE__);
    Serial.println(" ");
 
    BTserial.begin(baudRate);  
    Serial.print("BTserial started at "); Serial.println(baudRate);
    Serial.println(" ");
}
 
void loop()
{
 
    // Read from the Bluetooth module and send to the Arduino Serial Monitor
    if (BTserial.available())
    {
        c = BTserial.read();
        Serial.write(c);
    }
 
 
    // Read from the Serial Monitor and send to the Bluetooth module
    if (Serial.available())
    {
        c = Serial.read();
        BTserial.write(c);   
 
        // Echo the user input to the main window. The ">" character indicates the user entered text.
        if (NL) { Serial.print(">");  NL = false; }
        Serial.write(c);
        if (c==10) { NL = true; }
    }
 
}

but the HC-05 doesn’t replay
I can see it’s blinking

on the HC=05 there is a writing
Level 3.3V
power 3.6-6V

I have try to switch the Rx\Tx , but it didn’t work\make any change.

what did I miss \ did worng ?

Thanks ,

What exact module do you have?

For modules marked "Level 3.3V Power 3.6--6V" the supply to the HC05 module should be 5V. If tthe HC05 module is to be connected to a 5V Arduino, there needs to be a 5V to 3.3V level shifter on the HC05 RX line (typically a resistor voltage divider). The default baud rate for communication is 9600, 38400 is for when the module is in AT mode. The connection is Arduino RX to HC05 TX and Arduino TX to HC05 RX (through the level shifter for 5V Arduino).

For more info.
A page on the HC05.

david1234:
I have found on line

It looks like it is for something else, but it did say run HC-05 on 5v, as mentioned above.

You might find the following background notes useful.

groundFungus

question

I have connected using a level shifter
High 5V to arduino , low 3.3V to HC-05 RX PI

I’m using the HC-05 as mantion in the link you post
zs-040

but stil I get nothing

I have also try to use this code

// Basic Bluetooth sketch HC-05_02
// Connect the HC-05 module and communicate using the serial monitor
//
// The HC-05 defaults to commincation mode when first powered on.
// The default baud rate for communication mode is 9600
//
 
#include <SoftwareSerial.h>
SoftwareSerial BTserial(2, 3); // RX | TX
// Connect the HC-05 TX to Arduino pin 2 RX. 
// Connect the HC-05 RX to Arduino pin 3 TX through a voltage divider.
// 
 
char c = ' ';
 
void setup() 
{
    Serial.begin(9600);
    Serial.println("Arduino is ready");
 
    // HC-05 default serial speed for commincation mode is 9600
    BTserial.begin(9600);  
}
 
void loop()
{
 
    // Keep reading from HC-05 and send to Arduino Serial Monitor
    if (BTserial.available())
    {  
        c = BTserial.read();
        Serial.write(c);
    }
 
    // Keep reading from Arduino Serial Monitor and send to HC-05
    if (Serial.available())
    {
        c =  Serial.read();
        BTserial.write(c);  
    }
 
}

I can connect to the HC-05 and pair
when I send a message from the android phone bluetooth terminal I can see the message on the arduino serial monitor
but when I send fro mthe arduino serial monitor I don’t see it on the phone

so what am I missing ?

I set up an Uno with an HC-05 and your code from reply #3. Using my Android tablet running Bluetooth Terminal HD-05 I get good communication both ways. So the code is OK.

Is the line ending setting in serial monitor set to Both NL&CR or Newline?