Re:Show HN: I hacked my son’s Duplo train to go faster using...
by RedGreenBlack on Sunday June 12, 2022 @03:56PM
(#31717707)
Again thanks for the comment. I updated the repo and created this site: https://benna100.github.io/duplo-train-voice-control/
Re:Show HN: I hacked my son’s Duplo train to go faster using...
by RedGreenBlack on Friday June 03, 2022 @01:55PM
(#31611574)
Uhh this is super nice. I did not even know there was a Web Bluetooth api. That's dope. Then I can drop all of the nodejs stuff and also run it from the phone that's a lot nicer. Thanks for the share!
The source is a single HTML file that also contains the JS. Just view source and modify if you're interested in taking this further. What's cool is that the protocol allows you to receive readings from the train and not just send commands. Also, it allows you to drive the train faster than you can via the official mobile app.