My serial monitor does not display anything and I've tried every solution I found online but nothing seems to work
Can someone help me out? what seems to be the problem??
#include <ESP8266WiFi.h>
const char* ssid = "WED6FDGBgo"; // Your Wi-Fi Name
yes and in the tools too, its all the same
I read somewhere that after uploading the code I should press reset button on my ESP, but its a pin in esp-01 so I connected it to a switch and after uploading I press the button and the serial monitor prints out gibberish
I also tried connecting it to GND and VCC and nth changed
Hi @hanaalaa .
Please do this test.
This garbage-looking printed msg is the ESP control msg after reset, printing at 57600 or 74880 bps.
Just for testing, change your serial monitor to 57600 (or 74880) and see what appears printed.
this is the one I'm using (Different color tho)
My connections are:
Tx-RxD(of the TTL)
Rx-TxD(of the TTL)
CH-EN-3.3V
GPIO0-GND
GPIO2-Vcc (to program in UART mode because my project requires interfacing with UART)
Vcc-3.3v
GND-GND
What happens if you disconnect the cable (power off), connect it back, then open the serial port?
Ans: when I do so the serial monitor still prints out nothing
Good. So you can print to Serial and the problem is in your sketch or how you are using it
Upload your sketch then open the Serial monitor and with it still open disconnect the power to the ESP and reconnect it. Does anything appear on the Serial monitor ?
turns out the problem was in my loop function, but my code still prints sometimes and other times it doesn't what could be the problem?
for example I copy pasted this exact code: ESP8266 Node MCU Handling HTML web forms data | Circuits4you.com
but me serial monitor doesn't print even tho it printed a while ago, weird!