Baud Rate

it works at 9600 Baud rate. >9600 or<9600 it doesn’t work TX and RX blink but LED is not.
:o

then just keep it on 9600 baud I would say.

If that is not a solution then please post your code according the guidelines.

Have you changed the baud rate on your PC when you change the rate in your sketch?

Weedpharma

weedpharma:
Have you changed the baud rate on your PC when you change the rate in your sketch?

Weedpharma

myport.BaudRate =9600;

4800 doesn't work too.

robtillaart:
then just keep it on 9600 baud I would say.

If that is not a solution then please post your code according the guidelines.

if i use

String data = Serial.readString();

it delay 1 sec. too slow for motor.

earth317:
if i use
String data = Serial.readString();
it delay 1 sec. too slow for motor.

Then don't use that code, or learn what .readString() does and use it correctly so you don't have to wait for the timeout.

johnwasser:
Then don't use that code, or learn what .readString() does and use it correctly so you don't have to wait for the timeout.

thanks you it works

Serial.setTimeout(10);

If you need more help please post your complete program. And please post your program using the code button </> so it looks like this

You may find the examples in Serial Input Basics helpful. They are simple, reliable and non-blocking.

…R