Arduino BLE pairing on iPhone

Hello,

Project Goal:
Able to pair with the arduino board using iPhone 5 and Android devices and transmit/receive data between board and iphone/android devices.

Project Description:
I am currently working on a personal project using Arduino Uno, RedBear BLE shield and a bluetooth module (HC-06). I have 4 buttons. Clicking each button sends a code/number.

Problem:
I am able to find the peripheral and pair with android phones and on mac book pro but the peripheral is not discoverable on iphone to pair.

Not sure what I need to do to makes this discoverable on iPhone. Any help is greatly appreciated. Below is the sketch.

Thanks in advance.

char INBYTE;
const int LED13 = 13; // LED on pin 13
const int LED12 = 12;
const int LED11 = 11;
const int LED10 = 10;
int state = 0;

void setup() {

Serial.begin(9600);
pinMode(LED13, INPUT);
pinMode(LED12, INPUT);
pinMode(LED11, INPUT);
pinMode(LED10, INPUT);
}

void loop() {

if( !digitalRead(LED13))
{
delay(25);
if( !digitalRead(LED13))
{
Serial.println("PIN 13");
}
delay(50);
}

if( !digitalRead(LED12))
{
delay(25);
if( !digitalRead(LED12))
{
Serial.println("PIN 12");
}
delay(50);
}

if( !digitalRead(LED11))
{
delay(25);
if( !digitalRead(LED11))
{
Serial.println("PIN 11");
}
delay(50);
}

if( !digitalRead(LED10))
{
delay(25);
if( !digitalRead(LED10))
{
Serial.println("PIN 10");
}
delay(50);
}
delay(50);
}

The iPhone has a different protocol, so only certain modules are able to be paired. I heard that the GoldSmirf can be paired, but HC - 05/06 modules can't be.

Thank you HazardsMind. :slight_smile:

Are you saying the problem is with the Bluetooth Module (HC-06) and even with BLE shield the bluetooth module (HC-06) does not work with iPhone?

Is this the one you are referring to? SparkFun Bluetooth Modem - BlueSMiRF Gold - WRL-12582 - SparkFun Electronics

Thank you..

Some modules do work but the normal ones like this HERE, does not.

Do a search for compatible "Arduino bluetooth modules" that work with the Iphone and see what you get.

The module u sent me is the same one I am currently using. May be upgrading the module might help.

No, the link I gave you is the modules the DONT work.

abhilash0001

I would check to see if you can at least "discover" your Bluetooth module using the iPhone app LightBlue and see if you can see your shield / module in peripheral mode. You also might want to make sure you have both the module and the shield set in peripheral mode. From reading the product website for the shield you posted, it states that the shield operates in peripheral mode, but does not say anything about working in central mode. So for whatever reason, if your module happens to be configured as a central, I don't think your iPhone will discover the BLE device / module.

And cross posting is just not on!.

Mark

holmes4:
And cross posting is just not on!.

Mark

care to elaborate what you mean by this?

http://forum.arduino.cc/index.php?topic=209615.0

Mark

holmes4:
http://forum.arduino.cc/index.php?topic=209615.0

Mark

hunh? I am not sure what your getting at here.

Try looking for HM-10 module on google. it works great with an iphone...

Chaitanya1:
Try looking for HM-10 module on google. it works great with an iphone...

@Chaitanya1, considering that this is a thread from more than 2 years ago, I suspect that you're just a tiny bit late with your reply. :wink:
(Why dredge up antique threads and provide an answer? It just confuses people, when they don't notice just how old the thread actually is.)

@OldSteve I thought if anyone was looking for an answer and still didnt find any luck, And if this post comes up their google search, my reply might help them. Sorry to bother you..

Since this dead thread has been revived, I just wanted to throw in my pennies. I came across this search from google, and Chaitanya1's response helped point me in the right direction. A question answered late is better than a question never answered, but I do understand the dead thread thing. Cheers!

Glad to help kdub

Same here, was helpful for me. Thanks Chaitanya1!

Find tis old post was helpful, just cause it's old .... like me.... does not mean someone has not found a solution that has not been tried. I just bought an HC05 (2017) module and am experiencing the same frustration not discoverable or pairable with an iphone. I have it working with my wifes Android phone, but naturally she would like it back.

So in the way of an update I downloaded LightBlue as was suggested it does not work either. In fact seems like a useless app. Save your money for a different bluetooth peripheral.

Sacrificed $$$$ thru another apple gouge for the cause :wink:

Code on !!

I'm in the same situation as kdub. I appreciate Chaitanya1's input and it also helped steer me in the right direction.