Home › Evil Mad Scientist Forums › Clock Kits › Alpha Clock Five and serial in Python from a Raspberry Pi › Re: Alpha Clock Five and serial in Python from a Raspberry Pi
February 27, 2013 at 9:06 pm
#21208
Windell Oskay
Keymaster
If it is resetting, then somehow you must be triggering the Auto-Reset feature, that we use in programming. So, you need to disable the RTS# line on the FTDI interface.
The solution, I believe, is found here:
(via raspberry pi forum: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=32&t=6832 )
Explicitly disable the RTS as follows:
myport=serial.Serial(‘/dev/ttyUSB0’,19200, rtscts=1)
Please let me know if that fixes it!