Arduino serial port really slow
in
Core Library Questions
•
1 year ago
Hey all, I'm working on some basic sketches with processing communication with arduino for a workshop class and I'm running into a weird issue. The serial library connection is VERY VERY SLOOOOOOOOOOWWW. I'm not sure whats going on but there is a huge lag between processing and the arduino over the serial library. I thought it was my code so i took everything out except for reading and writing (println commands, conditionals, etc) and it was still running very slow.
I tried using the SimpleWrite example that comes with the processing libraries and that was super slow as well. I'm not sure whats going on.
I switched the Arduino library which uses the same serial library and everything seems to be running fine again.
I used the serial library with arduino and processing for my senior project from college 3 months ago in december and it worked fine. The only difference in my setups is that I am running Mac OSX 10.7 (lion) now as opposed to snow leopard 10.6 back then. Can anyone shed any light on why this is being so slow? If you need a code sample to test with, just use the processing example 'SimpleWrite' because thats what I was using.
1