user68483: I have an arduino mega 2560 and a recently purchased HC-08 module and the connection is as the following:
Arduino | HC-08
VCC - VCC
GND - GND
14TX3 - TXD
15TX3 - RXD
When I power up the arduino it shows that flashing light and I am able to see it on my android phone but would only reject the connection every time I tried to pair. Also I am not able to send or receive any data from it at all, here is my code:
#include <SoftwareSerial.h>

SoftwareSerial hc08(15,14) // RX pin, TX pin;

void setup(){
  //Initialize Serial Monitor
  Serial.begin(9600);
  Serial.println("ENTER AT Commands:");
  //Initialize Bluetooth Serial Port
  hc08.begin(9600);
}

void loop(){
  //Write data from HC08 to Serial Monitor
  if (hc08.available()){
    Serial.println("Reading from bluetooth");
    Serial.write(hc08.read());
  }
  
  //Write from Serial Monitor to HC08
  if (Serial.available()){
    Serial.println("Writing to bluetooth");
    hc08.write(Serial.read());
  }  
}

I'd really appreciate help on how to get it working.

user68483: void setup(){
  //Initialize Serial Monitor
  Serial.begin(9600);
  Serial.println("ENTER AT Commands:");
  //Initialize Bluetooth Serial Port
  Serial3.begin(9600);
}

void loop(){
  //Write data from HC08 to Serial Monitor
  if (Serial3.available()){
    Serial.println("Reading from bluetooth");
    Serial.write(Serial3.read());
  }
  
  //Write from Serial Monitor to HC08
  if (Serial.available()){
    Serial.println("Writing to bluetooth");
    Serial3.write(Serial.read());
  }  
}


user71951: I think this is the problem on the hardware setting. It should be:
Arduino | HC-08
VCC - VCC
GND - GND
14RX3 - TXD
15TX3 - RXD
Variable declare:
SoftwareSerial hc08(14,15) // RX pin, TX pin;

68483: <p>I have an arduino mega 2560 and a recently purchased HC-08 module and the connection is as the following:</p>
<p><strong>Arduino</strong> | <strong>HC-08</strong></p>
<p>VCC - VCC</p>
<p>GND - GND</p>
<p>14TX3 - TXD</p>
<p>15TX3 - RXD</p>
<p>When I power up the arduino it shows that flashing light and I am able to see it on my android phone but would only reject the connection every time I tried to pair. Also I am not able to send or receive any data from it at all, here is my code:</p>
<pre><code>#include &lt;SoftwareSerial.h&gt;

SoftwareSerial hc08(15,14) // RX pin, TX pin;

void setup(){
  //Initialize Serial Monitor
  Serial.begin(9600);
  Serial.println(&quot;ENTER AT Commands:&quot;);
  //Initialize Bluetooth Serial Port
  hc08.begin(9600);
}

void loop(){
  //Write data from HC08 to Serial Monitor
  if (hc08.available()){
    Serial.println(&quot;Reading from bluetooth&quot;);
    Serial.write(hc08.read());
  }
  
  //Write from Serial Monitor to HC08
  if (Serial.available()){
    Serial.println(&quot;Writing to bluetooth&quot;);
    hc08.write(Serial.read());
  }  
}
</code></pre>
<p>I'd really appreciate help on how to get it working.</p>
 68483: <pre><code>void setup(){
  //Initialize Serial Monitor
  Serial.begin(9600);
  Serial.println(&quot;ENTER AT Commands:&quot;);
  //Initialize Bluetooth Serial Port
  Serial3.begin(9600);
}

void loop(){
  //Write data from HC08 to Serial Monitor
  if (Serial3.available()){
    Serial.println(&quot;Reading from bluetooth&quot;);
    Serial.write(Serial3.read());
  }
  
  //Write from Serial Monitor to HC08
  if (Serial.available()){
    Serial.println(&quot;Writing to bluetooth&quot;);
    Serial3.write(Serial.read());
  }  
}
</code></pre>
 71951: <p>I think this is the problem on the hardware setting. It should be:
Arduino | HC-08</p>
<p>VCC - VCC</p>
<p>GND - GND</p>
<p>14RX3 - TXD</p>
<p>15TX3 - RXD</p>
<p>Variable declare:
SoftwareSerial hc08(14,15) // RX pin, TX pin;</p>
