I have a very simple python script that uses pySerial to send data over the serial port to my Arduino. When I execute this line-by-line in the python shell, it works just f
OK, I've figured it out!
It's necessary to use code like this before performing the write:
time.sleep(1) ser.setDTR(level=0) time.sleep(1)
Otherwise, the arduino automatically resets upon receiving a serial connection for some reason. yay!