Power supply not working on custom pcb

Hello, Im new to the forum

I designed a custom pcb based on this https://github.com/azrael783/esphome_garagedoor_opener and this https://github.com/jampez77/garage_door_sensor for esphome/homeassistant

I nailed the esp part but the power supply is not working

For context the controller for the garage door have 2 buttons for up and down that you can connect to and a output that give 24v dc and a analog signal with the door status.

I designe my power supply around a LM2596SX-3.3 that should give 3.3v to my esp from the 24v of the controller board

I followed the typical application in the datasheet but i had to replace a couple of components, for example i used a SS54 smd diode instead of the 1N5824

I attached the schematic and the pcb layout

For what happens: when i connect a 24dc power supply to the input it shorts or at least seems like it. What can I do to troubleshoot the problem?

D4 was wrong in schematics and D5 was misplaced

You are missing the input capacitor. It should go between the diode and regulator. Also, while that regulator is very forgiving, switchers in general are quite picky about their layout. I would rotate the regulator 90 degrees (so the pins are available. Use a topside pour for ground (bottom pour as well is nice) with a short switch node path (regulator/inductor/diode).

In general, you want the input loop (capacitor/regulator/inductor) and output loop (diode, inductor, output cap) as tight and with as fat traces or pours as possible.

Look at https://www.onsemi.com/design/tools-sof … adpbckgevb for a good example

https://www.ti.com/lit/ug/snvu536/snvu536.pdf is also good but a little bit looser of a layout than I would use (but I need my designs to pass FCC emissions tests)

/mike

Alright, to get to the bottom of your power supply problem, let’s break it down. First, take a good look at your PCB for any obvious issues like damage or misplaced components. Then, grab a multimeter and check for any sneaky short circuits. Double-check that all your components are facing the right way and in the correct spots. Make sure the LM2596SX-3.3 is getting the right juice – around 24 volts DC. Test it separately to see if it’s behaving. Once everything’s back together, measure the output voltage and inspect those grounding connections. If you spot any damage, swap out those parts and give those solder joints a little touch-up. That should hopefully sort things out!