Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By J.Silva
#89531 Hello,

I am trying to power 3 leds to blink with esp1 using an universal charger that can be adjusted to 3V.
I'm posting an image of the circuit as a file, and will aswel describe the pin connections below:

RX - LED
GPIO0 - LED
GPIO2 - LED
RESET - VCC
CH_PD - VCC
TX - open

here is what I tried and I'll start by the only case that worked:

Lipo battery: the 3 leds blink as expected, the battery is measuring about 2.8V

Arduino Uno 3.3V;
usb adapter for esp1 vcc and gnd pins,
universal charger (3.6V on voltimiter, drops to 3.1 when loaded)

All of these three will only light the leds pluged on the GPIOs and not the one connected to RX. And I should mention that they don't blink.


I preferebly would like this to work with a charger since I'm learning and testing.

anyone have a clue or can point me to a solution?

I was thinking if it's correct to connect leds directly to gpios and rx, tho I've seen people doing that in tutorials. And I am still confused that it works with the lipo battery, but not the other sources.

thanks.
You do not have the required permissions to view the files attached to this post.
User avatar
By btidey
#89537 It is not a great idea to connect a LED to a GPIO without a series resistor to define the current. For example the red LED starts conducting around 1.2V across it and will rapidly increase as that voltage increases. With 3.3V from a GPIO the current would theoretically be enormous but in practice gets limited by the drive capability of the GPIO. This is not well defined and so you don't really know how much current is going through the LED, and it is putting unnecessary strain on the GPIO. Instead you should use a series resistor to set the current. So for example if you want 5mA through the LED then assume the LED will drop 1.5V then the resistor should be (3.3 - 1.5) / .005 or 360 Ohm. The voltage dropped by the LED will vary depending on its color.

Second the power supply. Your charger is dropping to 3.1V when loaded but this is measured with a voltmeter which is giving you an average reading. If there is pulses in the current drawn then the voltage may be dipping well below the voltage you measure and this could be causing mal-operation of the ESP. A power supply that is dropping by 0.5V when under what should be a modest load does not sound like a supply that is fit for this use. You need one that can supply 0.5A without a significant drop.

The LIPO measuring 2.8V sounds bad as well. A charged LIPO should start at about 4.2V and go down gradually to 3.3V when it discharged. Measuring 2.8V would indicate either that the battery is suspect or fully discharged or that you have high resistance power leads connecting the power to the ESP so that voltage is being dropped across them.