The problem is that the 4011 doesn't act as a switch. With a slow voltage change it acts as an amplifier and burns out the mosfet. I asked here once before and someone recommended a better gate but when I tried to order it a couple of years ago Durring the IC shortage, it was unavailable. Now I would like to order it again but I can't remember what the number was! Can some help please?![0201241619.jpg 0201241619.jpg](https://forum.allaboutcircuits.com/data/attachments/301/301772-d00c9a6cebaba7bc98fe5da2e5741c0e.jpg)
![0201241619.jpg 0201241619.jpg](https://forum.allaboutcircuits.com/data/attachments/301/301772-d00c9a6cebaba7bc98fe5da2e5741c0e.jpg)