KRAKKUS.COM



Low side direct drive a MOSFET

By far, the easiest way to switch a load on and off is to drive a MOSFET directly. This can be from a microcontroller or any other source that produces a logic high or low signal.

Schematic

A basic electrical circuit diagram with various components, including batteries, resistors, capacitors, and a voltage

This circuit is just that. There are only a few components needed to make it work.

The load

A precision mechanical device with multiple components for measuring small changes in position, pressure, or other A mechanical device with various components on a test stand and mechanism, surrounded by wires and a background paper. Electronics components and tools on a table for assembly or repair. An electrical testing device with alligator clips, a metal cylinder, and a light bulb-like component for A clear plastic container holds organized rows of small, metallic cylindrical tools or parts.

A black coiled wire with two ends, one attached to a plastic component, the other marked with green and white stripes. A small electronic component with green wires connected to it on a workbench.

First, we need a load. I will use a very small bicycle light bulb, 6V at 0.3A, so 2 WATT at most, perfectly suitable for a breadboard experiment.

If I were to use a big light bulb, it would be very bright, and I would not be able to take good pictures or video of it.

It needs 2 wires, the order does not matter. With a bit of flux and quick soldering, we can actually solder the wires to the metal without destroying the bulb itself.

Then with a bit of heat shrink tube I made it a bit more appealing. In hindsight, the wires are a bit to long, might shorten then for the other articles in this series.

Finally, a bit of solder on the ends so I can put them in a breadboard.

Breadboard

Two electronic boards with rows of metal pins, likely integrated circuits, on a breadboard with U-shaped strips for

I will use a short breadboard for this, on the right side of the image you can see the underside of the board. Those metal strips are U shaped, so from the top you can insert the components legs and if they are in the same strip, they will connect.

MOSFET

An electronic breadboard with jumper wire connected to GND pin, featuring a MOSFET and other components.

I inserted the MOSFET into the board, with the legs of it bent a bit outward, so we can better see what's connected to it.

Looking at the previous image, we can also see that each leg is in its own metal connection strip.

The MOSFET itself is the 6035AL logic level MOSFET. Even with 3.3V at it's gate it can already switch 30A.

From VCC to ground

A MOSFET is soldered to a breadboard, connected to a microcontroller and various electronic components. A breadboard setup with an IC socket and jumper wires, featuring a MOSFET component.

From left to right, the pins of the MOSFET are gate, drain and source.

I want to power the bulb from the 2 rails at the top of the board.

So, to follow the circuit, the positive rail goes into the bulb, and the other end into the drain of the MOSFET.

If the MOSFET is on, that drain pin connects to the source pin.

A breadboard with electronic components and jumper wires for prototyping or repairing a circuit.

With that black wire, the source pin goes back to the negative rail of the board. Making the circuit complete (if the MOSFET is on ofcourse).

Power supply

A workbench with various electronic components and tools, including resistors, connectors, and capacitors. An electronic breadboard setup with a microcontroller and external power supply connected via header pins. A breadboard with various electronic components and jumper wires, likely part of an ongoing project. A breadboard with a circuit and LED lit up, connected to external power via header pins. An electronic device with a digital display and controls requires external power through separate header pins.

I use separate header pins to connect the board to an external power supply.

It shows zero volts, those are the variable supplies. But I have it plugged into the constant 5V supply at the most right connectors, those are always on and 5V is enough to get the bulb glowing.

Gate resistor

A person is soldering a component onto an electronic circuit board with a blue soldering iron and a green resistor A cylindrical capacitor with a metal base and blue-red striped clip is shown, indicating polarity. An electronic breadboard with various components, including a resistor, LEDs, capacitor, IC chip, and power source, A breadboard circuit with a 220 Ohm resistor connecting logic signal provider to MOSFET gate.

We need a resistor to protect the logic signal provider AND the gate of the MOSFET. Nothing special or high frequency is going on, so I just use a generic 220 Ohm resistor. That will keep both safe.

PWM input

A black portable radio transceiver with LCD screen and control buttons displays text on its front panel. A breadboard with lit LED, microcontroller, and power sources for prototyping electronic circuits. An Arduino Uno microcontroller board with LEDs and components on a breadboard powered by a power supply. A digital signal processing device with knobs, buttons, and ports for input/output has a lit display screen and An Arduino board on a breadboard with various electronic components, including LEDs, resistors, and potentiometers. A laboratory setup with electronic equipment and components on a countertop, featuring an oscilloscope, multimeters,

Now with the signal generator connected to the gate of the MOSFET and the source (which is also ground), we can now play with the duty cycle of the PWM signal.

And we can now see that the bulb indeed changes brightness when changing the duty-cycle.







Page generation time: 0.0117 seconds