Relative Content

Tag Archive for pythonarduinoserial-port

Python normally sends data to the COM port via input, but no more

It is necessary to send a string number to the Arduino uno. After working with c#, c++, I don’t understand what python sends to the port. I looked at an example of work from the official website, decided to adapt it to my needs, it does not work, — Arduino does not send data back. I began to gradually remove the lines and change the methods. I found a problem.
The code works fine if you send a string number via input, but if you enter it directly, nothing works. And then my understanding dropped.