HM10 Bluetooth not replying


hi,

i bought hm10 bluetooth module , trying send @ commands using arduino uno. have tried many many codes send , receive @ commands, never reply.

i have code:

#include <softwareserial.h> 

int bluetoothtx = 2;  // tx-o pin of bluetooth mate, arduino d2
int bluetoothrx = 3;  // rx-i pin of bluetooth mate, arduino d3

softwareserial bluetooth(bluetoothtx, bluetoothrx);

void setup()
{
  serial.begin(9600);  // begin serial monitor @ 9600bps

  delay(100); 
  bluetooth.begin(9600);  // start bluetooth serial @ 9600
}

void loop()
{
  if(bluetooth.available())  // if bluetooth sent characters
  {
    // send characters bluetooth prints serial monitor
    serial.print((char)bluetooth.read()); 
  }
  if(serial.available())  // if stuff typed in serial monitor
  {
    // send characters serial monitor prints bluetooth
    bluetooth.print((char)serial.read());
  }
  // , loop forever , ever!
}






the hm10 led flashing, know not connected anything. , type @ in serial monitor , click send, never reply of kind. suggestions?

int bluetoothtx = 2;  // tx-o pin of bluetooth mate, arduino d2
int bluetoothrx = 3;  // rx-i pin of bluetooth mate, arduino d3

softwareserial bluetooth(bluetoothtx, bluetoothrx);
this looks nonsense. think commands in reverse order. make sure rx connected tx , tx rx


Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > HM10 Bluetooth not replying


arduino

Comments

Popular posts from this blog

Help with Missing Filename Error?

more info - Joomla! Forum - community, help and support

Using phone battery to power a plane.