How Direct Current (DC) Works: Mastering Fundamental Electronics Part 07

A vintage oscilloscope with a flat trace and a battery driving glowing charges around a loop, beside the title How Electronics Work, Part 7, How Direct Current (DC) Works

How Direct Current (DC) Works: Mastering Fundamental Electronics Part 07

Connect a battery to a flashlight and conventional current leaves the positive terminal, passes through the lamp, and returns to the negative terminal. As the battery discharges, its voltage slowly falls and the light dims a little. Switch the lamp on and off and the current jumps between zero and a positive value. Through all of this the current never reverses, so none of these changes make it alternating.

That one-way behavior is what defines direct current, or DC. In a two-terminal DC circuit the polarity does not reverse during normal operation, and the current has one net direction. The level itself does not have to stay constant. DC can be nearly steady, pulsed, noisy, or rippled, and the clean horizontal line in a textbook diagram is only the simplest case.

Most of the electronics a maker builds with runs on DC. A microcontroller board, a sensor, an LED, and the battery in a phone all need a supply that keeps one polarity, even when the power originally comes from an AC wall outlet. A converter inside the adapter or the device changes the AC into DC before the circuit uses it. Knowing what DC really looks like, and how far real sources depart from the ideal, explains behavior that otherwise seems strange, such as a battery voltage that drops when a motor starts or a supply labeled 5V that measures slightly above or below 5V.

This article builds on How Alternating Current (AC) Works. It follows a complete DC path from source to load and back, compares several kinds of DC waveform, and looks at common sources, including how batteries combine. It also covers conversion from AC, the voltage levels common in electronics, reverse-polarity protection, and why real batteries sag under load. The calculations use Ohm's law, which says that current equals voltage divided by resistance, and they stay at low voltage.

Direction, Polarity, and a Complete Path

Every working DC circuit needs a source, a load, and a return path. The source maintains a voltage difference and supplies energy. The load converts that energy into light, heat, motion, sound, or computation. The return path closes the loop.

Conventional current is defined as moving from positive to negative through the external circuit. Electrons in a metal drift the other way, but either description gives the same circuit calculations when used consistently.

A battery, resistor and wires forming a loop, with conventional current arrows leaving the positive terminal and returning to the negative terminal

Polarity labels identify which point is at a higher electric potential. They are not arrows showing that only one wire matters. Current needs the outgoing and return conductors. Break either side of the loop and current stops.

For an ideal voltage source feeding a resistor, Ohm’s law gives I = V/R. A 5V source across 1kΩ produces 5mA. That familiar calculation assumes the source can hold 5V and the resistance stays close to 1kΩ. Real sources and loads add limits, which we’ll reach shortly.

Several Kinds of DC

The graphs below plot voltage on the vertical axis against time on the horizontal axis, and each one stays on the same side of zero except the AC wave included for contrast.

Five small graphs: steady, varying, pulsating and rippled DC, plus an AC wave for contrast

  • Steady DC remains at nearly the same level and polarity.
  • Varying DC changes magnitude without reversing polarity.
  • Pulsating DC repeatedly rises and falls on one side of zero.
  • Rippled DC has a repeating variation riding on a nonzero average level.
  • A transient is a temporary change during startup, switching, or a sudden load change.

A pulse-width-modulated (PWM) output, a rapid on-off switching trick used to control power, is a useful example. It switches between zero and a positive voltage, so its total waveform remains unidirectional even though it changes quickly. Engineers may separate that waveform into an average DC component and changing components.

A rippled waveform split into a steady DC level plus a small AC ripple

This distinction prevents a common mistake: “changing” and “alternating” are not synonyms. A waveform alternates when its polarity reverses. A changing voltage that stays positive can still be DC.

DC Compared with AC

The two kinds of current differ in more than direction. The table lists the differences that matter most in practice.

Feature DC AC
Direction One net direction Reverses repeatedly
Typical sources Batteries, solar cells, regulated supplies Generators, wall outlets, transformers
Typical uses Microcontrollers, logic, LEDs, motors in portable devices Power distribution, audio and radio signals
Changing the voltage Needs a converter circuit A transformer can raise or lower it
Meter setting DC voltage AC voltage, ideally true-RMS
Quoted value The level itself Usually an RMS value

Nearly all electronic circuits run on DC, even when the power comes from an AC outlet, because transistors and integrated circuits need steady voltage levels to hold their logic states. Long-distance power lines have historically been AC because transformers made voltage conversion simple, although some very long or undersea links now use high-voltage DC with electronic converters at each end.

Common DC Sources

A battery is the source most beginners recognize. Chemical reactions separate charge and maintain an electromotive force, or emf. A cell is one electrochemical unit, while everyday product language may call one or more cells a battery. Voltage depends on chemistry, state of charge, temperature, age, and load.

A solar cell produces DC when illuminated, but it is not an ideal fixed-voltage source. Its voltage and available current depend on light, temperature, and operating point.

A bench supply or wall adapter often begins with AC and produces controlled DC. It has a voltage setting or rating, a maximum current, a maximum power, thermal limits, and protection behavior. A “5V, 2A” supply can provide up to its rated current under specified conditions. It does not force 2A through every circuit.

Generators can produce DC through mechanical commutation (a rotating switch that flips the connections every half-turn so the output keeps one polarity), and electronic converters can change one DC voltage into another. Both methods are outside this article. The term “DC source” describes the behavior at the output terminals, whatever happens inside.

Batteries in series and parallel

Cells can be combined to change the voltage or the capacity. In a series connection, the positive terminal of one cell connects to the negative terminal of the next, and the voltages add. In a parallel connection, all the positive terminals connect together and all the negative terminals connect together, and the voltage stays the same while the capacity adds.

Four alkaline AA cells at 1.5V each give 4 × 1.5V = 6V in series. If each cell is rated 2,000mAh, the series pack is still rated 2,000mAh, because the same current flows through every cell. Two of those cells in parallel give 1.5V at 4,000mAh, because each cell supplies half of the current. Capacity here is the charge a cell can deliver, in milliamp-hours (mAh), and it is not an energy value. How to convert it to energy is covered in the article on electrical energy.

Four 1.5V cells in series giving 6V at 2,000mAh, and two 1.5V cells in parallel giving 1.5V at 4,000mAh

Combine only matching cells. Mixing old and new cells, or different chemistries, in a series string can leave the weakest cell fully discharged while the others still have charge, and it can be driven backwards. In a parallel connection, cells at different voltages push current into one another when they are joined, and that current can be large. Rechargeable lithium cells in particular need a protection circuit and a charger designed for them.

From AC to DC

An AC-to-DC supply generally performs three conceptual jobs.

First, a rectifier steers current so the output keeps one polarity. The first result may be pulsating DC. Second, a filter capacitor charges near waveform peaks and releases energy into the load between them, which reduces the variation. Third, a regulator controls the output more tightly when input voltage or load current changes.

Block diagram of AC input, rectifier, filter capacitor, regulator and load, with the waveform leaving each block

A finished wall adapter or power module contains all three stages, which is why plugging one in looks like a single step. Designing a bridge rectifier or a regulator is outside this article. The block sequence still explains an important point: “converted to DC” does not automatically mean perfectly flat, because the output depends on how well the filter and regulator do their jobs.

Common Voltage Levels in Electronics

A few DC voltages appear again and again in electronics projects, and knowing why helps when a part says it needs one of them.

  • 5V is the traditional logic level, and it is also the nominal voltage of a USB port. USB 2.0 allows the supply to sit between about 4.75V and 5.25V.
  • 3.3V is the logic level of most modern microcontrollers and sensors. Lower voltages use less power, and smaller transistors cannot tolerate 5V.
  • 1.8V and lower levels power the internal cores of processors and some memory.
  • 12V is common for fans, LED strips, motors, and car electrical systems. A vehicle's 12V system actually runs near 12.6V with the engine off and about 13.8 to 14.4V while the alternator is charging.
  • 9V appears mostly in rectangular batteries and some guitar pedals.

Matching voltage levels matters because a part has an absolute maximum rating. Connecting a 5V output to an input that tolerates only 3.3V can damage that input, and powering a 3.3V part directly from 5V can destroy it. Check the datasheet for both the supply range and the input tolerance. A level shifter is a small circuit that translates a signal between two voltage levels, and it is the usual fix when two parts use different logic levels.

To recap the ideal picture: DC keeps one net direction, current needs a complete loop, and real DC can contain pulses, ripple, and short transients. The next section adds the largest departure from the ideal, which is that a real source loses some of its voltage when it delivers current.

Real Sources and Voltage Sag

An ideal battery holds the same voltage at every current. A real battery behaves more like an ideal emf, ε, in series with an internal resistance, r. Internal resistance is a model for losses inside the battery, not necessarily a hidden discrete resistor.

The terminal voltage under load is:

Vterminal = ε − Ir

Consider a fresh alkaline AA cell with a nominal voltage of 1.5V. Suppose its effective internal resistance under our stated conditions is 0.20Ω and a load draws 0.50A:

Voltage drop inside = I × r = 0.50A × 0.20Ω = 0.10V

Vterminal = 1.50V − 0.10V = 1.40V

The same cell may read close to 1.5V with almost no load, then show 1.4V while supplying 0.5A. Increase current and the sag grows. The model value changes with chemistry, state of charge, temperature, and cell history, so this is an explanatory example rather than a rating for every AA cell.

A battery drawn as an ideal 1.50V source in series with 0.20 ohms of internal resistance, giving 1.40V at the terminals under a 0.50A load

A bench supply has a different limit. In constant-voltage operation it tries to hold the set voltage. If the load asks for more than the current limit, the supply lowers its output voltage to keep current at the limit. Seeing the voltage fall does not always mean the supply is defective. It may be protecting the circuit.

Reverse Polarity and Protection

Polarity matters for DC. A reversed supply can damage components that are sensitive to direction: electrolytic capacitors can overheat and vent, integrated circuits can fail through their internal protection diodes, and LEDs have a low reverse-voltage rating, often about 5V. Many power connectors are polarized by shape, but barrel jacks are not standardized. Most use a center-positive layout, and a symbol next to the jack shows the polarity of the supply it expects.

The simplest protection is a series diode, which passes current only in one direction. A silicon diode drops about 0.7V when it conducts, and a Schottky diode drops less, often about 0.3V at modest current. The drop reduces the voltage reaching the circuit and turns power into heat. At 1A and a 0.7V drop the diode dissipates 0.7W, which is why higher-current designs use other methods. A P-channel MOSFET (a transistor used as a switch) can act as a nearly lossless reverse-polarity switch, and a fuse can limit the damage if a reversed supply cannot be blocked.

Check polarity before first power-up, label cables, and use keyed connectors whenever the parts allow it.

Measuring a Low-Voltage DC Rail

A digital multimeter on its DC-voltage setting gives polarity and a value for the DC level. Put the black probe on the circuit reference and the red probe on the point you want to measure. For a safe beginner check, use a small battery or a current-limited, extra-low-voltage supply.

Measure a battery with no load, then measure it again while it powers a known resistor. The difference shows load-dependent sag. Do not short the battery to test it. Even low-voltage cells can deliver enough current to heat wire, damage the cell, or cause burns.

A meter may hide rapid ripple and transients because it reduces a changing signal to one number. An oscilloscope shows voltage versus time. With DC coupling (the setting that passes the whole signal) it shows the total voltage. With AC coupling (the setting that filters out the steady part) it blocks the DC component and enlarges the changing portion, which is useful for ripple but no longer shows the complete waveform. Check the scope’s grounding, ratings, and probe setting before connecting it.

A multimeter showing 4.98V beside an oscilloscope showing a DC-coupled trace and an AC-coupled ripple trace

A Short History of Steady Current

Before 1800, experimenters could produce electricity only in short bursts, using static-electricity machines and Leyden jars that discharged all at once. Alessandro Volta changed that around 1800 with the voltaic pile, a stack of alternating zinc and copper discs separated by cloth soaked in brine. It produced a steady current for as long as the chemicals lasted. That allowed scientists to study electricity as a continuous flow, and it led quickly to electrolysis, electromagnets, and the first telegraph circuits.

Early batteries lost voltage quickly because gas bubbles formed on the electrodes. John Frederic Daniell's cell, introduced in 1836, used copper and zinc in separate solutions and held its voltage far more steadily, which made it suitable for telegraph systems. Batteries remained the main DC source until generators became practical in the second half of the nineteenth century.

Thomas Edison opened the Pearl Street power station in New York in 1882, supplying DC to nearby customers. DC distribution had a practical limit, because there was no simple way to change its voltage, so the power had to be generated at the voltage customers used and could be sent only a short distance. Transformers made AC easier to distribute over long distances, and AC systems spread widely. DC never went away. Rectifiers, batteries, and electronics made it the form of power that circuits run on, and in 1954 a link between the Swedish mainland and the island of Gotland became the first commercial high-voltage DC transmission line. Modern DC converters now make it practical for some very long and undersea power links.

Common Misconceptions

  • “DC must be perfectly flat.” DC may vary while keeping one net direction.
  • “The negative terminal is always ground.” Ground is a chosen reference or safety connection whose meaning depends on the system.
  • “A 2A supply pushes 2A.” The load and source together determine current; 2A is normally a limit.
  • “All 5V sources are interchangeable.” Regulation, current limit, noise, protection, connectors, and source behavior differ.
  • “Low-voltage DC is harmless.” A shorted high-current source can create severe heating, fire, or battery failure.

Related Articles

Wrapping Up

Direct current has one net direction, but it does not have to be perfectly steady. Sources maintain polarity, loads convert energy, and a complete return path lets current flow. Batteries, solar cells, supplies, and rectifiers can all provide DC with different limits and waveforms. Internal resistance explains why a loaded battery’s terminal voltage falls, while a current limit explains why a bench supply may deliberately reduce voltage. Measure at low voltage, use the right instrument for the variation you need to see, and never test a source by shorting it. Voltage and current together determine how fast a source delivers energy, which is the subject of How Electrical Power Works.

Hack The World and Make Awesome.

Add new comment

Restricted HTML

  • You can align images (data-align="center"), but also videos, blockquotes, and so on.
  • You can caption images (data-caption="Text"), but also videos, blockquotes, and so on.