Back to Blog TARA Devices 0x05

How LoRa Modulation Works: The Secret Language of Chirps

A radio waterfall display of a LoRa packet: a preamble of rising chirps, a sync word, falling chirps and data 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.

1,336 km
The longest LoRa link on record: a boat off Portugal, heard in the Canary Islands (2023)
25 mW
Typical transmit power in Europe, a fraction of what your phone can use
100×
Weaker than the background noise, and LoRa can still decode it
10 years
The battery life many LoRa sensors are designed to reach

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.

Message
Figure 1. The same message sent two ways. In AM, the outline of the wave (the faint envelope) copies the message. In FM, the strength never changes; the waves squeeze together and spread apart instead. Switch to Digital bits to see how digital radios use the same ideas.

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 option

Speak 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 this

Use 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 this

LoRa 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:

Up-chirp
Down-chirp
Figure 2. Top: the frequency rises (or falls) in a perfectly straight line. Bottom: the wave itself, wiggling faster and faster (or slower and slower). The sounds are slowed down and shifted into the range of human hearing; a real LoRa chirp sweeps across 125 kHz in about a millisecond.

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:

Spreading factor
Symbol77
As bits1001101
Possible symbols128
Chirp length1.02 ms
Figure 3. The faint line is a plain chirp (symbol 0). Watch the wave below it: at the moment the frequency wraps from the top of the channel back to the bottom, the wiggles suddenly relax. Try another spreading factor and see what happens to the chirp length.

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:

How long one chirp lasts at each spreading factor
125 kHz channel. Hover over or tap a row for the details.
Figure 4. An SF12 chirp lasts 32 times longer than an SF7 chirp, but it carries only 12 bits instead of 7. The little diagonal inside each bar is the chirp itself.

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
SF71.02 ms75.5 kbps−7.5 dB57 ms
SF82.05 ms83.1 kbps−10 dB103 ms
SF94.10 ms91.8 kbps−12.5 dB185 ms
SF108.19 ms10977 bps−15 dB371 ms
SF1116.4 ms11537 bps−17.5 dB741 ms
SF1232.8 ms12293 bps−20 dB1.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.

1
De-chirp. The receiver multiplies the incoming signal by a down-chirp, a mirror image of the plain chirp. The rising sweep and the falling sweep cancel each other out, and what's left is a steady, flat tone. The pitch of that tone is set by where the original chirp started, in other words, by the data.
2
FFT. The Fast Fourier Transform is a piece of maths that splits any signal into its frequencies, a bit like the bouncing bars of a music visualiser. A steady tone shows up as one tall bar. Noise is random, so its energy is smeared evenly across all the bars.
1. IncomingA chirp that starts part-way up
2. Multiplyby a reference down-chirp
3. ResultA steady, flat tone
4. FFTOne tall spike marks the symbol
Figure 5. De-chirping straightens the chirp into a steady tone, and the FFT turns that tone into a single spike. Panels 1 to 3 show frequency over time; panel 4 shows how strong each frequency is. The position of the spike is the symbol.

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.

Try it: find the hidden chirp
Spreading factor
−10 dB
The signal is 10× weaker than the noise
What the antenna hears
After de-chirping and FFT
Figure 6. A simplified LoRa receiver running in your browser with real maths: it builds a chirp, buries it in random noise, then de-chirps it and runs an FFT. Real receivers also have to correct timing and frequency errors, and a whole message needs nearly every chirp to be right, so in practice they give up a few dB earlier than this demo (at around −20 dB for SF12).

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:

−174 + 10·log10(125 000) ≈ −123 dBm

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:

−117 dBm − 20 dB ≈ −137 dBm

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:

Figure 7. A simplified LoRa packet at SF7, drawn like the waterfall display of a software-defined radio. To keep it readable, each letter becomes one chirp that starts at its ASCII code. A real radio also scrambles the bits, adds error-correction bits and shuffles them before choosing the chirps.
1
Preamble. A row of plain up-chirps, LoRa's way of saying "Hey, listen up!" It gives the receiver time to notice the signal and lock on to it. LoRaWAN uses eight of them.
2
Sync word. Two chirps that work like a network badge, so a gateway can ignore packets meant for a different kind of network, for example a private one.
3
Start of frame. Two and a quarter down-chirps. They're impossible to confuse with anything else, and they mark the exact moment the data begins.
4
Header, payload and CRC. The data itself, plus a short header that describes it and a checksum at the end to catch errors. Extra error-correction bits (the coding rate, from 4/5 to 4/8) let the receiver repair a few damaged chirps.

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 changesStrength (amplitude)Pitch (frequency)Frequency, sweeping in chirps
What it carriesAnalogue soundAnalogue sound, better qualityDigital data, 0.3 to 5.5 kbps
NoiseCrackles with lightning and motorsIgnores most crackleWorks even below the noise
Transmit powerKilowatts for a broadcast stationKilowatts for a broadcast station25 mW in Europe
Typical rangeHundreds of km, further at nightAbout 50 to 100 km2 to 5 km in cities, 10 to 15 km or more in open country
Where you meet itMedium-wave radio, aircraft radiosFM radio, walkie-talkiesSmart 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 ___.
Amplitude (strength) and frequency (pitch). That's why FM can ignore noise that only changes a signal's strength.
2Where exactly is the data hidden in a LoRa chirp?
In its starting point. Every chirp has the same shape and speed. The frequency it starts at, before wrapping around, is the symbol.
3SF12 chirps last 32 times longer than SF7 chirps. What do you gain, and what do you pay?
You gain range and pay with time. The receiver can hear signals about 12.5 dB weaker, but the same message takes about 23 times longer to send, which costs battery and airtime.
4What does the receiver multiply the incoming signal by, and why?
A down-chirp. It cancels the sweep and leaves a steady tone, which the FFT turns into a single tall spike that stands out from the noise.

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