Tutorial: How to design a transistor circuit that controls low-power devices