Troubleshooting basic ESP8266 issues

You may run into some issues when using the ESP8266's basic functions. We will list some of the common problems that many people face and some ways of troubleshooting them.

The analog pin cannot measure high voltages

The analog pin of the ESP8266 can only measure voltages between 0V and 1V. If you have a sensor that outputs an analog signal that goes above that range, you will need to divide it. Otherwise, most of your readings from the analog pin will be 1023.

The best way of dividing the voltage is by using a voltage divider. It is easy to implement, since all you need is two resistors of the desired value and you are good to go.

Since most of the analog sensors you use with the ESP8266 board will output a signal of voltages between 0V and 3.3V, you will need a 1200 Ω resistor (R1) and a 470 Ω resistor (R2) to build a voltage divider.

You can read more on voltage dividers at this link: https://learn.sparkfun.com/tutorials/voltage-dividers.

The board stops working when things are connected to some pins

There are some pins on the ESP8266 board that are used for reset functions and for boot mode functions. Therefore, ensure that:

  • CH_PD (EN) is always pulled high because it will disable the ESP8266 when it is pulled low
  • RST is always pulled high because it will disable the ESP8266 when it is pulled low
  • GPIO 0 is pulled high during power up/reset for the user program to run, otherwise the module will enter bootloader mode. It is normally pulled high by the red LED
  • GPIO 2 is pulled high on power up/reset
  • GPIO 15 is pulled low on power up/reset

The board keeps on crashing and resetting

This is mostly caused by a power failure. Always ensure you are powering the ESP8266 board from a 3.3V power supply if there is no on-board voltage regulator, or from a 5V power supply if there is an on-board voltage regulator.

The board produces gibberish on the serial monitor when I rest it

Those are ROM debug messages and the reason they appear as gibberish is because they are transmitter at a baud rate of 74880. They are usually corrupted and appear as a strange set of characters.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.12.172