Bluetooth Remote Control for Lego Technic Hub

Remote control your Lego Technic hub powered vehicle with the Arduino Nano 33 BLE Sense.

Aug 31, 2020

15646 views

5 respects

Immagine

Components and supplies

1

Nano 33 BLE Sense

Apps and platforms

1

Arduino IDE

Project description

Code

Github

https://github.com/hoharald/leguno-remote

Comments

Only logged in users can leave comments

Immagine
Immagine

mm_bagels

a year ago

Where can I get the "Technic.h" library?

Immagine
Immagine

mm_bagels

a year ago

whoops i got it now...

Immagine
Immagine

Anonymous user

2 years ago

Hello, very interesting project ;-) How yo made the main graphics ? Wich tool you use, where you hace found graphics of board and hub ? Thanks, Marc

Immagine
Immagine

haraldholzner

2 years ago

The graphics you will find in the web. For the rest i used Powerpoint.

Immagine
Immagine

Anonymous user

2 years ago

Hello Harald, would it be possible to use the base of your code for enhanced controlling of the control + hub? I would like to add: - pairing of multiple BT devices (multiple hubs and controllers) - use the controller as a input and not the gyro. Thanks and greets, Lorenz

Immagine
Immagine

haraldholzner

2 years ago

Sorry for this late response. I'm not that frequently in touch with this page. So, yes, it might be possible of course. You can apply your own inputs (buttons, joysticks) to the microcontroller and use them as control values for your vehicle or whatever assembly you made. I am just not sure if the Arduino BLE library can handle multiple clients (HUBs). I also did a little web application to control the HUB via a MS XBOX Controller before this project. Running it on a tablet with the XBOX Controller connected to an USB port and Bluetooth availability it was the better experience. I also read the GYRO of the HUB to give feedback on the controller vibration motors. The more impact on the GYRO (driving against a wall, over an obstacle) the more vibration. But you always must take the tablet with you and keep it in range of the BLE signal. The most exciting and intuitive control for me would be a combination of both. So, the Joystick Controller with an integrated BLE interface. I have not found a suitable library for the Arduino to get connected to the Xbox controller yet, so I did not give it a try. Regards, Harry

Immagine
Immagine

lopichler

4 years ago

Hello Harald, would it be possible to use the base of your code for enhanced controlling of the control + hub? I would like to add: - pairing of multiple BT devices (multiple hubs and controllers) - use the controller as a input and not the gyro. Thanks and greets, Lorenz

Immagine
Immagine

haraldholzner

2 years ago

Sorry for this late response. I'm not that frequently in touch with this page. So, yes, it might be possible of course. You can apply your own inputs (buttons, joysticks) to the microcontroller and use them as control values for your vehicle or whatever assembly you made. I am just not sure if the Arduino BLE library can handle multiple clients (HUBs). I also did a little web application to control the HUB via a MS XBOX Controller before this project. Running it on a tablet with the XBOX Controller connected to an USB port and Bluetooth availability it was the better experience. I also read the GYRO of the HUB to give feedback on the controller vibration motors. The more impact on the GYRO (driving against a wall, over an obstacle) the more vibration. But you always must take the tablet with you and keep it in range of the BLE signal. The most exciting and intuitive control for me would be a combination of both. So, the Joystick Controller with an integrated BLE interface. I have not found a suitable library for the Arduino to get connected to the Xbox controller yet, so I did not give it a try. Regards, Harry

Immagine
Immagine

stokerij

4 years ago

Can you also operate other vehicles such as the volvo and the rally car with it? THX Kris

Immagine
Immagine

haraldholzner

2 years ago

Hy Kris, sorry for this extremely late reply. Hope you do well and tried yourself to enhance the code to handle those other vehicles. I do not have those vehicles to set it up. Regards Harry

Immagine
Immagine

Anonymous user

5 years ago

Hello, very interesting project ;-) How yo made the main graphics ? Wich tool you use, where you hace found graphics of board and hub ? Thanks, Marc

Immagine
Immagine

haraldholzner

2 years ago

The graphics you will find in the web. For the rest i used Powerpoint.