I'm working on a project where I need a transistor. I want a Attiny85 mcu to turn of and on a relay. But the current in that chip is to low so I figured out I have to use a 2N2222 NPN transistor as a switch so the relay could draw current from the source and not thru the mcu.
I'm using the tool over at http://www.falstad.com/circuit to help me set up the circuit, but I'm having some problems.
To understand NPN transistors I've tried to take the example at falstad and update it to my settings, using 5V for power, adding a switch. But it does not work. I really want to test it before I get to solder it together so the tool was really nice.