Android Bluetooth remote control for µP/ESP32

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
MasterOfGizmo
Posts: 50
Joined: Sun Nov 29, 2020 8:17 pm

Android Bluetooth remote control for µP/ESP32

Post by MasterOfGizmo » Wed Apr 06, 2022 11:05 am

Some time ago i wrote ftDuinoBlue http://ftduino.de/blue, a simple library for the Arduino+HM10-Bluetooth with an accompaning Android app. The idea was to store a simple description of a GUI with the Arduino sketch so that the Android app can read that from the arduino and draw a GUI accordingly. That way you don't need to configure anything in the android app and whatever arduino you access you'd be presented a matching GUI.

I have recently written a few lines of (Micro-)Python to replace the arduino sketch by micropython.
  • It implements a HM-10 like service using the ESP32's own bluetooth
  • It implements the ftduinoBlue protocol on top of the HM-10 service
The HM-10 is a simple and cheap bluetooth module very popular in the arduino world. In this case it's replaced by the ESP32. The python code can be found at https://github.com/harbaum/ftDuinoBlue/ ... icropython and the accompanying app at https://play.google.com/store/apps/deta ... tduinoblue.

The HM-10 code is not limited to the ftDuinoBlue but can be used for other purposes as well and is compatible to a lot of android (and probably ios) apps out there.

Image
Last edited by MasterOfGizmo on Wed Apr 06, 2022 1:55 pm, edited 1 time in total.

tepalia02
Posts: 99
Joined: Mon Mar 21, 2022 5:13 am

Re: Android Bluetooth remote control for µP/ESP32

Post by tepalia02 » Wed Apr 06, 2022 1:43 pm

Don't know about HM-10 that much. What is the maximum range of HM-10?

MasterOfGizmo
Posts: 50
Joined: Sun Nov 29, 2020 8:17 pm

Re: Android Bluetooth remote control for µP/ESP32

Post by MasterOfGizmo » Wed Apr 06, 2022 1:55 pm

tepalia02 wrote:
Wed Apr 06, 2022 1:43 pm
Don't know about HM-10 that much. What is the maximum range of HM-10?
It's just a BLE device, so 10m I'd guess.

But this isn't actually using a HM-10. It's using the ESP32's own bluetooth to mimic the HM-10. That allows the ESP32 to be used with all those apps that are meant to talk to the HM-10.

Post Reply