I'm trying to connect to my Ardiuno with Python on my Ubuntu computer. I tried this example: http://playground.arduino.cc/interfacing/python
But I always get:
>>> import serial
>>> ser = serial.Serial('/dev/tty.usbserial', 9600)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/bdist.linux-x86_64/egg/serial/serialutil.py", line 282, in __init__
File "build/bdist.linux-x86_64/egg/serial/serialposix.py", line 289, in open
OSError: [Errno 2] No such file or directory: '/dev/tty.usbserial'
>>>
I can use the serial connection in sketch without any problems. I also added my user to the groups tty and dialout.
How do I connect to my Arduino using Python?