PWM Mysterious - XIAO SAMD21

Control the switches from XIAO too

I would suggest upgrading to XIAO ESP32C3 so you can uses OTA updates to do wireless changes to the program

Also check into how musical notes are played in coding

You could write a script like a sheet of music to command the sequence exactly

For example F command may move forward one inch
R command move reverse 1 unit
B command break

So a command might be such as FFFBRRRB

how are you planning to accuate the track switches?

The following link provides information on how to directly manipulate registers. I tried it at 32 kHz, and it worked fine.

1 Like