[solved] arduino via serial port
Hi
I am using open sesame with arduino microcontroller platform.
I am communicating with my arduino with pySerial library.
I am using the arduino to activate motors, but each loop when I write the command
ser = serial.Serial("com8", 9600)
It resets the arduino and its take few seconds that destroy my experiment(due to the arduino bootloader).
Is there any way to create the ser class of pyserial just once when I start the experiment
and call the serial.write command without creating a new class every time?
Comments
Hi!
Yes there is! Put the following
inline_scriptsomewhere at the beginning of your experiment:Now use the following
inline_scriptwhenever you want to call thewritemethod:Good luck!
thank you!!!