gianlucalongoni

the following sketch should work, accepting three values entered by the utilizer, blinking three different leds, with delay times equal to the values entered with serial communication.It works! But the problem is that, every time i enter three new values and press start, several seconds pass before the command is received by arduino, and the leds start blinking withe the new delay times. What is the cause? Serial communication baud rate?

But the problem is that, every time i enter three new values and press start, several seconds pass before the command is received by arduino

In fact, very little time passes before the command is received by the Arduino, just over a millisecond per character.

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.Do not send technical questions via personal messaging - they will be ignored.I speak for myself, not Arduino.

"Several seconds" doesn't sound like a baud rate issue unless you are transferring tons of data. I would venture to guess that the the delay() calls in all of your blink functions are what cause the latency. You're telling the processor to sit and twiddle it's thumbs despite the fact that serial data is available. You should rewrite those utilizing the technique demonstrated in the Blink Without Delay example.