Python Forum

Full Version: Serial to Arduino Help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Checkout https://pypi.python.org/pypi?%3Aaction=s...mit=search
you'll find a bunch of packages that do what you need
Perfect thanks man.