PanelSimulator Academy

Electricity and Low Voltage, lesson 4 of 12

AC and DC

Lesson 3 gave you the sums. Before you use them on a real supply, you need to know which kind of electricity it gives. Electricity arrives at the wall outlet in one form and almost every security device runs on another. This lesson explains the two forms, shows how a power supply turns one into the other, and teaches you to read the label that tells you which one a device needs.

About 14 minutes. Read lesson 3 first.

From the outlet to steady power

Pick a situation, then play or step through. The screen shows the shape of the voltage after the highlighted stage. Heights are not to scale.

inside the alarm panel Wall outlet120 V ACTransformerlowers voltageRectifierone way onlyCapacitorfills the gapsRegulatorholds it steady 0 time

The everyday picture

Picture two ways of moving a saw through wood. A band saw's blade runs in one direction all the time. A hand saw goes back and forth. Both cut. Both deliver power to the wood. But a tool built for one motion cannot use the other.

Electric current comes in the same two forms. In one, the current flows steadily in one direction, like the band saw. In the other, it runs forward, stops, runs backward and stops, many times a second, like the hand saw. A battery gives the first kind. A wall outlet gives the second.

Two kinds of current

Steady, one-way current is direct current, or DC. Current that keeps reversing is alternating current, or AC. One complete forward-and-back swing is a cycle, and the number of cycles each second is the frequency, measured in hertz, written Hz. Power in the United States is 60 Hz.

Direct current (DC)Alternating current (AC)
DirectionOne way, all the timeReverses 120 times a second at 60 Hz
Comes fromBatteries, power supplies, solar panelsThe utility, generators, transformers
PolarityOne wire is positive and one negative, and it mattersNeither wire is positive or negative
Changing the voltageNeeds electronicsSimple, with a transformer
Stored in a batteryYesNo
On a labelVDC, or a solid line over a dashed lineVAC, or a wavy line (~)

Why the outlet is AC

Lesson 3 showed that for the same power, a higher voltage needs less current and wastes less in the wire. Power companies use that on a grand scale. They send power across the country at very high voltage and bring it down in steps near your building. AC makes this easy, because a simple device with no moving parts can raise or lower an AC voltage. That device is the transformer, below.

What "120 volts AC" means

An AC voltage is never still, so which value goes on the label? The answer is an agreed kind of average, called RMS, chosen so that 120 volts AC heats a resistance exactly as much as 120 volts DC would. The peaks of the wave are about 1.4 times higher. A 120-volt outlet swings to about 170 volts each way. Your meter, set to AC volts, shows the RMS value.

Turning one into the other

Electronics need DC. So between the outlet and every reader, controller and camera there is a power supply that does four jobs, shown in the scene at the top.

  1. The transformer is two coils of wire around an iron core. AC in the first coil creates a changing magnetic field, which creates AC in the second. The ratio of turns sets the output voltage. It works only on AC: steady DC makes a steady field, and a steady field produces nothing in the second coil.
  2. The rectifier is a set of one-way valves called diodes. It turns the backward half of each swing around, so the current always leaves in the same direction. The result is DC, but it rises and falls in bumps.
  3. The capacitor is a small reservoir. It fills at the top of each bump and gives charge back in the gaps. What is left is a small wobble called ripple.
  4. The regulator trims the result to an exact, steady voltage and holds it there as the load changes.

Most supplies made today are switching supplies. They do the same jobs in a different order: rectify the mains first, chop the result into very fast pulses, pass those through a small, light transformer and regulate by adjusting the pulses. They are smaller, waste less power as heat, and many accept anything from 100 to 240 volts. The idea you need is the same. AC goes in, and steady DC at a stated voltage comes out.

A supply without a regulator is called unregulated. Its output voltage is highest with nothing connected and sags as the load rises. For electronics, choose a regulated supply unless the data sheet says otherwise.

Check yourself

Which part of a power supply would do nothing at all if you fed it from a battery?

Reading the label

Plug-in units all look alike. Some are complete power supplies and give DC. Some are only a transformer in a plastic case and give low-voltage AC, leaving the rest of the work to the equipment they feed. The label is the only way to tell.

A transformer is rated in volt-amperes, written VA, which is its output voltage times the most current it can deliver. To find the amps, divide the VA by the volts. A 40 VA transformer at 16.5 volts can deliver 40 ÷ 16.5, which is about 2.4 amps.

SupplyTypical useNotes
16.5 volts AC plug-in transformerMany intrusion alarm panelsThe panel rectifies and regulates on its own board and charges its battery.
24 volts AC transformerSome cameras, heaters in outdoor housings, older door and gate equipmentRated in VA. Check each device accepts AC.
12 volts DC supplyReaders, sensors, small cameras, locksThe most common voltage in the trade.
24 volts DC supplyLocks, controllers, long cable runsHalf the current of 12 volts for the same power.
Power over EthernetNetwork cameras, readers and controllersAbout 48 volts DC on the network cable. The device converts it inside.

Read four labels

Pick a label and see what it tells you before you connect anything.

What does this label say?

Check first

Polarity

Because DC flows one way, it matters which wire goes to which terminal. This is polarity. The usual convention is red for positive and black for negative, but trust the markings on the terminals and your meter over the color of a wire somebody else installed.

Connect DC backwards and one of three things happens. A well-designed device has a protection diode and simply stays dark until you swap the wires. A simple coil, such as a plain magnetic lock, may not care. An unprotected circuit can be destroyed in an instant. You cannot tell which you have by looking, so get it right the first time.

Low-voltage AC has no positive or negative, and its terminals are often marked only "AC". There is one catch. When several AC devices share one transformer and are also joined by a signal cable, keep the same transformer wire on the same terminal of each device. Crossing them can put the transformer's output across the signal wiring. The installation manual will say when this applies.

Three examples

Simple: two plugs from the same drawer

A small camera needs 12 volts DC at 500 mA. The drawer holds two black plug-in units. One says "Output 12 VDC 1 A". The other says "Output 12 VAC 1000 mA". Both would fit the camera's socket. Only the first is right. The second would feed alternating current into a circuit built for DC, and the camera might not survive it.

Medium: the alarm panel that ran flat

An alarm panel's plug-in transformer fails. Someone replaces it with a 12-volt DC adapter that happens to be on the shelf. The keypad lights, so the job looks done. The next day the panel reports a power trouble, and by the weekend the battery is flat and the system is dead.

The panel was built to receive 16.5 volts AC and to make its own DC from it, at a voltage high enough to charge a 12-volt battery. Twelve volts DC at its input is too little to do that, so the panel was running from its battery the whole time. The fix is the transformer named in the panel's manual, with the same voltage and at least the same VA.

Advanced: the strike that cooked

An older door has an electric strike fed from a 24-volt AC transformer. It makes the familiar buzz when released. During an upgrade the door is moved onto a new access control supply that gives 24 volts DC. The strike works, and silently. Weeks later it is too hot to touch, and then it fails.

A coil resists changes in current. On AC the current is always changing, so the coil itself holds the current down. On DC that effect vanishes and only the resistance of the wire limits the current, which can be several times higher. A coil designed for AC therefore overheats on DC at the same voltage. The fix is a strike rated for DC, or one whose data sheet lists both, used at the voltage and duty the sheet allows.

From the field

  • Read the output line of every plug-in unit, every time. AC and DC units share the same cases and the same plugs.
  • Set the meter to match. A meter on DC volts reads close to zero on an AC source, because the swings cancel out. That reading has fooled many people into thinking a good transformer is dead.
  • Label the plug-in transformer with the panel it feeds, and secure it to the outlet where the outlet allows. Unplugged transformers cause a large share of "low battery" calls.
  • Replace like with like. Same kind of current, same voltage, and at least the same VA or amps.
  • Check polarity with the meter before landing the wires. A minus sign on the display means your probes, or the wires, are reversed.

Common mistakes

  • Feeding a DC device from an AC transformer because the voltage number matched.
  • Treating VA as amps. A 40 VA transformer does not deliver 40 amps.
  • Trusting wire color for polarity on cable that someone else installed.
  • Using an unregulated supply for electronics and finding 16 volts on a "12-volt" output at light load.
  • Running an AC-rated coil on DC, or a DC-rated one on AC, without checking the data sheet.

Summary

  • DC flows one way. AC reverses, 60 cycles a second in the United States.
  • The outlet is 120 volts AC. Security electronics run on low-voltage DC.
  • A power supply lowers the voltage, rectifies it, smooths it and regulates it.
  • A transformer works only on AC and is rated in VA. Amps are VA divided by volts.
  • DC has polarity. Check it with a meter before you connect.

Exercises

Answer each one yourself first, then open the answer.

Exercise 1. One label shows "24 V" followed by a wavy line. Another shows "24 V" followed by a solid line above a dashed line. Which is which?

Show answer
The wavy line means AC. The solid line over a dashed line means DC.

Exercise 2. A transformer is rated 24 volts AC, 50 VA. Can it run two devices that each draw 0.9 amps at 24 volts AC?

Show answer
Yes, with a small margin. 50 ÷ 24 is about 2.1 amps. The two devices need 1.8 amps between them.

Exercise 3. You measure the output of a plug-in alarm transformer and the meter shows 0.2 volts. The panel is working normally. What is the likely explanation?

Show answer
The meter is set to DC volts. The transformer's output is AC, which swings equally each way, so a DC reading is close to zero. Set the meter to AC volts and it should show a little over 16.5 volts.

Exercise 4 (think, don't memorize). A camera's label says it accepts either 12 volts DC or 24 volts AC. It uses 6 watts and is at the end of a long cable. Which supply would you choose, and why?

Show answer
24 volts AC. For the same 6 watts the camera draws about 0.25 amps at 24 volts instead of 0.5 amps at 12. Half the current means half the volts lost in the same cable, and those volts are a smaller share of 24 than of 12. The camera's own internal supply turns the AC into the DC its electronics need. Check that the transformer's VA covers the load.