Hi everyone!

I’m trying to control a “dumb” led light strip segment with an ESP-01S. This is fairly low current, the strip will pull 150mA-200mA max (depends on… artistic? needs).

I have two NPN transistors (2N2222), one to control the 12V supply to the white “channel” and the other the red+blue (don’t need the green).

I had to pull-down the gates as I had some flickering, and it works perfectly if I manually connect the GPIOs after the ESP-01S boots.

The ESP will boot if I have the RX pin (GPIO03) pulled down on boot, but not if I pull down any of the others.

I’m not smart enough to come up with a way to have that extra pin I need to be high only during boot, while the gate it’s attached to needs to be pulled down…

Any thought, other than getting something with more IO pins?

5 points

Would a circuit like this power-on reset circuit work for your application?

permalink
report
reply
3 points

Im sorry, noob here. I don’t know what the voltage at the reset pin would be when the capacitor is discharged, my first guess would be 0v but the answers there say it’s the reverse - VCC at power on, then goes to gnd as it charges.

If that’s the case, I think it’s exactly what I need.

I’ll test it out later today (and I’ll go read more about how this capacitor+resistance circuit works…).

permalink
report
parent
reply
3 points

As you said before power on capacitor is discharged. Right after power on capacitor is still discharged, so voltage on capacitor is zero, so reset pin has Vcc. With time capacitor gets charges and voltage across capacitor increases and reset voltage becomes closer and closer to ground, until it is ground. But it is important to consider what happens at power down too. At power down capacitor is charged. If power source becomes high impedance at power down, then reset pin will probably go down to zero in time but may take a bit time depending on what source exactly does. But if power source is connected to zero at power down reset pin will observe minus vcc and slowly go up to 0. If reset pin is sensitive it may be a good idea to protect it with a diode.

permalink
report
parent
reply
2 points
*

I’m not entirely clear on the problem, but yes - the circuit as drawn makes the microcontroller pin start high, then fall after some time. Do you need the microcontroller pin to have a different voltage than the transistor base (I assume when you said gate you mean base…gates are for FETs), or is this good enough?

permalink
report
parent
reply
1 point
*

Uh yes, pin to base.

I still couldn’t come up with a way to make it work using a resistor-capacitor circuit, but I did learn a lot (that particular rabbit hole led to me an article discussing capacitance in potato tubers…!).

There is probably a better way of solving it, but at least I got it working with another transistor to “decouple” that sensitive pin from the base. I’m not exactly sure why there’s a negative voltage across base and emitter, but it was preventing boot.

I’d be very interested in hearing any criticism you would be willing to share. I have hopes of moving this from my breadboard and solder it to a PCB so I can put it into a paper-cut lightbox that will be controllable from HomeAssistant, but I wouldn’t want to risk setting anything on fire…

One thing that concerns me is that 7333A. I only have it in a TO-92 package, and while it’s only powering the ESP-01S, which doesn’t really draw that much current, it still gets uncomfortably hot to touch (I can hold it for a few seconds, but not much longer). Is there a better alternative, or is it supposed to get hot?

Thank you!

[edit: updated the circuit, I had misplace a resistor]

permalink
report
parent
reply

Ask Electronics

!askelectronics@discuss.tchncs.de

Create post

For questions about component-level electronic circuits, tools and equipment.

Rules

1: Be nice.

2: Be on-topic (eg: Electronic, not electrical).

3: No commercial stuff, buying, selling or valuations.

4: Be safe.


Community stats

  • 156

    Monthly active users

  • 190

    Posts

  • 1.4K

    Comments