user220: I am used to relays some, and they are useful, especially for large loads like a incandescent light bulb or other 120V AC device. However, it seems like overkill to use a relay for a bunch of LEDs linked together (parallel) that use 60 mA (too much for the Arduino). Also, it wouldn't work if you wanted to turn it on/off frequently or do PWM. I've heard some about transistors and MOSFETS and know a little about them. When should I use each one and how do I know what type to get? Also, it seems like relays can be more expensive than transistors/MOSFETS.
Edit: How can I use these with my Arduino?

user84: Big differences between relays and transistors are:

relays are all-or-nothing (like switches) whereas transistors can transmit more or less current through the collector based on the current present on their base.
relays provide isolation between the command circuit (the one with the electromagnet) and the controlled circuit (the one on the switch side of the relay)

If you want to play with arduino, you definitely need to know about transistors; using relays is more akin to special applications.

user8: Transistors (such as Bipolar Junction Transistors (BJT)) are solid state switchers, that is, they don't have any moving parts. Metal-Oxide-Semiconductor Field-Effect Transistors (MOSFET) are also transistors, but are voltage controlled, whereas classical BJTs are current-controlled. Relays are more expensive, but they have moving parts.
BJTs and MOSFETs produce a lot of heat (with high currents). They both have three pins (usually) called the base, collector and emitter (in the case of BJT) or gate, source, drain (in the case of MOSFET). More info here
Relays use a magnet to control the position of a metal switch. They generally take more power than an Arduino pin can deliver, and therefore they are often controlled by a transistor. Relays can usually switch more current than either a transistor or a MOSFET.
There are also Solid State Relays (SSR), which have a triac (a device similar to a transistor) in them. These can't switch as much as a normal relay, but they generally have better ratings than MOSFETs and BJT. example


220: <p>I am used to relays some, and they are useful, especially for large loads like a incandescent light bulb or other 120V AC device. However, it seems like overkill to use a relay for a bunch of LEDs linked together (parallel) that use 60 mA (too much for the Arduino). Also, it wouldn't work if you wanted to turn it on/off frequently or do PWM. <strong>I've heard some about transistors and MOSFETS and know a little about them. When should I use each one and how do I know what type to get?</strong> Also, it seems like relays can be more expensive than transistors/MOSFETS.</p>

<p><strong>Edit:</strong> How can I use these with my Arduino?</p>
 84: <p>Big differences between relays and transistors are:</p>

<ul>
<li>relays are all-or-nothing (like switches) whereas transistors can transmit more or less current through the <strong>collector</strong> based on the current present on their <strong>base</strong>.</li>
<li>relays provide isolation between the command circuit (the one with the electromagnet) and the controlled circuit (the one on the switch side of the relay)</li>
</ul>

<p>If you want to play with arduino, you definitely need to know about transistors; using relays is more akin to special applications.</p>
 8: <p>Transistors (such as Bipolar Junction Transistors (BJT)) are solid state switchers, that is, they don't have any moving parts. <a href="https://en.wikipedia.org/wiki/MOSFET" rel="nofollow noreferrer">Metal-Oxide-Semiconductor Field-Effect Transistors</a> (MOSFET) are also transistors, but are voltage controlled, whereas classical BJTs are current-controlled. Relays are more expensive, but they have moving parts.</p>
<p>BJTs and MOSFETs produce a lot of heat (with high currents). They both have three pins (usually) called the base, collector and emitter (in the case of BJT) or gate, source, drain (in the case of MOSFET). <a href="http://www.technologystudent.com/elec1/transis1.htm" rel="nofollow noreferrer">More info here</a></p>
<p>Relays use a magnet to control the position of a metal switch. They generally take more power than an Arduino pin can deliver, and therefore they are often controlled by a transistor. Relays can usually switch more current than either a transistor or a MOSFET.</p>
<p>There are also Solid State Relays (SSR), which have a triac (a device similar to a transistor) in them. These can't switch as much as a normal relay, but they generally have better ratings than MOSFETs and BJT. <a href="https://www.sparkfun.com/products/10636" rel="nofollow noreferrer">example</a></p>
<p><img src="https://i.stack.imgur.com/71AlP.png" alt="from Sparkfun" /></p>
