HC-05 connection issue

Hi I just got a HC-05 and have been trying to program it with AT commands. I am using the sketch below. The module goes into programing mode with a steady 2 second flash on the module. In the serial monitor I get the “Enter AT commands” prompt but when I enter any AT commands I get no reply. If I enter AT and return I “should” get an OK which I am not getting. Can anyone point me in the correct direction to solve this problem. Thanks for any help!!



AUTHOR: Hazim Bitar (techbitar)
DATE: Aug 29, 2013
LICENSE: Public domain (use at your own risk)
CONTACT: techbitar at gmail dot com (techbitar.com)


#include <SoftwareSerial.h>

SoftwareSerial BTSerial(10, 11); // RX | TX

void setup()
  pinMode(9, OUTPUT);  // this pin will pull the HC-05 pin 34 (key pin) HIGH to switch module to AT mode
  digitalWrite(9, HIGH);
  Serial.println("Enter AT commands:");

  BTSerial.begin(38400);  // HC-05 default speed in AT command more

void loop()

  // Keep reading from HC-05 and send to Arduino Serial Monitor
  if (BTSerial.available())

  // Keep reading from Arduino Serial Monitor and send to HC-05
  if (Serial.available())

Bump. Any help with this?? :drooling_face: