This question already has an answer here:
- Why does USB port enumeration change? 2 answers
(Using Raspberry Pi 3B, Raspbian Jessie)
I have a Python script that uses an Arduino with Pyserial.
I want to start this script on boot, but my problem is that sometimes the Arduino binds to /dev/ttyACM0, and sometimes to /dev/ttyACM1.
If it binds to the one that's not specified in the script, the script fails.
Is there a way to force one or the other? And if not, is there a way I can switch from one to the other in the script?