Hi all,
I am new to electronics and designed my first circuit. However I fried one of my PCB and trying to determine the root cause. What I am suspecting is caused by a diode polarity that I missed.
The PCB was working fine for about an hour or 2 without any issues. Then suddenly it stopped working. There are 3 power rails that supplies to the board. 24V, 5V and 3V. I realized 3V rail stopped working and 5V has a weak output. Also MOSFET was super hot, even though there were no load is connected and gate was off. D7 Indicator LED was also off so there were no voltage flowing.
I started checking all the diodes since some of them were connected reverse. I fixed all of them, or at least I thought I fixed them. Later I found out D8 were soldered in reverse.
I wonder due to diode was soldered in reverse it constantly supplied 24VDC to the drain side of the MOSFET instead of protecting it, which possibly leads to the failure of the PCB? Since I am absolutely new to electronics design I am trying to figure out if that is the cause of this failure.
Here is the MOSFET schematics below to control a load. It is controlled by esp32.
I also forgot to add a large pad at the bottom side of the PCB to cooldown the MOSFET properly. Is there any workaround for this like adding a separate heatsink on top of the MOSFET?
Thank you.

I am new to electronics and designed my first circuit. However I fried one of my PCB and trying to determine the root cause. What I am suspecting is caused by a diode polarity that I missed.
The PCB was working fine for about an hour or 2 without any issues. Then suddenly it stopped working. There are 3 power rails that supplies to the board. 24V, 5V and 3V. I realized 3V rail stopped working and 5V has a weak output. Also MOSFET was super hot, even though there were no load is connected and gate was off. D7 Indicator LED was also off so there were no voltage flowing.
I started checking all the diodes since some of them were connected reverse. I fixed all of them, or at least I thought I fixed them. Later I found out D8 were soldered in reverse.
I wonder due to diode was soldered in reverse it constantly supplied 24VDC to the drain side of the MOSFET instead of protecting it, which possibly leads to the failure of the PCB? Since I am absolutely new to electronics design I am trying to figure out if that is the cause of this failure.
Here is the MOSFET schematics below to control a load. It is controlled by esp32.
I also forgot to add a large pad at the bottom side of the PCB to cooldown the MOSFET properly. Is there any workaround for this like adding a separate heatsink on top of the MOSFET?
Thank you.
