I just found this blog post about how to make #music using #pwm on #lego #powerfunctions #motors. not that I want to, but there is quite some technical information in there.
Gets me thinking about building a simple #train motor Forth library. To run on a microcontroller inside your #locomotive to which you connect via wifi ... hmmm ... @f4grx what do you think?!
https://brickexperimentchannel.wordpress.com/2023/05/06/music-with-lego-motors-pwm/






