I was getting this output earlier but since the time I have rest my PC my serial monitor now doesn't display the output whenever I interface the ESP32 with any component be it DS3231 or PZEM.
Can anybody tell me what can be possible solution to this?
Please do not post pictures of text and Serial monitor output. Post the actual text
The easier you make it to read and copy your code the more likely it is that you will get help
Please follow the advice given in the link below when posting code , use code tags and post the code here
If you get errors when compiling please copy them from the IDE using the "Copy error messages" button and paste the clipboard here in code tags
Post your well formatted code in code tags would go some way towards a solution.
When I'm having trouble with serial output, I like to do a quick check with the most simple possible sketch. If this works, then I know the problem has something to do with my real sketch. If it doesn't work, then I know the problem is not related to my sketch code.
Try uploading this sketch to your Arduino board:
-
Copy and paste this code as a new sketch in the Arduino IDE:
void setup() { Serial.begin(9600); } void loop() { Serial.println("hello"); delay(1000); }
- Upload the sketch to your Arduino board.
- Open Serial Monitor.
- Make sure the baud rate menu at the bottom of the Serial Monitor window is set to "9600".
Do you now see the word "hello" being printed in the Serial Monitor's output field once a second?
I add this startup to all my sketches
void setup() {
Serial.begin(9600);
for (int i = 10; i > 0; i--) {
Serial.print(i); Serial.print(' ');
delay(500);
}
Serial.println();
// etc
}
void loop() {
}
You should see a count down over 5sec
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.