BTLE with Arduino UNO + HM10

Hi everyone,
Thank you for this forum.
I have a project to connect my Arduino Uno with my android phone via bluetooth.
Toaday I use arduino IDE for my Arduino and Windevmobile for my phone.
My issue is I can't find out BLE library for my arduino UNO.
Please, could you tell me if it is possible to use BTLE with Arduino UNO ?
And if yes, where can I find it ?
If you need more informations, feel free to ask me.
Thans in advance for your help,
Have a nice day,
Sam
PS (sorry for my English, I am French)

have a look at HM-10 Bluetooth Module if gives an example interfacing with an Arduino nano
the HM-10 is a 3.3V device - note the voltage divider on the HM-10 RXD pin to reduce the Nano 5V logic to 3.3V
alternativly use a Arduino which uses 3.3V logic such as the Due

Welcome to the forum.

Have a look at the Arduino Nano 33 IoT, Arduino Nano 33 BLE or RP2040 Connect.

Arduino Nano 33 IoT
Arduino Nano 33-BLE
Arduino Nano RP2040 Connect

They are supported by the ArduinoBLE library which is easy to use.

ArduinoBLE library

Check out the Nano sub forum.

https://forum.arduino.cc/c/hardware/nano-family/87

also worth looking at is the ESP32 which has built in WiFi and Bluetooth (Classic and BLE)
it can be programmed using the Arduino IDE

Hello,
Thank you for your reply, yes I looked at the ArduinoBLE library but it is not compatible with Arduino Uno.
I can not use it.
Samuel

Hi,
thank you for your help, I can connect with DSD application without problem in serial mode.
But the issue it is with BLE mode.
Sam

Hi,
Ok thank you for this information.
If I can not do it with my Arduino Uno, I will try to use it.
Sam

could you give more details of the project which is using BLE?
are you planning to write your own Smartphone app? e.g. using Android Studio
or are you communicating with an existing app?

Of course.
I would like to manage my arduino with my Android phone.
I have : Arduino + HM 10 + Arduino IDE and Smartphone + WindevMobile
Yes I am planning to write my own Smartphone app with WindevMobile. Because I don't know Adroid Studio (I can learn if it is necessary).
Today, when I use "DSD TECH Bluetooth" or Serial Bluetooth Terminal", it works.
But I would like to use not serial but BLE (it is easier with WindevMobile).
It is for this reason I'm looking for a BLE library.
Thanks,
Samuel

have a look at ESP32 BLE for Arduino
if WindevMobile will meet your requirements use it
I tend to use Andtrod Studio programming in Java but it is not simple to use

Thank you for this librairy.
I have added this librairy but I have this error message when I want to use BLEDevice.h

#include <BLEDevice.h>
*C:\Users\samue\OneDrive\Documents\Arduino\libraries\BLEPeripheral\src/utility/hal_aci_tl.h:86:3: note: type 'struct aci_pins_t' should match type 'struct aci_pins_t'*
* } aci_pins_t;*
*   ^*
*C:\Users\samue\OneDrive\Documents\Arduino\libraries\BLEPeripheral\src/utility/lib_aci.h:65:16: note: type 'struct aci_state_t' itself violates the C++ One Definition Rule*
* typedef struct aci_state_t*

I don't understand why.
If you have an example with Java, I will be very interesting because I can add Java in WindevMobile. I have already used it for modbus connexion.
Thank you for your time.
Samuel

if I run Examples>ESP32 BLE Arduino>BLE_scan it compiles, builds and downloads to the ESP32 OK
just downloaded Examples>ESP32 BLE Arduino>BLE_uart to ESP32 connected Android using BLE terminal OK - serial monitor displays

Waiting a client connection to notify...
*********
Received Value: hello esp32

*********

Yes, I agree with you, but I think it is not compatible with Arduino Uno.
Because I tried with Arduino Nano and it works.
I can not use BLE with Arduino Uno. I need to use Bluetooth serial. I need to fine how I must connect Arduino and Android in bluetooth serial and not BLE.
What do you think ?
Samuel

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.