Navigation

Introduction
Small Relay
Thermistors
Bigger Relay

/ /Introduction



Relays require no human interaction in order for the switching to occur, they are electrically controlled mechanical switches. Inside the plastic box is an electro-magnet (coil), a switch, and a spring. The spring holds the switch in one position, until a current is passed through the coil. When the coil is energized with an electric pulse, a magnetic field is generated which moves the switch. The second part of a relay is a system of metallic arms which make up the physical contacts of the switch. When the relay is off, or no electric pulse is given to the relay, the arms of the switch are in one position. When the relay is on, or an electric pulse is sent to the relay, the swing or switching arm of the switch moves to another contact of the switch. The arm moves as the generated magnetic field pulls the swinging arm toward the inductor (or wire coil).

pic.png

When the relay is in the "off" position, the swing arm is in contact with the normally closed contact. When the relay is activated, the magnetic field created by the inductor coil pulls the swing arm until it makes contact with the normally open contact connecting the circuit connected to the normally open contact to the circuit connected to the main contact.



What's Inside

Inside the relay are two paddles made of metal. One paddle is made of a ferrous material like steel and is free to move. The other paddle is made of copper and stationary. When these paddles touch (the closed switch state), they are capable of allowing a large amount of power to flow - like 30A@120VAC.

The other half the relay is called the coil. This is basically a small electro-magnet. If you send current through the coil, a magnetic force is created, which pulls on the steel paddle causing it to move (flip) and touch the copper paddle - as if you flipped a light switch. The coil requires a small amount of power (5VDC @ 80mA). Controlling the low-power coil allows you to actually control quite a lot of power.

It is important to note the coil is physically isolated from the paddles. If you have 120VAC running through the paddles, you don't have to worry about that 120VAC sneaking back into and vaporizing your microcontroller (connected to the coil).

The paddles are capable of carrying very large currents. Both AC or DC - the paddles don't care. A relay can be used to control a DC motor, or an AC lamp.



Wondering about Relays and Switches

You might be wondering: If a relay is a type of switch, and so is a transistor, then why do we need them if we can just switch the microcontroller pin on and off? The answer is voltage and current ratings. A microcontroller pin can only control around 5 volts DC and 50 milliamps (0.25 watts). Common transistors like the ones we're going to be using can control around 30 volts DC and around 600 milliamps (18 watts). The relay we're going to be using can control up to 220 volts AC or DC and 30 amps of current (6600 watts). *So, in your circuit, the small amount of power from the microcontroller switches on the transistor, which provides a little more power to the relay, which in turn provides a lot of power to the high-power device it's connected to, e.g., a light bulb, fan, or toaster.

* Remember, though, that for safety's sake, you shouldn't use the relay anywhere near it's rated capacity. If you need more than half the rated capacity, think about a bigger relay.