Re: Alpha Clock Five and serial in Python from a Raspberry Pi

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

#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: 
Explicitly disable the RTS as follows:
myport=serial.Serial(‘/dev/ttyUSB0’,19200, rtscts=1)

 


Please let me know if that fixes it!