Home > Software engineering >  Serial communication from arduino to Linux terminal
Serial communication from arduino to Linux terminal

Time:11-13

I have been trying to print the serial output from the Arduino to the Linux terminal but the output sent to the terminal seems to be empty with string as shown in the figure below

void setup() {
Serial.begin(9600);

void loop() {
float zby = 4.54;
 Serial.println(zby);
delay(1000);
}

the output of the serial in the linux terminal in windows

I have tried using Raspberry Pi so I connected the Arduino to the raspberry and did the same thing but at least i found something received The output of the serial from raspberry piThe ports that i have used

The Arduino code and terminal output

CodePudding user response:

I think you havent set the baudrate properly. On arduino you set it to 9600 but on pc its 115200. The baud rate needs to be the same on the sending and the recieving side.

CodePudding user response:

You need setup the same baundrate

  • Related