How LoRa Modulation Works: The Secret Language of Chirps
Picture a sensor the size of a matchbox, sitting in a wheat field and running on a pair of AA batteries. Every fifteen minutes it sends a soil moisture reading to a gateway ten kilometres away. No Wi-Fi, no SIM card, no charging cable, and it keeps doing this for years.
How can a radio that transmits with roughly the power of a small indicator LED be heard that far away? The answer sounds a little like a bird and a little like a sci-fi sound effect. It's called a chirp, and by the end of this article you'll know exactly how it works. You'll even get to see it, hear it and play with it.
In earlier articles we explained what LoRaWAN is and how LoRa differs from LoRaWAN. This time we're opening up the radio itself. But to understand why LoRa's chirps are so clever, we first need to answer a simpler question: how do you put information onto a radio wave at all?
What Is Modulation?
A radio transmitter produces an invisible wave that wiggles back and forth millions, or even billions, of times per second. On its own, this carrier wave is like a lamp that's switched on: everyone can see it, but it doesn't tell anybody anything.
To send a message, you have to change something about the wave, in a pattern the receiver can follow. That's called modulation, and there are only three things you can change:
- Amplitude: how strong the wave is, like the brightness of the lamp.
- Frequency: how fast it wiggles, like the colour of the light.
- Phase: exactly when each wiggle starts, like the timing of a blink.
Every radio you've ever used, from the car radio to Wi-Fi to 5G, is a clever mix of these three. Let's start with the two classics.
AM and FM in Two Minutes
AM: Turn the Strength Up and Down
Amplitude Modulation (AM) is the oldest trick in the book. The transmitter makes the wave stronger and weaker in step with the sound, so the outline of the wave, called the envelope, traces the shape of the message. AM carried the first public radio broadcasts in the 1920s, and you can still find it on medium-wave radio today.
AM is beautifully simple, but it has a weakness: noise also changes amplitude. Lightning, electric motors and power lines all add spikes to the wave, and the receiver can't tell them apart from the message. That's the crackle you hear on AM radio during a thunderstorm.
FM: Change the Pitch Instead
Frequency Modulation (FM), patented by the American engineer Edwin Armstrong in 1933, keeps the strength of the wave constant and changes how fast it wiggles. When the message goes up, the waves squeeze together; when it goes down, they spread apart.
Because the information lives in the timing of the waves rather than their height, an FM receiver can simply ignore changes in strength, and most of the noise goes with them. That's why music sounds so much cleaner on FM (87.5 to 108 MHz) than on AM.
Going Digital: ASK and FSK
Digital radios use exactly the same ideas, just with ones and zeros. Amplitude Shift Keying (ASK) makes the wave strong for a 1 and weak for a 0, while Frequency Shift Keying (FSK) uses one pitch for a 1 and another for a 0. FSK and its relatives are everywhere in IoT; Bluetooth, for example, uses a smoothed version called GFSK.
Keep FSK in mind. LoRa also hides its data in frequency, but instead of jumping between fixed pitches, it slides.
Fun fact: planes still fly on AM
Pilots and air traffic controllers still talk over AM radios, on 118 to 137 MHz. One big reason: if two people transmit at once, AM lets you hear both as a garbled squeal, so everyone knows a message was lost. With FM, the stronger signal would quietly drown out the weaker one, and nobody would notice.
The Problem: Whispering Across a Stadium
Now picture the job LoRa was designed for. A sensor has to reach a gateway kilometres away, survive for years on a small battery, and be cheap enough to scatter across an entire city or farm.
The trouble is that radio signals fade fast. Every time you double the distance, the received power drops to a quarter, and that's in empty space; walls, trees and hills make it much worse. After ten kilometres of countryside, a 25 mW signal can arrive with as little as a ten-trillionth of a milliwatt (around −130 dBm, if you speak radio).
Meanwhile, the receiver is swimming in noise: interference from other electronics, plus the random jiggling of electrons in its own circuits, caused by nothing more than heat. Very often, the signal reaching the gateway is weaker than the noise around it. It's like trying to hear a friend whisper from the other side of a packed stadium. You have three options:
Shout louder
More transmit power. But that drains the battery, and the law caps it anyway: 25 mW on the main European LoRa channels.
Not an optionSpeak slowly
Spend more time on every piece of information, so the listener can collect more of it. It costs speed, but it works.
LoRa does thisUse a pattern they know
You can pick out your own name in a noisy room because your brain knows exactly what to listen for. A receiver can do the same.
LoRa does thisLoRa combines the last two ideas, and the pattern it uses is the chirp.
Meet the Chirp
A chirp is a signal whose pitch slides smoothly upwards (an up-chirp) or downwards (a down-chirp). Press play and you'll hear why engineers named it after a bird:
Nature got there first. Many bats hunt with chirps: their calls sweep down in pitch, and the echoes tell them exactly where a moth is flying. Radar engineers borrowed the trick decades ago for the same reason: a chirp is easy to recognise, even when its echo is faint and buried in noise. And in 2015, when the LIGO observatory detected gravitational waves from two colliding black holes for the very first time, the signal it caught was... a chirp.
In LoRa, every chirp sweeps across the entire radio channel, typically 125 kHz wide, in a straight line. Because each chirp spreads its energy over the whole channel, the technique is called Chirp Spread Spectrum (CSS). LoRa's version was developed by Cycleo, a small French startup, which the chip maker Semtech bought in 2012 and turned into the LoRa radios used around the world today.
How a Chirp Carries Data
Here's the clever part. In LoRa, every chirp has the same shape and climbs at the same speed. The only thing that changes is where it starts.
Think of singing a musical scale, do-re-mi-fa-sol-la-ti, over and over. Start on "do" and you sing it in order. Start on "fa" and you climb to "ti", loop back to "do" and keep going until you're back at "fa". Same tune, same speed, different starting note, and the starting note is the message.
A LoRa chirp does exactly that. It starts at some frequency, slides up to the top of the channel, wraps around to the bottom and keeps climbing until it's back where it began. Each possible starting point is called a symbol. With 128 possible starting points, and 128 = 27, every chirp carries 7 bits. Drag the slider and try it:
Here's a neat detail: 7 bits is exactly enough for one character of ASCII, the code computers use for letters. So, in a simplified world, one SF7 chirp could carry one letter. Hold on to that thought, because later you'll use it to send your own name.
Spreading Factor: Speed vs. Distance
The number of bits in each chirp has its own name: the Spreading Factor (SF). LoRa uses SF7 to SF12, and you may already have spotted the catch in Figure 3. Every step up doubles the number of possible starting points, and also doubles how long each chirp lasts:
So why would anyone choose slower chirps? Because a longer chirp packs more energy, and the receiver gets more time to listen. Each step up lets the receiver dig about 2.5 dB deeper into the noise. At SF12, LoRa can decode a signal 20 dB below the noise, which means a hundred times weaker than the noise itself. That's the "speak slowly" option from our stadium, and depending on the terrain it lets SF12 reach roughly two to four times further than SF7.
| SF | Chirp length | Bits per chirp | Bit rate | Decodes down to | 20-byte message |
|---|---|---|---|---|---|
| SF7 | 1.02 ms | 7 | 5.5 kbps | −7.5 dB | 57 ms |
| SF8 | 2.05 ms | 8 | 3.1 kbps | −10 dB | 103 ms |
| SF9 | 4.10 ms | 9 | 1.8 kbps | −12.5 dB | 185 ms |
| SF10 | 8.19 ms | 10 | 977 bps | −15 dB | 371 ms |
| SF11 | 16.4 ms | 11 | 537 bps | −17.5 dB | 741 ms |
| SF12 | 32.8 ms | 12 | 293 bps | −20 dB | 1.32 s |
All values for a 125 kHz channel with coding rate 4/5. "Decodes down to" is the signal-to-noise ratio a LoRa receiver can still handle. Message times include the preamble, header and CRC, calculated with Semtech's time-on-air formula.
There's no free lunch, though. The same 20-byte message takes 57 milliseconds at SF7 but 1.3 seconds at SF12: about 23 times more battery spent transmitting, and 23 times longer that the channel is busy for everyone else. That's why LoRaWAN networks use Adaptive Data Rate to give each device the fastest spreading factor that still reliably reaches a gateway.
The Receiver's Magic Trick
So how does a gateway find a chirp that's weaker than the noise around it? With a two-step trick that is surprisingly elegant.
Here's why this matters. At SF12, a chirp is made of 4,096 tiny time slices called chips. The FFT gathers the energy from all 4,096 of them into a single bar, while the noise stays spread across 4,096 bars. This pile-up is called processing gain, and it's what lets the spike poke out even when the raw signal is completely buried. Don't take our word for it: lower the signal-to-noise ratio until the top screen looks like pure static, then watch the bottom one.
For the curious: where −137 dBm comes from
The noise in a radio channel at room temperature is about −174 dBm for every hertz of bandwidth. For a 125 kHz channel, that adds up to:
Add about 6 dB of extra noise from the receiver's own electronics and the noise floor sits at roughly −117 dBm. Since SF12 can decode signals 20 dB below that:
That's right in line with the sensitivity quoted on LoRa radio datasheets, and it's a big part of why LoRa links can stretch so far.
Anatomy of a LoRa Message
A real LoRa transmission is like a short song with a fixed structure. Type a word below to see, and hear, what it looks like on air:
See it for real
With a USB software-defined radio (an RTL-SDR dongle costs about €30 to €40) and free software such as SDR++, you can watch real LoRa chirps scroll across your screen around 868 MHz in Europe or 915 MHz in the Americas. They look a lot like Figure 7, just turned on their side.
Why Chirps Win, and What They Cost
Chirp Spread Spectrum isn't just good at beating noise. The same tricks give LoRa a whole set of superpowers:
Hears below the noise
Processing gain lets LoRa decode signals up to 100 times weaker than the background noise.
Shrugs off interference
De-chirping smears a narrow interfering signal across all the FFT bars, while the real chirp still forms one sharp spike.
Forgives cheap hardware
A small frequency error just nudges the spike sideways, and the receiver corrects it during the preamble, so low-cost parts are often good enough.
Easy on the battery
Like FM, a chirp never changes its strength, so the transmitter's amplifier can run at its most efficient setting.
Many talkers at once
Chirps with different spreading factors barely interfere with each other, so a gateway can hear several devices on one channel at the same time.
Handles echoes
Reflections off buildings arrive only microseconds late, a tiny fraction of a long chirp, so they don't smear one chirp into the next.
Nothing Is Free
All of this robustness is paid for with speed. On a standard 125 kHz channel, LoRa moves between about 0.3 and 5.5 kilobits per second (the wider 500 kHz channels used in some regions reach about 22 kbps). That's perfect for a temperature reading, a GPS position or a water meter value, and hopeless for anything big.
How hopeless? Sending a single 3 MB photo from your phone at SF12 would take almost a full day of non-stop transmitting. And because European rules only let a device transmit 1% of the time on the main LoRa channels, you'd actually be waiting about three months for it to arrive. LoRa isn't built for photos. It's built to send tiny messages, very far, for a very long time.
AM vs. FM vs. LoRa at a Glance
| AM | FM | LoRa (CSS) | |
|---|---|---|---|
| What changes | Strength (amplitude) | Pitch (frequency) | Frequency, sweeping in chirps |
| What it carries | Analogue sound | Analogue sound, better quality | Digital data, 0.3 to 5.5 kbps |
| Noise | Crackles with lightning and motors | Ignores most crackle | Works even below the noise |
| Transmit power | Kilowatts for a broadcast station | Kilowatts for a broadcast station | 25 mW in Europe |
| Typical range | Hundreds of km, further at night | About 50 to 100 km | 2 to 5 km in cities, 10 to 15 km or more in open country |
| Where you meet it | Medium-wave radio, aircraft radios | FM radio, walkie-talkies | Smart meters, farm sensors, trackers |
Look at the power row. A broadcast station needs thousands of watts to cover a region, while a LoRa sensor covers kilometres on 25 milliwatts, tens of thousands of times less. The price is speed: a radio station streams music all day, while LoRa sends a few bytes at a time.
Quick Quiz
Think you've got it? Click a question to check your answer.
1AM changes the ___ of a radio wave, while FM changes its ___.
2Where exactly is the data hidden in a LoRa chirp?
3SF12 chirps last 32 times longer than SF7 chirps. What do you gain, and what do you pay?
4What does the receiver multiply the incoming signal by, and why?
Try It Yourself
The best part about LoRa is that it isn't locked away in labs. A couple of inexpensive boards are enough to start experimenting:
Meshtastic
An open-source project that turns low-cost LoRa boards into an off-grid messenger. Hikers, festival-goers and makers use it to text each other across kilometres with no phone signal. meshtastic.org
The Things Network
A free, community-built LoRaWAN network with gateways in thousands of locations worldwide. There may already be one near you. thethingsnetwork.org
Build your own link
Two development boards with a LoRa radio on board and the free Arduino IDE are all you need. A few lines of code will send your first message across town, and you can try different spreading factors yourself.
The Short Version
- AM changes a wave's strength and FM changes its pitch. FM sounds cleaner because most noise only affects strength.
- LoRa sends chirps, sweeps across the whole channel. The data is hidden in where each chirp starts.
- The spreading factor trades speed for range: every step doubles the chirp length and digs about 2.5 dB deeper into the noise.
- The receiver de-chirps and runs an FFT, piling the chirp's energy into one spike. That's how LoRa hears signals up to 100 times weaker than the noise.
At TARA Devices, LoRa is part of our everyday toolkit: we design the hardware and firmware that put these chirps to work in real products. If you're building something that needs to talk far on very little power, we'd love to hear about it.
Back to Blog