Serial to Arduino Help - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Serial to Arduino Help (/thread-1984.html) |
Serial to Arduino Help - Kwebersole - Feb-09-2017 So I am new to Python but not new to coding. And I am working on a project that involves controlling an Arduino via serial. So far I was able to use the Arduino to send a serial print to Python and have Python print it. But i need to be able to send command from Python. And every time I use the serial.write("xxx") I get an error. I caint find any good code on google for this. So basically I need a bare min. script. I have pyserial installed. I can post my code but I really don't have anything I really dont have anything. If someone has code for this that would be great!! Thanks RE: Serbia to Arduino Help - Larz60+ - Feb-09-2017 Checkout https://pypi.python.org/pypi?%3Aaction=search&term=serial+arduino&submit=search you'll find a bunch of packages that do what you need RE: Serial to Arduino Help - Kwebersole - Feb-10-2017 Perfect thanks man. |