-->
Page 2 of 3

Re: ESP-01 GPIO keep high but goes low!

PostPosted: Wed Sep 09, 2015 4:59 pm
by westywest
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.

Re: ESP-01 GPIO keep high but goes low!

PostPosted: Wed Sep 09, 2015 5:43 pm
by martinayotte
That is not really a good practice, with 10 ohms, you can destroy your GPIO if it is turned to LOW state.
You are better switching to sink type connection.

Re: ESP-01 GPIO keep high but goes low!

PostPosted: Sat Sep 19, 2015 3:36 am
by eriksl
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).

Re: ESP-01 GPIO keep high but goes low!

PostPosted: Wed Sep 23, 2015 2:47 pm
by electronicsguy
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?