The diagram illustrates the basic design of an NPN junction transistor ... These circuits will allow you to observe the operation of a transistor as an amplifier, just as Walter Brattain did ...
If you want to control it from a 3.3 V MCU that can’t handle the high-side voltage on its pins, you can add a NPN transistor section as shown – this inverts the logic, making it into a more ...