JY-MCU - Connecting 2

Hi, I’m building an rc project that, for whatever reason, won’t allow me to use the nrf24 modules i bought.

That being said, I’ve decided to try switching to the JY-MCU modules, which are faster and far simple, granted a shorter range.

I can perfectly communicate between arduino and Kindle fire using the sketch below:

#include <SoftwareSerial.h>

#define RXPIN 7
#define TXPIN 8
String message;

SoftwareSerial BTSerial(RXPIN,TXPIN);

void setup(){
  Serial.begin(57600);
  BTSerial.begin(57600);
}
void loop(){
  getBT();
}
void getBT(){
  if(BTSerial.available()){
    message = "";
    while(BTSerial.available()){
      char incoming = BTSerial.read();
      message+=incoming;
    }
  }
  if(Serial.available()){
    BTSerial.write(Serial.read());
  }
}

However, for my current project, I would have to design an android app that sends a constant stream of values, and this is something I’d really like to avoid.

Is there a way to make two JY-MCU modules link and communicate? I can’t find this answer on google.

Thanks

I don't know, but you have to configure one as Access Point and the other as a client, I guess. The default is Access point, so you should search if they can be connected to another device as client.

http://phillipecantin.blogspot.ca/2014/01/hc-05-bluetooth-link-of-2-arduino.html http://phillipecantin.blogspot.ca/2014/08/hc-05-bluetooth-link-with-zero-code.html

You can connect two JY-MCU together, as Runaway points out. Just make sure they are HC-05s. JY-MCU is not a bluetooth device but merely the backboard that bluetooth is fixed to.

You should check with the robotics mafia first. There is already a swag of Android apps available and you might find what you want.

You might also investigate using a BLE module like the TinySine, which has the look and feel of the HC-05 but can have a 100m range when working with another BLE device.