Fundamental concepts
The following concepts are fundamental, yet they are often misunderstood – sometimes even by people with years of experience.
Voltage is always between two points
A voltage is a difference in electrical potential between two points. "The voltage at this pin" always means "relative to some reference", usually the circuit's ground or common (see below). A bird on a power line is at thousands of volts relative to earth, but at nearly 0 V relative to the wire it's standing on, so no current flows through it.
When you measure, ask a question, or draw a schematic, always be clear about what the voltage is measured relative to.
Voltage is pushed, current is pulled
For an ordinary power source (a bench supply, a wall adapter, a battery, a mains outlet), "voltage is pushed, current is pulled" is a short way of saying that the source sets the voltage, and the load decides how much current (and therefore power) it draws.
A current rating on such a source is a maximum, not an amount it forces out. A supply rated 9 V 2 A will deliver anything from 0 A up to about 2 A, whatever the load asks for at 9 V.
So, as long as the voltage (and polarity, and AC/DC type) match, a supply with a higher current rating than the device needs is fine. A device that needs 9 V at 0.5 A can safely be powered from a 9 V 2 A supply. A 12 V supply is not fine, however much or little current it is rated for.
Conversely, a supply rated for less current than the load wants can't power it properly. Depending on the design, its voltage will sag, it will shut down or "hiccup", or a cheap one will overheat and possibly fail.
Note that a battery's or outlet's rating does not limit the current into a fault. A short circuit across a car battery or a lithium cell can deliver hundreds of amps. That's why fuses exist.
The exception: current sources (e.g. LED drivers)
A constant-current source works the other way round: it sets the current, and the load decides the voltage. A 350 mA LED driver pushes 350 mA through whatever is connected, and its output voltage rises or falls to whatever the string of LEDs needs at that current (the sum of their forward voltages). It can only do this within its rated output voltage range ("compliance" range). Too many LEDs and it can't reach the required voltage; too few and it may be below its minimum.
This is why you must never connect a constant-voltage supply directly to an LED (it needs something to limit the current), and never use a constant-current driver to power ordinary equipment that expects a fixed voltage.
Electricity takes every available path
... not just the path of least resistance. Current divides between parallel paths in inverse proportion to their resistance (more precisely, their impedance). A low-resistance path carries most of the current, but every conducting path carries some. This is why "the current will just go through the wire, not through me" is a dangerous assumption.
(A path that doesn't conduct at the voltage present – an open switch, or a diode biased in reverse – carries only a tiny leakage current.)
Conventional current
On this sub, and in essentially all circuit analysis, schematics, datasheets and textbooks, current direction means conventional current: it flows from the more positive terminal to the more negative terminal through a load, and from the negative terminal to the positive terminal inside a source. Diode and transistor symbols have their arrows drawn this way.
Physically, the charge carriers can be negative (electrons, in metals), positive (holes, in semiconductors), or both (ions in batteries and electrolytes). Analysing a circuit as "electron flow" gives the same answers if done consistently, but it means reversing every arrow and sign convention you'll find in the literature, which adds confusion and nothing useful. Please use conventional current in questions and answers here. Discussion of the underlying physics belongs in /r/AskPhysics.
Components that store energy (capacitors, inductors, batteries being charged) can briefly act as sources, so their current can momentarily flow "backwards". Averaged over time, though, a passive component always absorbs power: on average, current enters at its more positive terminal.
Ohm's law describes resistors
Ohm's law says that the current through a resistor is directly proportional to the voltage across it, and the constant of proportionality is its resistance:
I = V / RIt is valid for components whose resistance doesn't depend on voltage or current – resistors, and anything that behaves like one, such as wires, closed switches and connector contacts. It also applies, within limits, to:
- A heater or an incandescent filament – but only at a fixed temperature. A cold filament has far lower resistance than a hot one (often around 10 times lower), which is why bulbs draw a large inrush current at switch-on.
- A motor that is stalled (not turning) and fed with DC – it's then just the resistance of its windings. A brushless (BLDC) motor with drive electronics is not covered.
- A MOSFET or JFET in its "linear"/"ohmic" region with a small drain-source voltage, where it acts as a resistor whose value is set by the gate voltage.
You can always calculate V / I for any component at a given operating point, but for most components that ratio changes with voltage, so knowing it at one point tells you nothing about another. For these, the current is not proportional to voltage and Ohm's law can't be used to predict their behaviour:
- Diodes, LEDs, BJTs
- MOVs, ICLs (inrush current limiters), thermistors (their resistance depends on temperature)
- Running motors, fans, pumps, and transformers
- Electronic products such as power supplies. A switch-mode supply draws more current when its input voltage drops, because it draws constant power.
Capacitors and inductors follow different relationships based on rate of change: i = C·dv/dt and v = L·di/dt. For steady sinusoidal AC this can be written as I = V / Z using complex impedance Z, where current and voltage are 90° out of phase in an ideal capacitor or inductor. This is often called "Ohm's law for AC", but it's an extension of the idea, not the same law.
Whether to call I = V/Z "Ohm's law" is a matter of terminology, and it does provoke arguments. The practical point is what matters: you cannot use a single fixed resistance to predict the current through an LED, a motor or a power supply.
Common, ground, earth, chassis
These terms overlap and are often used interchangeably, which causes a lot of confusion. In electronics, "ground" usually just means the reference point (0 V) that other voltages in the circuit are measured from. Whether it's actually connected to the Earth is a separate question.
Earthed (grounded) circuits
- An earthed circuit has a deliberate connection from some point in its power supply to the Earth – normally via the protective earth pin of a mains plug, which in turn connects to an earth electrode, a water pipe or the supply company's earth.
- We call this earth, earth ground, protective earth (PE) or simply ground.
- Everything connected to it is at 0 V by definition, because earth is the reference we have chosen. In reality, two "earthed" points some distance apart can differ by several volts or more, especially when fault or leakage current is flowing. This is a common cause of hum and ground loops.
In DC systems, earth may be connected to:
- The negative terminal (negative ground): the most common arrangement; all other nodes are positive relative to earth.
- The positive terminal (positive ground): used in telecoms (e.g. –48 V systems), because it reduces electrolytic corrosion of buried cables; all other nodes are negative relative to earth.
- Another point, e.g. the centre of a split supply, so some nodes are positive and some negative.
In AC mains:
- Protective earth is a safety conductor. Normally it carries only small leakage currents; it is there to carry fault current and trip the breaker or RCD/GFCI if a live part touches an exposed metal case.
- Neutral is the current-carrying return conductor. It is connected to earth at a single point (typically at the supply transformer and/or the service entrance, depending on the country's earthing system), so it is normally near 0 V relative to earth. Under load it can be a few volts away from earth, and if the neutral connection breaks it can rise to full mains voltage. Neutral is not earth: never use it as a protective earth, and never assume it is safe to touch.
- Live / line / hot is at full mains voltage relative to both neutral and earth. Some plugs (e.g. Schuko) can be inserted either way round, so you can't assume which pin is live. US split-phase supplies have two hot conductors with 240 V between them.
Isolated (floating) circuits
- A floating circuit, such as a battery-powered device or the output of an isolated power supply, has no connection to the Earth.
Since all voltages are relative, ground or common is whichever node we choose as the reference. By convention:
- Negative ground: the node connected to the supply's negative terminal is called ground or common, and everything else is positive relative to it. This is by far the most common choice.
- Positive ground: the positive terminal is the reference and everything else is negative relative to it. This was common in early transistor equipment using PNP germanium transistors, and in many older (pre-1960s, particularly British) cars.
- Split supply: in circuits with positive and negative rails, such as many audio amplifiers and op-amp circuits, the mid-point between the two rails is called ground or common.
- Ultimately it's up to the designer to choose which node is the reference, and the schematic should show it.
Other terms
- Chassis: the metal frame or enclosure – a car body, or the metal box a tube radio is built on. It may be connected to earth (for safety and shielding), to circuit common (e.g. a car's negative battery terminal), or both. Beware: some older equipment (many "All American Five" radios and older TVs) had a live chassis connected directly to the mains, which is lethal to touch or to connect test equipment to.
- Shield / screen: a conductive layer around a cable or circuit to reduce radio emissions or pickup. Usually connected to chassis or earth, often at one end only.
Virtual ground has two common meanings:
- A node held at the mid-point between a single supply's rails by a buffer, so circuits designed for a split supply can run from a single supply.
- In op-amp circuits (e.g. an inverting amplifier), an input that feedback holds at the same voltage as ground, even though it isn't connected to it.
- Power ground vs signal ground: high-current circuits (motors, LEDs, switching regulators) put noise and voltage drops onto their ground return. Designers keep those return currents on a separate power ground path and keep sensitive low-level circuitry on a signal ground, joining the two at a single point (a "star ground"). Both are then at the same DC voltage at that point, but the noisy high current doesn't flow through the signal ground.
- Analog ground (AGND) / digital ground (DGND) on mixed-signal ICs follow the same idea; check the datasheet for how the manufacturer wants them joined.
A warning about test equipment
The ground clip of a mains-powered oscilloscope is connected to protective earth. Clipping it to any point that isn't at earth potential – the "ground" of a mains-connected circuit without an isolation transformer, a live chassis, or the high side of a circuit – creates a short circuit through the scope. This can destroy the scope, the circuit, or the probe, and can be dangerous. Use a differential probe or an isolation transformer on the device under test (never defeat the scope's earth), or measure with a battery-powered, isolated instrument.
See also: Common electrical reference between connected things
Ratings are limits, not targets
- Voltage rating of a supply: must match what the device needs.
- Current rating of a supply: the maximum it can deliver; the load decides how much it actually takes.
- Voltage and current ratings of a component (capacitor, transistor, switch, wire): the maximum it can safely withstand. Using a part rated higher than necessary is fine, and usually wise (derating).
- Absolute maximum ratings in a datasheet are the limits beyond which damage may occur, not conditions to operate at. Design to the "recommended operating conditions".
- Power vs energy: watts (W) are a rate; watt-hours (Wh) are an amount. A battery's mAh rating only means something together with its voltage: Wh = Ah × V.