Serial Monitor for ESP32 S3 Dev kit

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

void loop() {
for (int i = 0; i < 360; i += 5) {
float sine_1 = 1 * sin(i * M_PI / 180);
float sine_2 = 2 * sin((i + 90) * M_PI / 180);
float sine_3 = 5 * sin((i + 180) * M_PI / 180);

Serial.print(sine_1);
Serial.print("\t"); // a tab '\t' or space ' ' character is printed between the two values.
Serial.print(sine_2);
Serial.print("\t"); // a tab '\t' or space ' ' character is printed between the two values.
Serial.println(sine_3); // the last value is terminated by a carriage return and a newline characters.

delay(100);

}
}

Tried the above code with arduino uno and was able to plot the same in the serial plotter. But for ESP32 S3 Dev kit the same code is not working. It is getting uploaded but the serial plot and monitor does not seem to work.

Baud rate/ COM Port/ Board name everything is chosen correctly.

Currently we are using Arduino verison 2.0

Welcome to the forum

Your topic was MOVED to its current forum category which is more appropriate than the original as it has nothing to do with Covid-19

Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'

Use code tags (the </> icon above the compose window) to make it easier to read and copy for examination

Welcome
You can edit your post with the :pencil2: down here :point_down: and highlight your code then click the code tag button <|> up here :point_up_2:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.