HC-06 module not communicating with arduino

My HC-06 module is not communicating with arduino, i.e. no signals sent to arduino for movement of robot
The connection is HC-06>>>Arduino

VCC>>>>3.3v

GND>>>>GND

TXD>>>>RXD

RXD>>>>TXD
I tried using serial monitor and the motor is working and HC-06 is pairing with android

Adafruit Motor shield library
// copyright Adafruit Industries LLC, 2009
// this code is public domain, enjoy!

#include <AFMotor.h>
#include <Servo.h> 

// DC motor on M2
AF_DCMotor motor(2);
// DC hobby servo
Servo servo1;
// Stepper motor on M3+M4 48 steps per revolution
AF_Stepper stepper(48, 2);

void setup() {
 Serial.begin(9600);           // set up Serial library at 9600 bps
 Serial.println("Motor party!");
 
 // turn on servo
 servo1.attach(9);
  
 // turn on motor #2
 motor.setSpeed(200);
 motor.run(RELEASE);
}

int i;

// Test the DC motor, stepper and servo ALL AT ONCE!
void loop() {
 motor.run(FORWARD);
 for (i=0; i<255; i++) {
   servo1.write(i);
   motor.setSpeed(i);  
   stepper.step(1, FORWARD, INTERLEAVE);
   delay(3);
}

 for (i=255; i!=0; i--) {
   servo1.write(i-255);
   motor.setSpeed(i);  
   stepper.step(1, BACKWARD, INTERLEAVE);
   delay(3);
}

 motor.run(BACKWARD);
 for (i=0; i<255; i++) {
   servo1.write(i);
   motor.setSpeed(i);  
   delay(3);
   stepper.step(1, FORWARD, DOUBLE);
}

 for (i=255; i!=0; i--) {
   servo1.write(i-255);
   motor.setSpeed(i);  
   stepper.step(1, BACKWARD, DOUBLE);
   delay(3);
}
}

Please read the "How to use this forum" post and follow the directions.

Post the code, using code tags, and define "not communicating".

robodoc99: My HC-06 module is not communicating with arduino, i.e. no signals sent to arduino for movement of robot The connection is HC-06>>>Arduino

VCC>>>>3.3v.............. I tried using serial monitor and the motor is working

Check power requirements on the bluetooth module. While you probably haven't done any damage, having a 1k/2k divider on Arduino Tx is a good idea. If your motors work in response to signals from the serial monitor, there is nothing wrong with the code.

You might find the following background notes useful

http://homepages.ihug.com.au/~npyner/Arduino/GUIDE_2BT.pdf http://homepages.ihug.com.au/~npyner/Arduino/BT_2_WAY.ino

There is a bi-logic voltage level regulator between the HC-06 and arduino so there is no issue with power supply

Then I don't suppose there is any point in suggesting you again to check the power requirements on the bluetooth module.

The HC-06 modules I know have an onboard 3.3volt regulator that needs at least 3.6volt to work. A 5volt supply is recommended. TX/RX levels are 3.3volt though. Connect TX from module directly to the Arduino. Use a voltage divider (1k:2k) for the RX pin to drop 5volt from the Arduino to 3.3volt for the module. Leo..