Arduino Uno R3
Python 2.7.8
PySerial 2.7
Status:
- 20141130 It's working.
Installing PySerial:
- mkdir ~/pyserial
- cd ./pyserial
- Download PySerial sources:
- wget http://pypi.python.org/packages/source/p/pyserial/pyserial-2.7.tar.gz
- gzip -d -r ./pyserial-2.7.tar.gz
- tar -xvf pyserial-2.7.tar
- cd pyserial-2.7
- su
- pwd
- python setup.py install
Testing PySerial:
- python
- import serial
- ser=serial.Serial(port='/dev/ttyACM0', baudrate=500000, timeout=1)
- print ser.readline()
- ser.write("100:1:200:0\n")
- ser.write("000:1:000:0\n")
References: