I recently made available a free library of control and automation software for Powered UP (Bluetooth) trains. I’ve been working on it for the past year or so as a personal project, but I believe there might be someone out there in the hobbyist community that might benefit from it.
The software is free (MIT license), and entirely written in Python. It is available as source code. That way, it can either be used in its entirety, or just parts of it can be plucked out and used in your own software project. Or even just as a source of ideas on how to solve certain software problems unique to a train control system.
The high-level description of the software is in the top page of the software repository at
https://github.com/cuernodegazpacho/legotrain
There, you can find links for a few videos. There is also a link for a page with colorimetry measurements I made for some LEGO colors (the system relies on the Powered UP 88007 Color & Distance Sensor).
Please let me know in case you have questions or discussion topics.