A zero crossing is the instant a back-and-forth signal passes through zero on its way from positive to negative, or back again.1Wikipedia. Zero crossing The mains electricity in a wall socket does this about 100 or 120 times every second, depending on the country. That repeating instant is useful twice over: it is the quietest moment to switch power on, and how often it happens tells a machine what kind of signal it is dealing with.
What a Zero Crossing Looks Like on a Wave
On a graph, a zero crossing is where the curve meets the horizontal zero line and the value switches sign.1Wikipedia. Zero crossing A wave that only touches zero and bounces back the same way has not crossed. Software that counts crossings follows the same rule: it flags a point only when the sign differs from the sample before it.2MathWorks. zerocrossrate
Household AC voltage swings smoothly up to a peak, down through zero to a negative peak, and back again. Each full cycle has two zero crossings, one rising and one falling. At 50 Hz mains that means 100 crossings a second, and at 60 Hz it means 120. Between crossings the voltage is never zero, so the crossing is a brief instant, not a stretch of time.
Crossings come in two directions. A rising crossing goes from negative to positive, and a falling one goes from positive to negative. Some fields count only one direction. Ocean scientists, for example, describe waves by the average time between upward crossings, called the zero-upcrossing period.3Applied Ocean Research. Modelling bivariate distributions of significant wave height and mean wave period
The timing between crossings carries information. A fast-changing signal crosses zero often and a slow one rarely, so the gap between crossings tells you the frequency without complex maths.
A real signal is usually recorded as separate samples, so the exact moment of crossing falls between two samples, and software can only say it happened somewhere in that gap. If you need the time more precisely than the sample spacing, draw a straight line between the samples on either side and find where it meets zero.
A signal that stays entirely above zero, like a battery voltage that wobbles slightly, has no zero crossings however much it varies. To have crossings, a wave must swing to both sides of zero. Many sensors and audio circuits add a steady offset that lifts a wave above zero, so the offset has to be removed before crossings can be counted.
Why Power Switches Wait for the Zero Crossing
If power is switched at an instant when little or no current flows, far less electrical interference is generated.4Wikipedia. Zero crossing – Wikipedia Turning on mid-wave makes current jump suddenly, and that fast rise produces noise.5OMRON. Solid-state Relays Technical Guide – Explanation of Terms So a zero-cross solid-state relay (SSR), an electronic switch with no moving contacts, turns on when the load voltage is close to 0 volts.5OMRON. Solid-state Relays Technical Guide – Explanation of Terms For resistive loads such as heaters, this eliminates inrush current and voltage spikes.6Machine Design. Applying Low-Noise Solid-State Relays to Limit EMI: A Comprehensive Guide Syncing the switching to the crossing also significantly reduces EMI (electromagnetic interference), the high-frequency noise that spreads into nearby wiring and equipment.7RY-ELE. Minimizing EMI and Transients: the Power of Zero-Crossing Switching in AC SSRs
If a switch closes when the wave is near its peak, the full peak voltage is suddenly applied across the load, so current is forced to jump almost instantly. Closing near zero lets the voltage start from nothing and rise gently along the curve, so the current ramps up gradually.
When switching isn’t zero-crossed, you may notice buzzing or crackling on a nearby radio when a light dims, or a hum in speakers on the same circuit. Mechanical switch contacts can spark and wear. Electronics nearby may glitch when a big load turns on.
Turn-off works in a similar way. After a solid-state relay is told to stop, alternating current keeps flowing through it until the current falls to near zero, and only then does the relay shut off, instead of cutting the current mid-wave. Because the cut happens when little current flows, there is little stored energy to produce a voltage spike. That is also why the relay can look as though it ignores an off command for a moment: it finishes the half-cycle it is in.
Industrial heater controllers choose between two styles. Power controllers offer zero-cross control or phase-angle control, and picking one is a key design choice.8Watlow. What Is Zero Crossing? Definition and Applications Phase-angle control turns on partway through each half-wave to set the average voltage.9Libratherm. What Is Zero Crossing? Definition and Applications It gives a sharp current rise and can distort the supply waveform, hurting power factor.10Soliton. What Is Zero Crossing? Definition and Applications Zero-cross control instead switches whole cycles on and off, giving noise-free control without distortion.9Libratherm. What Is Zero Crossing? Definition and Applications
On a spec sheet, “zero-cross” means the relay waits for the next crossing after you signal it. There can be a delay of up to half a cycle, 10 milliseconds or less. A “random turn-on” relay switches immediately instead.
Zero-cross relays suit resistive loads like heaters and incandescent lamps. Because they switch whole cycles, they can’t dim a light smoothly; it would flicker. For smooth dimming, phase-angle control is used despite the noise. Motors and transformers behave differently, so check the relay’s datasheet before choosing one for them.
Zero Crossings in Efficient Power Supplies
Power converters use the same idea at much higher speed. Zero-voltage switching makes switching transitions nearly lossless, and it reduces electrical and radio interference at each switch.11Unitrode Power Supply Design Seminar. Zero Voltage Switching Resonant Power Conversion Some designs combine zero-voltage turn-on for switches with zero-current switching for diodes.12IET Power Electronics. Analysis of an interleaved zero‐voltage switching/zero current switching resonant converter with duty cycle control Switching losses drop and diode recovery losses are eliminated.12IET Power Electronics. Analysis of an interleaved zero‐voltage switching/zero current switching resonant converter with duty cycle control The result is higher efficiency even with high input voltages.11Unitrode Power Supply Design Seminar. Zero Voltage Switching Resonant Power Conversion
The two methods differ in what they wait for. One times the switch to the moment when the voltage across it is zero, the other to when the current through it is zero.
An ordinary hard-switched converter is different. The switch changes state while voltage is still across it and current is already flowing, so for a brief moment it dissipates power as heat. That overlap happens at every transition, so the loss grows in proportion to how often the converter switches. The abrupt change also rings the circuit’s stray inductance and capacitance, a source of the noise soft switching reduces.
How Circuits Detect a Zero Crossing
A zero-crossing detector compares the input voltage against a 0-volt reference using an amplifier chip.13GeeksforGeeks. Zero Crossing Detector – Definition, Advantages and Disadvantages Its output flips state each time the AC input crosses zero,14Texas Instruments. Zero Crossing Detection Using Comparator Circuit so the output is a square wave marking every crossing.13GeeksforGeeks. Zero Crossing Detector – Definition, Advantages and Disadvantages In one common build, the output jumps to about +9 or -9 volts depending on which half of the wave the input is in.15Circuit Digest. Zero-Crossing Detector Circuit Because mains voltage is too high for the chip, the input is scaled down first.14Texas Instruments. Zero Crossing Detection Using Comparator Circuit
The chip doing the comparing is a comparator. It has two inputs and tells you which is higher. With one input held at 0 volts, it simply reports whether the signal is above or below zero. The output stays in one state for the whole positive half and flips for the negative half, so the flips line up with the crossings. Since the output is a clean on-or-off level, a microcontroller can read it directly as a timing pulse.
The scaling is usually done with a resistor divider or a small transformer that brings the mains down to a few volts. A transformer also isolates the low-voltage side from the mains, which a resistor divider does not. Scaling a wave down keeps the zero point in the same place in time, so the crossing doesn’t move.
Noise near zero causes trouble. Harmonics and transients can create several crossings close to the real one, so a plain comparator fires multiple false triggers.16Texas Instruments. Zero-Crossing Detection with False Trigger Avoidance Adding hysteresis, a small dead zone around zero, prevents the repeated triggering.16Texas Instruments. Zero-Crossing Detection with False Trigger Avoidance The circuit needs the signal to go a little past zero before switching, and once switched, it won’t switch back until the signal goes a little past zero the other way. Small wiggles near zero stay inside the dead zone and are ignored. The cost is a tiny, predictable delay.
Ordinary optocouplers give soft transitions that cause timing jitter.17bristolwatch.com. What Is Zero Crossing? Definition and Applications Optocouplers with a built-in Schmitt trigger give the clean, sharp edges microcontrollers need.17bristolwatch.com. What Is Zero Crossing? Definition and Applications
For hobbyists, mains voltage can kill, so never wire it straight to a microcontroller. An optocoupler keeps the mains side electrically separate from the low-voltage side. Buying a ready-made zero-cross relay avoids building a mains detector at all.
Counting Crossings in Speech, Music and Muscles
The zero-crossing rate is how many times a signal crosses zero in a short stretch of time. In speech, the rate is low for voiced sounds and high for unvoiced ones.18peer.asee.org. Separation of Voiced and Unvoiced using Zero crossing rate and Energy of the Speech Signal Voiced sounds like “a” or “m” use vibrating vocal cords and make smooth, slow waves. Unvoiced sounds like “s” or “f” are hissy air noise with rapid jitter, and that jitter crosses zero many times.
Voiced sounds also carry high energy while unvoiced sounds carry low energy,192013 The International Conference on Technological Advances in Electrical, Electronics and Computer Engineering (TAEECE). Short-time energy, magnitude, zero crossing rate and autocorrelation measurement for discriminating voiced and unvoiced segments of speech signals so combining rate and energy separates the two effectively.18peer.asee.org. Separation of Voiced and Unvoiced using Zero crossing rate and Energy of the Speech Signal Rate alone can mislead, since silence with a little background noise also crosses zero often and could look like a hissy sound. Low rate with high energy points to a voiced sound, and high rate with low energy to an unvoiced one. A stretch with very low energy can be labelled silence regardless of its rate. The crossing rate is also used to pick out vocals in songs.20Stanford University. Waveform-Based Musical Genre Classification
The rate is calculated over a short window, often a few tens of milliseconds, because speech changes character from one sound to the next. A window short enough to hold a single sound lets the rate follow along as the speaker moves between sounds. A window that is too long would blend a hissy sound and a smooth one into an average that describes neither.
Such a simple count is popular because it needs only counting, no heavy maths, so it runs on cheap chips in real time. Its weakness is noise, which adds false crossings, so it’s paired with other measures.
Muscles offer another use. Electrical signals from muscles show a falling crossing rate as the muscle tires.21PubMed Central. Electromyography-signal-based muscle fatigue assessment for knee rehabilitation monitoring systems The strength of muscle tension rises at the same time,21PubMed Central. Electromyography-signal-based muscle fatigue assessment for knee rehabilitation monitoring systems so both measures help track fatigue during knee rehabilitation.21PubMed Central. Electromyography-signal-based muscle fatigue assessment for knee rehabilitation monitoring systems
Edges in Photos, Radio Signals and Radar
To find edges in an image, the picture is first smoothed and filtered to highlight sharp changes in brightness.22School of Informatics, University of Edinburgh. Marr edge detector, Laplacian of Gaussian edge detector Edges then show up as zero crossings in the filtered result,22School of Informatics, University of Edinburgh. Marr edge detector, Laplacian of Gaussian edge detector so the method finds outlines by locating where the filtered values change sign.23Master Data Science. Marr-Hildreth Edge Detection: A Comprehensive Tutorial
The filter measures how quickly the rate of brightness change is itself changing, and its output is positive on one side of an edge and negative on the other. Where brightness changes fastest, the value passes through zero between those two sides. Marking those points gives continuous thin outlines, since the crossing lies along the boundary between light and dark.
Smoothing comes first because raw photos contain small random brightness variations, and each would produce its own crossing and be mistaken for an edge. Smoothing blurs away the fine speckle, leaving only larger changes worth calling edges. The amount is a choice: more smoothing finds only bold outlines, while less keeps fine detail but also more noise.
Some digital radio links send ones and zeros as two different tones.24European Patent Office. FSK modulator and demodulator A receiver measures the time between crossings to tell which tone arrived,24European Patent Office. FSK modulator and demodulator so it can rebuild the data as ones and zeros.24European Patent Office. FSK modulator and demodulator
Crossings also appear in radar and measurement. A low-cost radar method using crossings to estimate frequency measured distance to about 2.24 cm.252017 13th Conference on Ph.D. Research in Microelectronics and Electronics (PRIME). Enhanced zero crossing frequency estimation for FMCW radar systems Radar systems track a target’s Doppler shift by finding where crossings are fewest.26IEE Proceedings – Radar, Sonar and Navigation. New time-domain clutter-lock algorithm Timing between crossings of two signals measures their phase shift with strong resistance to disturbance.27Systems Analysis Modelling Simulation. A multipoint algorithm to estimate the phase shift angle by the signal zero-crossing method Heartbeat-based identity systems use crossings with peaks and dips to locate key points of ECG waves.28Scientific Research Publishing (Journal of Information Security). Evaluation of Electrocardiogram for Biometric Authentication

