---
title: 'Passive infrared motion sensors: a two-bit camera powered by crystals'
source: 'https://youtube.com/watch?v=XRCprhlz4D8'
video_id: 'XRCprhlz4D8'
date: 2026-11-19
duration_sec: 973
channel: 'Technology Connections'
---

# Passive infrared motion sensors: a two-bit camera powered by crystals

> Source: [Passive infrared motion sensors: a two-bit camera powered by crystals](https://youtube.com/watch?v=XRCprhlz4D8)

## Summary

This video explains the inner workings of passive infrared (PIR) motion sensors, detailing how they detect body heat and movement using pyroelectric crystals, lenses, and transistors. It breaks down the physics and engineering behind these ubiquitous devices.

### Key Points

- **Introduction to PIR sensors** [00:00] — PIR sensors detect body heat, but the video explores how they distinguish movement from mere warmth.
- **Thermal radiation and pyroelectricity** [00:44] — All matter above absolute zero emits infrared radiation; pyroelectric crystals produce voltage when heated.
- **FET amplifies crystal signal** [01:36] — A field-effect transistor (FET) amplifies the tiny voltage from the pyroelectric crystal to produce a detectable signal.
- **Dual crystal design** [02:45] — Two crystals with opposite polarity cancel out uniform temperature changes, preventing false triggers from ambient heat.
- **Fresnel lens function** [03:17] — The translucent plastic front is a Fresnel lens that focuses infrared light onto the sensor, creating hot spots.
- **Internal components revealed** [05:02] — The sensor contains a FET and pyroelectric crystals; the ground connects to one side of the crystal, and the other side to the FET gate.
- **Movement detection mechanism** [06:51] — When a warm spot sweeps across the crystal, it creates a temperature imbalance, generating voltage that triggers the FET.
- **Alternative designs** [10:16] — Some sensors use segmented mirrors instead of lenses; sensitivity can be adjusted via potentiometers or lens size.
- **Pet immunity and calibration** [13:12] — Lens elements can be sized to ignore small animals, and distance settings adjust the number of blips required to trigger.

## Transcript

But have you&nbsp;ever wondered how they work? There are several kinds out there but the most common one is the&nbsp;passive infrared sensor. You might already know that these detect your body heat, but how does it&nbsp;do that?
And what’s going on inside here to, y’know, actually determine that something is&nbsp;moving and not just warm? Like so many of the ubiquitous devices in our lives, the fundamental&nbsp;thing this is doing is incredibly simple.
But look at how all its pieces fit together and&nbsp;you’ll start to uncover something amazing. You’re glowing&nbsp;today! In the infrared.
“All matter with a temperature greater than absolute zero emits thermal radiation” and we matter! And greater than absolute zero. Now, fun fact about infrared light, when it lands on stuff it heats that stuff up.
So you literally make everyone and everything around you just a little bit warmer simply&nbsp;by being there. Because of a little phenomenon called pyroelectricity.
no not like that actual&nbsp;crystals — Gallium&nbsp;nitride is one such crystal. It’s a really, really small effect producing only a wee bit&nbsp; of voltage so it’s not like they’re useful for doing work
but thanks to the extremely&nbsp;sensitive field-effect transistor or FET, pyroelectric crystals can be used to detect&nbsp;changes in heat. Hook one of these crystals up to the gate of a sufficiently sensitive transistor
and you can&nbsp;produce a large electrical signal when the crystal heats up even just a tiny little bit. Since your&nbsp;body is constantly radiating infrared light, that means a pyroelectric crystal&nbsp;could be used to detect your presence.
If you glitched into existence right&nbsp;in front of a pyroelectric crystal [fwoop] it would produce a blip of voltage as your body heat raised&nbsp;its temperature
It’s only the change in temperature that produces the&nbsp;voltage, otherwise we’d have something of a free energy device on our hands. So once your body&nbsp;heat brought it to a new equilibrium temperature,
But also,&nbsp;we don’t want that anyway. Such a sensor would react to anything near it&nbsp; that quickly changes temperature - say a heater switching on. But what if you had…
If one&nbsp;crystal warmed up but the other didn’t, there'd be an imbalance in voltage between the&nbsp;two which could be measured. So if you can figure out a way to cause a person&nbsp;moving in front of a device with a pair of pyroelectric crystals to heat only one of&nbsp;them at a time,
Which brings us to these: here I have&nbsp;two common types of passive infrared sensor, both used in lighting products.
The translucent&nbsp;piece of plastic you find on the front of both sensors is actually a complicated lens. They&nbsp;look cloudy since they’re not transparent to visible light, but this material affects infrared&nbsp;light just as if it were glass.
And sitting behind the lens (quite far behind it as a matter of&nbsp;fact) is our pair of pyroelectric crystals. They’re inside this metal can and hiding&nbsp;underneath a filter which rejects visible light so we can’t see them,
And what’s inside? This may not&nbsp;look like much but this is in fact a pair of pyroelectric crystals.
OK, well the H isn’t -&nbsp;at least, I don’t think it is. Full disclosure, I don’t really understand how this is&nbsp; constructed or indeed what the crystals are - Pyroelectricity is exhibited in lots of stuff.
And I’m not even sure this is&nbsp;only two crystals. If you look closely, you’ll see that there’s a translucent, vaguely shiny and&nbsp;stripy pattern on top of the H. That could be a series of crystals, and my intuition&nbsp;tells me the H we see below them
is a printed pattern on their support which helps maximize&nbsp; the temperature differential between different areas of the crystal surface by absorbing more&nbsp;IR in some spots and reflecting more in others.
I was looking through some data sheets for similar&nbsp; parts and this arrangement isn’t always the same, which leads me to believe that the actual sensor&nbsp; element can be tuned for different applications. Regardless of the specifics, look closely and&nbsp; you’ll see that the crystal is sort of floating above…
So I broke it to see what that&nbsp;something was. And it’s a small transistor package containing a FET. Now that we can see everything,&nbsp; we can figure out how this component works.
Its three pins which attach it to a circuit board&nbsp; are labeled V, G, and S. Then if we look back at the&nbsp;component’s topside, we see that the voltage and signal pins are connected to the source and drain&nbsp;of the FET.
But the ground connection - that went to one side of the crystal element. And, before&nbsp;I destroyed it, the other side of the crystal was connected to the gate of the FET. Now, you might be a bit confused here&nbsp; because I said there were two crystals&nbsp;&nbsp;
and yet there’s only one structure&nbsp;connected to one transistor. The two crystal&nbsp;elements found on this structure have opposite polarity.
While one produces a positive voltage,&nbsp; the other produces a negative voltage. This means that if the whole structure heats up, while&nbsp;both crystals will produce some voltage, they perfectly oppose each other.
And&nbsp;the net effect is… nothing happens. Well, let’s say there was a&nbsp;bright flash of light - maybe from lightning. That will actually cause a voltage spike in a pyroelectric&nbsp;material because that visible light also becomes heat when it’s absorbed by it.
Thanks to the opposing polarity of the crystals it won’t. the equal and opposite voltages produced in the two halves of the&nbsp;pyroelectric element cancel each other out.
If it’s only partially heated, then only one&nbsp;crystal produces voltage while the other doesn’t. That means there’s an imbalance, so there’s a&nbsp;voltage potential across the entire structure.
And, since that structure is connected across&nbsp; ground and the gate of the transistor, that difference in heat (and thus difference in potential) will trigger&nbsp;the FET and it will in turn produce a blip on the signal pin.
I mean, lenses. If I remove this and we look at the backside, you’ll see that this is&nbsp;actually a bunch of Fresnel lenses. Counting each section with a circle bit as one lens&nbsp; means there are twenty-eight lenses in total.
Unfortunately because this is designed to&nbsp; bend infrared light and not visible light&nbsp;&nbsp; I can’t demonstrate what this lens is actually&nbsp; doing all that well. But if I stick my phone’s flashlight behind it at roughly the same position&nbsp;the crystals sit,
you might be able to see that only one section of the lens lights up brightly, and which section lights up changes as I move the camera around. Of course, in practice,&nbsp; this is designed to collect light and focus it on the sensor
But hopefully this helps you understand that each section of this lens is looking&nbsp;at a narrow slice of what’s in front of it. The infrared&nbsp;light your body is emitting will be collected by these lenses
and projected onto the inside surface of the enclosure as a series of fuzzy spots. Since it’s infrared light, wherever those spots land heats up just a&nbsp;tiny bit.
And here’s the key: as you move in front of the lenses, those fuzzy spots of infrared&nbsp;light will move, too. And some of them will end up sweeping across the crystal face, heating one&nbsp;side first, and then the other.
That temperature imbalance as the warm spot sweeps across means&nbsp;there’s a voltage imbalance in the crystal, With each lens collecting light from a small slice of its field of view, these sweeps of IR&nbsp;across the sensor repeat as you continue moving.
It's&nbsp;tough because I can’t show you this but As the&nbsp;ball turns (this clip is only seven seconds long, so it’s gonna loop a lot)
sorry couldn’t resist). As the ball turns, thanks&nbsp;to the fog machine in the room, we can see the moving beams of light that&nbsp;sweep across the space. The same thing would happen if the ball were motionless but the light&nbsp;shining on it was moving around the ball.
And if we look at the walls of the room, you’ll see that&nbsp;those spots of light are sweeping across the walls. This motion sensor is basically exactly that, but&nbsp;in reverse. The lens is collecting your body heat and creating hot spots inside this enclosure,&nbsp;focused on the sensor.
As you move in front of this thing, those spots move, too. When they sweep&nbsp;across the two halves of the pyroelectric crystal, it generates enough voltage to trigger the&nbsp;transistor and produce a signal blip.
Then, the electronics inside the device will…&nbsp; do whatever it is they’re supposed to do. And by the way, infrared motion sensors can be more like&nbsp;disco balls than you may realize. When the front face of one of these looks uniform rather than segmented, sometimes it isn’t a lens.
Instead it might be a simple window that’s transparent&nbsp;to infrared, and behind it is a segmented mirror focusing and reflecting light onto the pyroelectric sensor.
Those&nbsp;mirror segments reflect your body heat onto the face of the crystal, and just like the segmented&nbsp;lens, the spots of heat your body generates on the crystal move across it as you move around. A sweep across produces a voltage imbalance, which triggers the FET, and the&nbsp;electronics react accordingly.
Speaking of electronics, this module is the&nbsp; kind of module you typically find on an outdoor floodlight. These knobs turn potentiometers on the board: one for the time the light should stay on after&nbsp;being triggered
What that distance adjustment does is change how&nbsp;many signal blips from the sensor are required in a given time for the module to interpret&nbsp;movement.
Set at its furthest distance, it may react to just a couple of blips. But&nbsp;you can dull its sensitivity by requiring the logic to see more blips from the&nbsp;sensor before it switches the lights on.
You probably noticed already that some of the lens elements are smaller and they’re aimed in&nbsp;different directions. The smaller lenses at the bottom won’t produce as bright of an infrared spot on the inside as&nbsp;their larger neighbors,
you have to&nbsp;be closer to this (with your body taking up more of its angular view) for those lens segments to&nbsp;trigger the sensor. So, if you require more sensor blips in a given period to trigger this,
the thing&nbsp;it’s reacting to needs to be closer to it so it’s seen by more of the lens elements and causes more&nbsp;IR sweeps and thus more signal blips more quickly.
Of course, there are plenty of other designs&nbsp;you can play with, but like everything in life, there are tradeoffs. The golf ball lookin' lens&nbsp;on this solar light, since it’s a hemisphere, is able to detect movement across a wider&nbsp;field of view.
You often see this kind of sensor on ceilings to detect room occupancy. you have to be pretty close to this for your body heat to&nbsp;affect the pyroelectric crystal.
That gives it a limited detection range, and since the lens&nbsp;elements are mostly uniform, while you could in theory adjust its sensitivity that won’t correspond as&nbsp;nicely to distance as it does with this design.
You can also use the lens elements and their size to&nbsp; calibrate how large of a living creature you want this to react to. Lots of home security systems&nbsp; have motion sensors that don’t react to pets,
and one way that's is accomplished is by using&nbsp; lens elements that are simply too small to generate enough heat on the crystal It may also use smaller lens elements&nbsp;for areas facing the floor.
Since the actual sensor in these is so simple, tweaks to the lens and careful calibration&nbsp;is really the name of the game here. And as you might have noticed, at the end of every video
this scrolling list of names appears. These are&nbsp;some of the lovely people who are supporting my work via Patreon. I haven’t really talked about Patreon&nbsp;in a long time because, to be honest, I’m doing just fine.
But in the video I just made where I&nbsp;was fawning over awnings, it was dawning on some folks that I’ve never done a sponsored segment or&nbsp;ad read. I’ve never explicitly said that since I don’t like tooting my own horn, and also that's a weird thing to brag about:
Especially if they’re funny. But truly,&nbsp;the reason I'm not doing that is these folks! I consider myself very lucky that I don’t have to&nbsp; read words somebody at a PR firm wrote for me,
and so long as I can keep going as I am now, I won’t. So as the&nbsp;jazz fades in, I want to give a heartfelt thanks not just to the people you see here but everyone&nbsp;who supports my work on Patreon.
I’ve got a lot of cool plans lined up and they’re all made possible by&nbsp;people like you. What is this, PBS? But look at how all its… beh.
It may be gallium nitride but it could be something else. What? What am I doing? And what goes in front of it?
Oh. Well that’s a problem. If you… I need you to stay… I need you to not do that.
And one way this is accomplished is by using smalllllllll what? Well I skipped a skipped some words.
Speaking of oops, I'm sitting at my desk with the top half of the flood light sensor enclosure and there's a little mirror in there I didn't show you! It's angled to help the IR coming in from the extreme side areas of the lens make it onto the sensor.
And it looks like it's also throwing the light coming up from the small segments at the bottom back downward. Neat.
