Sensors pull ESP-pins down on startup
Posted: Wed Jan 06, 2016 8:08 pm
This may be a newbie question, but I simply can't get it to work:
When I connect input/output devices like a servo motor or a sound detection sensor (both 5v) to my ESP-01, the connected GPIO-pin is initially pulled down and won't allow for a normal startup. I understand the pin should then also be pulled up via a resistor to the 3.3v VCC - which I have done with a 10K resistor (also tried with 1K). It has no effect: the ESP-01 always starts up in bootloader modes corresponding to the GPIO-pin I connect to rather than in normal-mode. If I disconnect the sensor, power up the ESP, and then connect the sensor - everything works.
I have also tried the software INPUT_PULLUP pinMode without succes, I guess this is to late in the boot-up procedure. Any advice would be greatly appreciated!!
My setup for testing:
ESP-01 (VCC and CH_PD) is connected to 3.3V on the Arduino UNO. And ESP-01 GND to Arduino GND. GPIO2 (via a 10K resistor) to Arduino 3.3V.
My device (in this case this sound detection sensor: http://www.ebay.com/itm/381374660513) is connected to 5V and GND on the Arduino UNO. And output-pin to GPIO2 on ESP-01.
When I connect input/output devices like a servo motor or a sound detection sensor (both 5v) to my ESP-01, the connected GPIO-pin is initially pulled down and won't allow for a normal startup. I understand the pin should then also be pulled up via a resistor to the 3.3v VCC - which I have done with a 10K resistor (also tried with 1K). It has no effect: the ESP-01 always starts up in bootloader modes corresponding to the GPIO-pin I connect to rather than in normal-mode. If I disconnect the sensor, power up the ESP, and then connect the sensor - everything works.
I have also tried the software INPUT_PULLUP pinMode without succes, I guess this is to late in the boot-up procedure. Any advice would be greatly appreciated!!
My setup for testing:
ESP-01 (VCC and CH_PD) is connected to 3.3V on the Arduino UNO. And ESP-01 GND to Arduino GND. GPIO2 (via a 10K resistor) to Arduino 3.3V.
My device (in this case this sound detection sensor: http://www.ebay.com/itm/381374660513) is connected to 5V and GND on the Arduino UNO. And output-pin to GPIO2 on ESP-01.