I designed this circuit to work as a buck converter, using atmega32a as a controller to get PWM with 500k HZ and 47% duty cycle, my problem is that I am not sure how to connect between the control side and the buck circuit, I am using optocoupler 6n137 it can handle the frequency but the output is only 5 volts(which can't drive the MOSFET).

the opto controls a n-mosfet irf3205 with the 5 volts (it won't be fully opened and will have high resistance) then it controllers p MOSFET IRF5305 with the right Vgs, so the Ron of the p mosfet stays low, does it seems like a good design?

ps1: the control and power sides are using different supplies and independent grounds

ps2: I saw this answer, and I will consider it if this design doesn't work. Level shift circuit MCU to MOSFET

ps3: i am realizing the irony of using an oppto that need 5 volt supply to get a 5 volt o/p from the converter but i am very beginner and all my focus is on the converter itself.

enter image description here

New contributor
mr.Arrow is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • 1
    It's unclear why you are using an opto isolator given that U1 and the buck converter share the same ground point symbolically. – Andy aka Dec 6 at 17:15
  • 1
    I didn't know how to make separate grounds on protus software but I am using different sources and different grounds like i said in the post. – mr.Arrow Dec 6 at 17:19
  • What is exactly your question? (Whether it is a good design or not depends on which requirements you have for this circuit.) – Stefan Wyss Dec 8 at 20:45
  • to be more clearer i want to know if the circuit after the optocoupler is capable of shifting the voltage from 5 volt to 12 volt at 500k HZ, for now i don't think so – mr.Arrow Dec 9 at 0:54

Your Answer

mr.Arrow is a new contributor. Be nice, and check out our Code of Conduct.

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.