HC-05 is in AT mode but not responding to any command


good evening,

like said in title, i'm not getting response hc-05 module when in @ mode.
pairing phone working. led on module indicating states correctly (at mode, paired, discovery).

i followed tutorial , used code provided there. wiring correct according said tutorial.

tutorial:
http://www.instructables.com/id/modify-the-hc-05-bluetooth-module-defaults-using-a/all/

wiring:


code:
code: [select]
/*

author: hazim bitar (techbitar)
date: aug 29, 2013
license: public domain (use @ own risk)
contact: techbitar @ gmail dot com (techbitar.com)

*/


#include <softwareserial.h>

softwareserial btserial(10, 11); // rx | tx

void setup()
{
  pinmode(9, output);  // pin pull hc-05 pin 34 (key pin) high switch module @ mode
  digitalwrite(9, high);
  serial.begin(9600);
  serial.println("enter @ commands:");
  btserial.begin(38400);  // hc-05 default speed in @ command more
}

void loop()
{

  // keep reading hc-05 , send arduino serial monitor
  if (btserial.available())
    serial.write(btserial.read());

  // keep reading arduino serial monitor , send hc-05
  if (serial.available())
    btserial.write(serial.read());
}


baudrate in serial monitor set correctly , new line set \r\n

after see "enter @ commands:" in serial monitor type at, send , nothing happens.

i tried use bluetooth in different project , failed configure module programatically, discovered source of evil module not responding @ commands , i'm trying figure out why.


thanks in advance help

second module tried didn't response aswell


Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > HC-05 is in AT mode but not responding to any command


arduino

Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code