9

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?

closed as off-topic by Jesse Laning, Butzke, apnorton, sachleen, Anonymous Penguin Feb 17 '14 at 18:55

  • This question does not appear to be about Arduino, within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 9
    This question appears to be off-topic because it is about electrical engineering in general, not arduino specific. It belongs here electronics.stackexchange.com – Jesse Laning Feb 17 '14 at 15:36
  • 2
    @jamolnng I disagree. If a new user posts something like this, they generally don't know how to use any of these. EE generally requires a fair amount of knowledge about the subject before posting. This does bring up an issue though of "should we migrate and close it just because there is overlap?" – Anonymous Penguin Feb 17 '14 at 15:48
  • True. We really need a defined set rules on what is acceptable, which is what this beta should help us decide. Also you are right about EE because a post like this would most likely get buried there. I keep my opinion that it should be migrated and closed because it doesn't really deal with arduino specifically, but you have a valid argument for keeping it open. – Jesse Laning Feb 17 '14 at 16:01
  • @jamolnng I respect your argument too and I see both sides: I just posted this question to bring up this argument because it hasn't really been answered in meta and I thought it would be a good example to actually post a question so we can see how it plays out. – Anonymous Penguin Feb 17 '14 at 16:06
  • 1
    Simplest design requirement I can think of at the moment is: If you want to control mains power, you never use a transistor-only based solution. – jippie Feb 17 '14 at 18:31
8

Transistors are solid state switchers, that is, they don't have any moving parts. MOSFETS are like transistors, but are rated for higher voltages. Relays are more expensive, but they have moving parts.

Transistors and MOSFETS produce a lot of heat. They have 3 pins (usually) called the base, emitter, and collector. 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, which have a TRIAC (like a transistor) in them. These can't switch as much as a normal relay, but they generally have better ratings than MOSFETS and transistors. example

from Sparkfun

  • 3
    There's a few statements here that aren't really true. "MOSFETS are like transistors, but are rated for higher voltages" - There's not really much different in the voltages that either can withstand. This isn't really the primary difference. A BJT is current controlled device and a MOSFET is voltage controlled. – Cybergibbons Feb 18 '14 at 8:39
  • 2
    "Transistors and MOSFETS produce a lot of heat" - only if they are passing large currents. – Cybergibbons Feb 18 '14 at 8:40
  • "They have 3 pins (usually) called the base, emitter, and collector." - generally on a MOSFET they are gate, source, drain. – Cybergibbons Feb 18 '14 at 8:41
  • 1
    MOSFETs are transistors, one of the big family, metal-oxide-semiconductor field-effect transistor – Pablo Bianchi Jun 29 '18 at 21:33
3

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.

Not the answer you're looking for? Browse other questions tagged or ask your own question.