Imperial March on Lego motors
Lego motor DUO plays Star Wars: The Imperial March. Enjoy!
Bass: Lego Buggy motor (5292c01)
Baritone: Lego 9V Heavy Mini-Motor (71427c01)
The music is generated with PWM signals of varying frequencies. The same thing that causes the annoying whining noise you may have noticed with Lego Rechargeable Battery Box, SBrick and BuWizz. Guitar Pro tab, Raspberry Pi and Python code needed. Read more in my blog:
https://brickexperimentchannel.wordpress.com/2023/05/06/music-with-lego-motors-pwm/