Hi,
I have connected my HM-10 with the Blynk app but when I press the button the LED doesn’t turn on.
I’m using the default Blynk Example HM-10 and HC08.
Button #: D13
What could I try to do to make it work?
G!
Hi,
I have connected my HM-10 with the Blynk app but when I press the button the LED doesn’t turn on.
I’m using the default Blynk Example HM-10 and HC08.
Button #: D13
What could I try to do to make it work?
G!
You could supply us more details to go on e.g. Full code; Clarity of how you have wired the two devices; Confirmation of BT/BLE module using correct BAUD rate and being properly connected in the App, and so on…
Hi Gunner,
Thanks for your support.
I have to mention that the MH-10 is currently not connecting with Blynk anymore. It happened yesterday too, but today it connected right away and 15 min later it disconnected after I wrote to the Blynk Community. Is there a problem with the app?
The set up is:
Connections:
Code:
#define BLYNK_USE_DIRECT_CONNECT
// You could use a spare Hardware Serial on boards that have it (like Mega)
#include <SoftwareSerial.h>
SoftwareSerial DebugSerial(2, 3); // RX, TX
#define BLYNK_PRINT DebugSerial
#include <BlynkSimpleSerialBLE.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "c1086626xxxxxxxxxxce193ab8675f";
void setup()
{
// Debug console
DebugSerial.begin(9600);
DebugSerial.println("Waiting for connections...");
// Blynk will work through Serial
// Do not read or write this serial manually in your sketch
Serial.begin(9600);
Blynk.begin(Serial, auth);
}
void loop()
{
Blynk.run();
}
Looking forward to some answers. Thanks again for the help.
G
I suspect this is the root of your issue… as an Android user I can’t be positive, but I believe the iPhone only supports BLE, not BT.
And again!!! as has been mentioned to you in prior posts… the proper way to post code here is in the Welcome Topic (read the included link above) and was also described in the instructions you deleted when posting your topic… I have corrected your post.
OK, I found more info on the other module you are using.
http://www.dsdtech-global.com/2017/08/hm-10.html
This should work… but I recommend you test it and your iPhone with some other non-Blynk app and process to be sure.
Definitely need to confirm that TX on one side goes to RX on the other, and vice versa… think from mouth to ear.
If you do this, then you need to use Serial, and not SoftwareSerial… changing all the code accordingly.
OK, I think I see your other issue… you are not using the proper serial port for the proper uses at all
The SoftwareSerial is the port for your Blynk connection… leaving the Serial port for Debug and programming.
Switch it around and try again… use this example to see how to do it.
Thank you so much, you ppl are awesome.
I will let you know how it goes .
regards
G
the problem came from the serial port. Now is working properly.
thank you for your help