Connecting Lego 51515 Hub to HM-10 Bluetooth

Hi all,

I’ve been working on a project to develop an object detection capability for a Lego Mindstorms 51515 robot.

Looking at various options I decided to use the ArdObjectTracker Android app to provide the object detection functionality. However, this generates a stream of data over Bluetooth Classic whereas the Lego 51515 hub uses BluetoothLE.

I therefore built a Bluetooth Classic to BluetoothLE bridge using an Arduino Micro, an HC-05 and an HM-10 module. I have attached a pic of the circuit (note the HM-10 is at the top of the pic).

I have also provided full code and other details in the following GitHub repo:

Also, here is a video of the robot in action:

Hopefully this will help others who are attempting to integrate Arduino with the Lego 51515 set.