Electricity and Low Voltage, lesson 7 of 12
Resistors, diodes and suppression
Some of the most important parts on a job cost a few cents and are smaller than a grain of rice. A resistor lets a panel notice a cut cable. A diode saves a relay from the lock it switches. This lesson shows what each small part does, where it goes and which way round.
Switch off a coil and watch the contact
Pick a situation, then play or step through.
The everyday picture
Picture a long hose with water rushing through it. Slam the tap shut and the pipes bang. The moving water had momentum, and it had to go somewhere. Plumbers call it water hammer, and they fit a small chamber near the tap to soak it up.
A coil of wire does the same thing with current. A lock, a relay and a door holder are all coils. Switch one off and the current tries to keep going for an instant. With nowhere to go, it forces its way across the switch that just opened, as a spark. A diode across the coil is the plumber's chamber. It gives the current a loop to die away in.
Two more pictures finish the set. A resistor is a narrow section of pipe: it holds the flow down to a chosen amount. A diode is also a one-way valve: flow passes in one direction and is blocked in the other.
Four small parts
- Resistor Limits current to a set amount. Measured in ohms. No polarity, so it fits either way round.
- Diode Lets current through one way only. The painted stripe marks the end called the cathode. Direction matters.
- Varistor Usually called an MOV. Does nothing at normal voltage and conducts hard above its rating. No polarity, so it suits AC as well as DC.
- Fuse A deliberately weak link. It opens the circuit when the current is too high, before the cable or the board overheats.
Resistors in practice
You met resistance in lesson 1 and Ohm's law in lesson 3. A resistor is simply a part made to have a known resistance. It has two ratings. The first is its value in ohms. The second is how much heat it can shed, in watts. The small ones in a parts bag are usually a quarter of a watt.
Here is the classic sum. You want a small indicator light, an LED, on a 12 volt supply. The LED needs about 2 volts and should carry 0.02 amps. The resistor must take up the other 10 volts.
- Resistance = volts ÷ amps = 10 ÷ 0.02 = 500 ohms. The next common value up is 510 or 560 ohms.
- Heat = volts × amps = 10 × 0.02 = 0.2 watts. That is close to the limit of a quarter-watt part, so choose a half-watt one.
Resistors are too small to print numbers on, so the value is painted as colored bands. Each color is a digit. On a four-band resistor, read two digits, then the number of zeros to add. The last band, often gold, shows how exact the value is.
| Value | First three bands | How to read it |
|---|---|---|
| 1,000 ohms (1 k) | Brown, black, red | 1, 0, then two zeros |
| 2,200 ohms (2.2 k) | Red, red, red | 2, 2, then two zeros |
| 4,700 ohms (4.7 k) | Yellow, violet, red | 4, 7, then two zeros |
| 5,600 ohms (5.6 k) | Green, blue, red | 5, 6, then two zeros |
| 10,000 ohms (10 k) | Brown, black, orange | 1, 0, then three zeros |
The letter k means a thousand. Bands fade and brown looks like red in poor light, so measure a resistor with a meter before you trust it. Lesson 9 shows how.
Resistors that watch a cable
A door contact is a switch at the end of a long cable. With plain wiring, the panel only knows two things: the loop is complete, or it is not. That leaves a gap. If the two wires touch each other anywhere along the run, the loop looks complete forever, whatever the door does. The fault can be an accident, such as a staple through the cable, and nobody finds out.
The cure is an end-of-line resistor, shortened to EOL. Fit a resistor at the far end, beside the contact, and the panel now expects to measure that exact resistance. A reading of nearly zero means the wires are shorted. A reading of no connection at all means the cable is cut or the door is open. A circuit watched in this way is called supervised.
Use two resistors, one in line and one across the switch, and the panel can tell all four conditions apart. Try it.
What does the panel see?
Choose how the door contact is wired, then choose what happens. This example uses 1,000 ohm resistors.
| Condition | No resistor | One resistor | Two resistors |
|---|---|---|---|
| Door closed | 0 ohms | 1,000 ohms | 1,000 ohms |
| Door open | Open loop | Open loop | 2,000 ohms |
| Cable cut | Open loop, same as door open | Open loop, same as door open | Open loop, reported as trouble |
| Wires shorted | 0 ohms, looks normal | 0 ohms, reported as trouble | 0 ohms, reported as trouble |
Two rules matter more than the sums. First, the value is set by the panel, not by you. One maker wants 1 k, another 2.2 k, another 5.6 k, and some panels can be programmed. Read the installation manual. Second, the resistor belongs at the device, at the far end of the cable. A resistor fitted at the panel terminals watches two inches of wire and nothing else.
Check yourself
A zone has one end-of-line resistor at the door contact. A screw is driven through the cable and joins its two wires together. What does the panel measure?
Diodes and the coil's kick
A silicon diode conducts when its plain end, the anode, is more positive than its striped end, the cathode. In that direction it costs you about 0.7 volts. In the other direction it blocks. Diodes are rated by the current they can carry and the reverse voltage they can block. A general-purpose 1 amp rectifier diode covers most lock work.
Diodes have three everyday jobs in our trade.
- Suppression. A diode across a DC coil, stripe toward positive, sits idle while the coil is powered. At switch-off it gives the coil's current a loop to circle in until it fades. The spike at the relay contact drops from hundreds of volts to about one volt above the supply. The diagram at the top shows this.
- Reverse protection. A diode in line with a device's positive wire blocks current if someone swaps the supply wires. Many boards have this built in.
- Steering. Two sources can feed one device through a diode each, without feeding each other. Battery backup circuits use this idea.
Suppression has details worth knowing. The diode goes at the coil, not at the controller, so the spike never travels down the cable. A diode makes the coil let go a little more slowly, because the current takes a moment to fade. On a magnetic lock that can add a noticeable fraction of a second to the release. For that reason, and for AC locks where a diode would be a short circuit on every half cycle, makers often supply an MOV instead. Many locks have suppression built in. Use what the lock's instructions call for, and do not add a second kind.
Three examples
Simple: a light on a cabinet door
A customer wants a small LED on the equipment cabinet to show that 12 volt power is present. The technician wires the LED straight across the supply. It flashes once and dies. An LED has almost no resistance of its own once it conducts, so the current was limited by nothing. The fix is the sum above: a 560 ohm, half-watt resistor in line with the LED.
Medium: the relay that welded shut
A side door with a 12 volt DC electric strike starts staying unlocked after each entry. Tapping the controller relocks it. The relay contact has been pitted by a spark on every release for a year, and now it sticks. No diode was ever fitted. The technician replaces the relay board and fits a diode across the strike's two wires inside the door frame, stripe to the positive wire. The new relay will outlast the door.
Advanced: the door that could not alarm
After a break-in through a stockroom door, the alarm history shows nothing. The door contact tests fine with a meter. The cable is the problem. During ceiling work months earlier, the cable was pinched in a metal track and its two wires joined. The zone had no resistor, so the panel saw a complete loop, day and night, door open or shut.
The repair is a new cable. The lasting fix is to rewire every zone with two resistors at each contact, in the value the panel maker states, and to program the zones as supervised. Then each door is walk-tested in all four conditions. A short now reports trouble within seconds.
From the field
- Check the stripe twice. Stripe to positive across a coil. A backwards diode is a dead short the moment the relay closes.
- Solder or crimp resistors at the contact and sleeve them. Bare resistor legs twisted into a splice work loose and cause the alarm at 3 a.m. that nobody can explain.
- Keep the resistors that came with the panel. They are the right value for that panel. Tape the spares inside the cabinet door.
- Carry a few diodes and MOVs in your pouch. They cost almost nothing and you will find a lock without one on most service calls.
- Replace a blown fuse with the same rating. If the new one blows as well, the fuse is telling you about a fault. Find it.
Common mistakes
- Fitting end-of-line resistors at the panel because it is quicker than going to each door.
- Using whatever resistor value is in the van instead of the value the panel expects.
- Putting a diode across an AC lock, or fitting it backwards on a DC one.
- Fitting the suppressor in the controller cabinet, leaving the spike free to run the length of the cable.
- Fitting a larger fuse because the correct one keeps blowing.
Summary
- A resistor limits current. Its value is read from colored bands and confirmed with a meter.
- An end-of-line resistor at the device lets a panel detect a shorted cable. Two resistors separate open door, cut cable and short.
- A diode passes current one way. The stripe marks the cathode.
- Every coil kicks when switched off. A diode on DC, or an MOV on AC or DC, absorbs the kick at the coil.
- The panel and the lock maker decide the values and the parts. Read their instructions.
Exercises
Answer each one yourself first, then open the answer.
Exercise 1. A resistor has bands of yellow, violet, red and gold. What is its value?
Show answer
Exercise 2. An LED that needs 2 volts and 0.01 amps is to run from a 24 volt supply. What resistor does it need, and how much heat must the resistor shed?
Show answer
Exercise 3. A zone wired with two 1,000 ohm resistors reads 2,000 ohms at the panel. What state is the door in, and is the cable healthy?
Show answer
Exercise 4 (think, don't memorize). You take over a site and find every end-of-line resistor neatly fitted across the zone terminals inside the alarm panel. The panel shows all zones normal and reports trouble if you pull a resistor out. Is the site supervised?