Electronic – Convert microcontroller 3.3V output to 6V

microcontrollermosfetpulluptransistors

I have built an h-bridge from 4 MOSFETS (PHP21N06LT) shown below. This bridge is used for motor speed control in either direction and fast stop. I have a dev board with C8051F020 microcontroller on board. I have noticed that if I provide 6V to the gate of the mosfets the motor runs much faster than providing 3.3V (same as output from microcontroller GPIO) to the gate and the motor does not run as fast.

enter image description here

I need to somehow pull up the gate voltage to 6V when microcontroller GPIO goes high and vice versa. I tried the circuit below but it does not do what I intend to do.

enter image description here

Am I going in the right direction? Can someone suggest something?

Best Answer

You could just cascade two transistors like this:

schematic

simulate this circuit – Schematic created using CircuitLab

Ah I see you're using n-channel MOSFETs on the high side .. If true you either need more than the bridge supply by 5V (depending on the MOSFET) or to use p-channel MOSFETs on the high side.