We're designed a circuit based on an atmega2560 and wanted to turn on or off some parts of our pcb.
So we've installed an logic level mosfet (IRLL024N) that was supposed to act as a switch on our 5V line.
The mosfet is controlled by a digital pin of the atmega set to high or low to turn on or off the rest of the circuit.
The problem is that we are experiencing a huge voltage drop on the mosfet when it's turned on.
The source voltage is 4.93V the gate is 4.89V but the drain voltage is only 3.02V
Why is this happening?