Hello Arduino forums, I need help troubleshooting an issue with a code I tried to use from the forum. Thanks to Robin2 for his wonderful thread at PC - Arduino comms using Python -- updated - Interfacing w/ Software on the Computer - Arduino Forum, I was inspired to connect the MKR1000 to my Raspi 3B+ however running his sample code returns the "waiting for Arduino to reset" and code hangs there in the console indefinitely until I close it. Can someone help me identify what the issue is?
Hardware: Raspi 3B+, Arduino MKR1000
I also noticed that everytime I use this code and run the ls /dev/tty* command to check the port Arduino is connected to, it increments by 1. The first time I ran the code, the Arduino was connected to ACM0, after 4 times or so, I saw that Arduino was connected to ACM4. Is there something wrong with the code or is it my Pi? I want to send data from Pi to Arduino through Serial on USB. Any hints, advice or another example code to help with my serial communication problem is greatly appreciated. Thank you for your time.