Two classic bipolar transistor circuits
Two bipolar transistors solve two common problems: switching a large current with a very small drive current, by joining two transistors as a Darlington, and driving a fixed current through a load whatever its voltage, with a current source.
The emitter of the first transistor feeds the base of the second, so their gains multiply: with 100 and 30 you get a gain of about 3000 and a few milliamps from a microcontroller drive amps. The price is a doubled base-emitter voltage and, above all, a saturation drop of 0.9 to 1.5 V, because the second transistor cannot fully saturate.
Integrated Darlingtons (TIP120, TIP142, BD681) and the ULN2803, which has eight, are handy and cheap. For currents of several amps a logic-level MOSFET is usually better: it drops a few millivolts instead of a volt and needs no heatsink.
If the base is held at a reference voltage (a Zener, two diodes, an LED or a TL431), the emitter sits one VBE below and the emitter resistor sets the current. The load goes in the collector and gets that current whatever its voltage, as long as the transistor does not saturate. It is used to drive LEDs, ramp-charge capacitors or bias sensors.
Two identical transistors with their bases joined, one connected as a diode, copy into the second the current forced through the first. It is the basis of almost every analogue IC. With discrete transistors it works worse, because they are not at the same temperature; small emitter resistors improve it.
Related: transistor as a switch, ULN2803, LM317 as a current source and LEDs.