I’m looking to make a driver to control power mosfet with a pwm signal (20-40KHz) approximately. I searched on the internet and recommend settings “Totem Pole” as shown in the diagram. The LM317 I’ve added is because I think power loads 12V-32V so a greater than 20V voltage on the gate would damage the mosfet so I have regulated 10V
Tell me if it’s okay or that arrangement would recommend …
Or if they know of circuits of this type …
We really need to know the current draw of the load too in order to suggest something. If you are driving a mosfet with big gate charge ( greater than 50nC) then a totem pole is a suitable way to attain the switch frequency you need (20-40khz) unless you use a driver IC.
If you are only switching a small load and can use a mosfet with a small gate charge ( <20nC) then you might be able to use a single LOGIC LEVEL mosfet. The buz11 and irfp260N are not logic level. They both won’t turn on properly at 5v gate drive and the irfp260N will not switch fast enough without a totem pole driver because it will take to long to charge the gate. The flyback diode should be across the load too.
The circuit that you have isn’t a bad start. I would change the resistor before the led to 150-300Ohm and have some more decoupling around the voltage regulator ( see datasheet). A 10k pulldown at the mosfet gate to ground isn’t a bad idea either. There may be more suggestions, I didn’t look over it that thoroughly.
The current draw of the load and type of load is the key. With that we can recommend a suitable mosfet and a system to drive it.