Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By westywest
#28751 Thanks very much for the responses.

The LED was 'sourcing current' from the IO pin.

Whilst tinkering I added a 10 ohm resistor between VCC and GPIO 0. This did trick, holding GPIO 0 high and allowing it to work as expected.

Thanks again.
User avatar
By eriksl
#29422 IR LEDs draw much more power than regular visible light LEDs. I'd really recommend to have the GPIO drive a transistor (over a resistor, of course) and have the transistor drive the IR LED. Extra advantage of this setup is that you can pull the GPIO high (GPIO0/GPIO0) or low (GPIO15) and it won't matter (if using appropriate pullup/pulldown resistors).
User avatar
By electronicsguy
#29716 Hi,
your post helped me! But I am able to use only 1 led. How can we drive 2 LEDs without using transistors?

setup: gpio0 is pulled high using 10K.
LED is connected between GPIO2 and GND thru another 10K. (If I connect the LED to GPIO2 directly, the esp goes into flash mode. I don't understand why this is so... isn't the flash mode controlled only by the state of pin GPIO 0?)

This setup works by controlling GPIO2. Can I have another LED on GPIO 0?