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);
}
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 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