this post was submitted on 30 Aug 2024
25 points (96.3% liked)

Ask Electronics

3313 readers
16 users here now

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.


founded 1 year ago
MODERATORS
 

I asked a while ago, how to build an automatic light switch and finally got around to actually building it.

My board is an ESP8266 mini D, and ignoring all the sensor parts, my problem right now is powering the actual light.

It's just a small LED array and I connected it directly to the 5V and GND pins (controlled via a transistor).

Measuring from the wall (so including the PSU), this whole setup pulls about 3W (so far expected), however, one small component close to the USB connector gets uncomfortably warm, and I'm not sure, whether that's ok.

The hot component is one of the two small thingies circled in the picture. I thought the 5V get pulled directly from the USB plug, so I'm not sure, why there is any circuitry involved.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 5 points 2 months ago (1 children)
  1. It helps ensure that levels between 2.5v and 5.5v can be fed to the controller without breaking anything. For some cheaper power supplies you might get a voltage drop when starting to pull load, this will clean that up and prevent the voltage from dropping too low for the microcontroller.

  2. If I'm reading the correct datasheet I can see it is current limiting so it should shutdown when overdrawn.

[โ€“] [email protected] 2 points 2 months ago

The voltage regulator is only used to generate the 3.3V supply for the ESP. But OP is using the 5V from the input of the regulator to power the LEDs.

At max it is wasting about 0.7W if the 400mA max current is right. But it will still get hot due to the current draw of the ESP. Even at half of the max. rated current this device is probably 30-40 degrees above your ambient temperature.