Hi,
I've created an setup in which Arduino is responsible for controlling three stepper motors - their range of movement and speed / acceleration. Since I need to sync visuals projected on to the objects moved by those steppers I'm sending a pulse via Serial.write() to processing sketch each time the step is executed at the microcontroler. This setup works quite fine at lower motor speeds ( which equals to lower step frequency ) but at he higher speeds the visuals are loosing sync ( laging behind real object movement ). That is probably because serial communication is just to slow to update rotation counter on Processing side. Rendering is not a bottleneck for sure since I've got a stable 120 fps.
Does anyone succeeded in establishing serial connection working seamlessly both ways ( I need to send commands from Processing to Arduino to set speed/range of movement ) at higher baud rates than documented 115200 ?
I'd be grateful for any guidance.
I've created an setup in which Arduino is responsible for controlling three stepper motors - their range of movement and speed / acceleration. Since I need to sync visuals projected on to the objects moved by those steppers I'm sending a pulse via Serial.write() to processing sketch each time the step is executed at the microcontroler. This setup works quite fine at lower motor speeds ( which equals to lower step frequency ) but at he higher speeds the visuals are loosing sync ( laging behind real object movement ). That is probably because serial communication is just to slow to update rotation counter on Processing side. Rendering is not a bottleneck for sure since I've got a stable 120 fps.
Does anyone succeeded in establishing serial connection working seamlessly both ways ( I need to send commands from Processing to Arduino to set speed/range of movement ) at higher baud rates than documented 115200 ?
I'd be grateful for any guidance.
1