I want to power ESP32 with 230V AC and I don’t know how to do it. The requirement is that it must never overheat. What components should i use? The ESP will be in small space with no airflow. Will it be even possible?

  • 2
    with an AC/DC switching power supply?
    – Juraj
    Sep 28 '21 at 11:50
  • What do you mean "overheat"? The ESP32 is robust microcontroller, according to the datasheet, the board can work in a temperature range of -40 to +125 degrees Celsius. Do you think that your setup will get that hot?
    – Coder9390
    Sep 28 '21 at 12:08
  • 2
    And regarding the power, you can just use a standard 5V Wall adapter with a voltage regulator
    – Coder9390
    Sep 28 '21 at 12:09
  • I’m not experienced with changing voltage and this kind of stuff, but I expexted it to produce quite a lot of heat. Am I wrong?
    – krystof18
    Sep 28 '21 at 12:10
  • 4
    I would just suggest standard USB chargers. They give you 5V and are very cheap
    – chrisl
    Sep 28 '21 at 12:13

The folks over at Random Nerd Tutorials offer a solution for this exact scenario using a HLK-PM03 Hi-Link 100-240V AC to 3.3V 1A DC converter. They add electrical and thermal fuses to mitigate some of the possible failure modes of over-temperature or over-current.

The specifications of the HLK-PM03 are here. I suspect there will be a few alternatives available that do a similar function.

My suggestion is to be hyper-aware of the safety issues of dealing with mains power, and to be realistic about your own capabilities.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.