
An SRD-DC5V should do the trick, if you prefer that solution. If you want to just turn on/off the lamp, you can simplify things by using a relay (if you don't mind the clicking noise). Also consider using techniques for reducing waste heat, like PWM. That means, you should expect your transistor to get hot - you might need a heatsink for it, if the current you're switching is high. The more the transistor limits current, the more power is dissipated across the transistor as a side-effect. Here's an example.īear in mind - transistors essentially act like resistors that vary resistance when the voltage on the base changes. I use 1 ohm to 10k ohm variable resistors in my projects (since sometimes very large resistances are useful, and it's easier to lower the resistance range of a variable resistor than it is to raise it). I recommend getting some large-range variable resistors (AKA potentiometers), so that you can vary the resistance of the pull up/down resistor. Many people will suggest you use a MOSFET - to be clear, a MOSFET is just a special kind of transistor, usually used for high power applications!Īlso, you will probably need a pull up/down resistor to keep the voltage from floating on the base of the transistor. If you want to dim them, a 12v transistor with 5v base switching voltage is perfect for your application. I'm not sure if you want to dim them, or just switch them on/off. The datasheet is generic and applies to all ICs beginning with L78.
#Tip120 transistor arduino series
Here's a link to the datasheet on L78xx series regulators, just in case you're not sure you're looking at the right thing. Learning to read that information will prevent serious mistakes! Anyway, good luck.

You should always check the datasheet to make sure you know what device you're dealing with! Just DuckDuckGo/Google search for "l7805cv datasheet" for instance - or whatever the part number is.

These cases can be used for any integrated circuit that uses 3 pins - so linear voltage regulators often use them. There are generic types of semiconductor package, such as the TO-92 and TO-220. Not everything with 3 pins is a transistor. There's also, e.g., a L7809CV and a L7812CV.
