Hello. I have two devices HM-17 with arduino UNO, all works ok with other apps. But with Blynk I cant connnect. Blynk can find my devices, but cant connect. Authkey is ok. In serial monitor:
BLE devices do not work with any server (local or blynk cloud), as they should be connected to the blynk app on smartphone (which will resend values to the server).
You need:
Add device with BLE connection type in your project
Add a BLE widget
Open its settings and try to connect to your board and make sure the device’s token and token (auth[]) in sketch are same
@gavron04 you could use any pins, but if your want to have a serial connection to your Arduino and simultaneous work via BLE - you need to use some other pins.
“PROBLEM:
In the event I have to update my sketch on Arduino, this won’t work with the above connection as RX / TX (Ports 0/1) are connected. To upload a sketch I HAVE TO remove cables from ports 0/1…
On my project disconnecting these cables is extremely complicated… so in general not an option”
I will check 10 and 11 pins on arduino…
On 10/11 works good…
Testing baud 9600
Arduino send = AT
BLE reply = OK
Found BLE baud rate 9600
Arduino send = AT+NAME?
BLE reply = OK+Get:gavron04
Arduino send = AT+BAUD?
BLE reply = OK+Get:0
Arduino send = AT+MODE?
BLE reply = OK+Get:2
Arduino send = AT+PASS?
BLE timeout!
Arduino send = AT+VERS?
BLE reply = OK+Get:HMSoft V121
Arduino send = AT+RADD?
BLE reply = OK+RADD:49E9833XXXX
Arduino send = AT+ADDR?
BLE reply = OK+LADD:000E1702XXXX
Arduino send = AT+TYPE?
BLE reply = OK+Get:0
Arduino send = AT+POWE?
BLE reply = OK+Get:7
Arduino send = AT+NOTI?
BLE reply = OK+Get:0
Arduino send = AT+NOTI0
BLE reply = OK+Set:0
Waiting for remote connection…
How to make code with working TX,RX pin on arduino?
I would like to control by phone my board like:
phone > press vol up on blynk > send vol up via blynk to hm-17 > from hm-17 by tx/rx pins to AVR > from AVR to digital pins?
The output looks perfect, it should be possible to run Blynk on it. Can you upload the original Blynk program you wrote now, and add
#define BLYNK_DEBUG
because it is unclear to me why your Blynk program doesn’t want to connect.
It is possible to use pin 0&1 (RX/TX, Serial) to connect the BLE module, and this will improve the stability, but it is very difficult to develop without debugging information on Serial. Of course you have to use Serial instead of a SoftSerial then. Have a look at the Blynk example Serial_HM10_HC08.