am using the example program liquid crystal display in our arduino IDE.
when i use the serial console it works perfectly.
but when i use the following program its not working ......any help from python guys???
import serial
ser = serial.Serial('/dev/ttyUSB0', 9600)
ser.write('hello world')
try adding ser.flush()
When you open the serial port, the Arduino resets and hangs out in the bootloader for a little while to see if you're going to download a new program. Your Hello World is probably being ignored by the bootloader.
Add a small delay, perhaps a second or so, after the open and see if that helps.
I ship a python serial proxy named "bitty.py" with Bitlash; it may be useful to review, here: http://bitlash.net/wiki/bitty.py
Best,
-br