I am a little new to using the bluetooth 4.0 ble pro shield. Almost all information online that have any type of instructions on how to use this device uses an arduino Uno. I am currently using an arduino Mega 2560, and there is no information on how to use the two together. I have tried researching the pin outs and rewiring them to work with a Mega but that seems not to work. Whenever I try and change the device to go into receiver mode, by using AT it does nothing. If anyone has any guidance or simple steps I could follow that would be great. The main focus of this project is just to pick up a low bluetooth signal like a ibeacon, and I am trying to use the 4.0 ble pro shield to achieve that.
Just saying it doesn’t work isn’t going to tell us why it’s not working. How have you wired it? What code are you using? What doesn’t work about it? Meaning what is it doing or not doing? Are you getting errors? Have you used Serial to debug it? Do you get where I’m going with this? POST more info!
Here is the code that I am currently using. Once I upload and click on the serial monitor if I type in AT I am not seeing anything but the information that I just entered. All I am trying to do is change the the ble shield into a receiver, so that I can pick up other bluetooth signals like a “xy find it” ble. The pin connections on the ble are from reset down to Vin on the and are connected to the same pins on the arduino. On the ble REF and GND are connected to AREF and GND on the arduino. Zero and one are connected to the communication pin 18 and 19.Female connection Pin 2 is connected to BT_TX and Digital into a breadboard and female connection pin 3 is connected to Digital and BT_RX into the same breadboard.
Here is a site I was using to try and help with the building process:
http://learn.linksprite.com/arduino/shi … -0-shield/
Currently right now I am not receiving any errors but I am not getting the results that I desire.
Hope this is enough!
#include <SoftwareSerial.h>
#define RxD 2
#define TxD 3
SoftwareSerial mySerial(RxD,TxD);
int incomingByte = 0;
void setup()
{
pinMode(RxD, INPUT);
pinMode(TxD, OUTPUT);
mySerial.begin(9600); // the ble4.0 baud rate
Serial.begin(9600); // the terminal baud rate
}
void loop()
{
//send data only when you receive data
if(Serial.available()> 0)
{
mySerial.print((char)Serial.read());
// Serial.print(Serial.available());
// Serial.println(mySerial.read());
incomingByte = Serial.read();
Serial.print("I received: ");
Serial.println(incomingByte, DEC);
}
if(mySerial.available())
{
Serial.print((char)mySerial.read());
// incomingByte = Serial.read();
// Serial.println(incomingByte, DEC);
}
}
hey krgrndbr89 did you get this going? I am have the same trouble… also when I try to connect via bluetooth it fails. What is the default pin for this device?
hey guys any luck with this? I am having the same problems. Also what is the default Bluetooth pin to connect via your phone?