I'm suggested to use following design to drive a load with a micro-controller. I would like to know that why is it needed to use 2 transistors (n-ch and p-ch) to act as a switch and not only one?
I searched over Google and youtube, and most pages were using one transistor (mostly n-ch) to make a switch, like this page:
http://www.electronics-tutorials.ws/transistor/tran_7.html
Could you please explain me advantages or disadvantages of having such design (2 transistors) over one-transistor switches?
simulate this circuit – Schematic created using CircuitLab