DuploSense

My son and I enjoy playing with Lego Duplo trains. Lego has an app for controlling them remotely, but my kid is more interested in the app and its interactive elements than in controlling the trains.

When I searched for solutions for controlling the trains with a PlayStation controller, I found options like “Take two ESP32s and solder them this way…”, “Buy Pybricks…”, and so on. There was no solution that could be installed on a laptop right away and used immediately.

I decided to fix this problem and found an elegant way: just a webpage. You open it in a browser with WebHID support, connect a DualSense controller via Bluetooth, connect up to two Duplo trains, and choo-choo!

Here's webpage: https://duplo.osmonov.com

Source code: https://github.com/kalys/duplosense