Yesterday i've bought bluetooth module hc-05 and it worked fine until today.

When i send data from bluetooth terminal from android, EEBlue.available() is always 0 here's my code:

#include <SoftwareSerial.h>
SoftwareSerial EEBlue(0, 1);

void setup()

void loop()
    char inChar = (char)EEBlue.read();
    if(inChar == 'a'){
    Serial.println("i got 'a' from android bluetooth terminal"); 
    }else if(inChar == 'b'){
    Serial.println("i got 'b' from android bluetooth terminal"); 

The strange thing is, while i can send data from arduino's serial monitor to monitor at bluetooth terminal at my phone i cant see what i send from bluetooth terminal at arduino's serial monitor

Note: The code worked fine until yersterday so i doubt its some code error, also i'm using arduino uno if it's some help

I connected the pins like this:





I also tried it with pins 10/11

  • pins 0, 1 are the hardware serial pins, so setting up software serial on those same pins is going to cause problems... Yo said you tried 10,11 which should work. – Chad G May 29 '18 at 23:27
  • It was working fine with 0/1 pins until today when i removed bluetooth to test something else, then i put again the bluetooth and it was like stopped working i couldnt receive any data from bluetooth terminal – Denis May 29 '18 at 23:50
  • 2
    Well in your sketch, Serial, and EEBlue are essentially the same thing, they are trying to use the same pins for Tx and Rx. – Chad G May 29 '18 at 23:54
  • removed bluetooth to test something else .... are you sure that you reconnected it the same way? – jsotola May 30 '18 at 1:10
  • Yea im pretty sure that i connected it as i should GND to GND VCC to +5V RXD to TX(pin 1) TXD to RX(pin 0) and i cant receive anything – Denis May 30 '18 at 11:25

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.