2N2222A RELAY DRIVER

Driving 5V relay by a transistor hey am having a problem driving a 5V relay by 2N NPN transistor by the following circuit: Except the microprocessor cannot source 16 mA. Driving 5V relay by a transistor If you mean that shorting the collector and emitter together operates the relay but putting a logic ‘1’ on…