I have an audio amplifier that draws about 200-300mA max that I would like to switch on/off using either an I/O line or a the switch pin from the headphone connector. I was thinking about using an npn transistor or an N-type FET but I've never really done anything like that before so I was hoping for some tips.
The I/O is from an ATTINY85 and the amplifier I'm switching is an LM386
Best Answer
My preference is to switch the high side.
simulate this circuit – Schematic created using CircuitLab
Look for a P channel MOSFET with a low \$V_{th}\$. The NPN transistor could be substituted with a logic level N channel FET if desired.