All paths

LoRa long-range radio

Two Unos, two SX1278 radios and no wire: chirps and spreading factors, an SX1278 driver from its datasheet, real airtime math, binary packets with IDs, duty cycle and dwell rules, what LoRaWAN adds, and an ocean buoy reporting to a shore station.

Arduino Uno R3Free7 lessons7 h4 chapters2,870 XPEmbedded engineering · Advanced+250 XP

0 of 7 done

Start the course freeSpread spectrum: chirps across the seaLesson plan for teachers
What you will build

3 projects, built step by step

7 lessons in 4 chapters, about 7 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.

Chapter 1 project

SX1278 setup, register by register

No library: the buoy sets up its SX1278 from the datasheet with plain SPI. Reset, version check, LoRa mode, the frequency in three bytes, the modem config, and a packet sent through the FIFO.

Open it in the simulator
Chapter 2 project

Packets and IDs

LoRa has no addresses: everyone hears everything. Pack readings into eight binary bytes with a destination, a source, a sequence number and a type, drop what is not yours, and count lost packets.

Open it in the simulator
Chapter 3 project

What LoRaWAN adds

LoRa is the radio; LoRaWAN is the network on top. A LoRaWAN-shaped exchange on two plain radios: the frame, the frame counter, Class A receive windows, a queued downlink and an ACK. Explained and modeled, not run.

Open it in the simulator
The map

Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

The radio

Chirps, spreading factors and the SX1278 from its registers.

  1. Open265 XP

    Spread spectrum: chirps across the sea

    Two Unos, two LoRa radios and no wire: a buoy pings the shore every two seconds. What a chirp is, what the spreading factor buys, and how LoRa hears signals below the noise.

    0 of 6 steps

  2. ProjectLocked606 XP

    SX1278 setup, register by register

    No library: the buoy sets up its SX1278 from the datasheet with plain SPI. Reset, version check, LoRa mode, the frequency in three bytes, the modem config, and a packet sent through the FIFO.

    0 of 7 steps

4 questions, graded as you go.
Chapter 2

Airtime and packets

What every packet costs, and how to make each byte count.

  1. Locked265 XP

    Spreading factor and airtime

    The datasheet formula for time on air, worked out for SF7 to SF12 and two coding rates: why one packet at SF12 takes as long as twenty-four at SF7, and why both ends must agree.

    0 of 6 steps

  2. ProjectLocked530 XP

    Packets and IDs

    LoRa has no addresses: everyone hears everything. Pack readings into eight binary bytes with a destination, a source, a sequence number and a type, drop what is not yours, and count lost packets.

    0 of 6 steps

4 questions, graded as you go.
Chapter 3

Sharing the air

Duty cycle and dwell time rules, and the network LoRaWAN builds on top.

  1. Locked265 XP

    Duty cycle and the law

    The airwaves are shared, and the law says how much of them you may use. A 1 percent duty cycle guard as the EU 868 MHz rules require, and the US 915 MHz 400 ms dwell limit checked with the airtime formula.

    0 of 6 steps

  2. ProjectLocked636 XP

    What LoRaWAN adds

    LoRa is the radio; LoRaWAN is the network on top. A LoRaWAN-shaped exchange on two plain radios: the frame, the frame counter, Class A receive windows, a queued downlink and an ACK. Explained and modeled, not run.

    0 of 8 steps

4 questions, graded as you go.
Chapter 4

Boss project

An ocean buoy reporting to a shore station.

  1. Locked303 XP

    Boss: an ocean buoy

    A buoy at sea reads its wave sensor and reports to a shore station with an LCD: binary frames, a duty cycle budget, a storm mode that reports faster and lights the shore's storm lamp, and an acknowledged SOS.

    0 of 7 steps

3 questions, graded as you go.
Syllabus

Every lesson in the course

All 7 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

The radio

  1. Spread spectrum: chirps across the seaTwo Unos, two LoRa radios and no wire: a buoy pings the shore every two seconds. What a chirp is, what the spreading factor buys, and how LoRa hears signals below the noise.
  2. SX1278 setup, register by registerNo library: the buoy sets up its SX1278 from the datasheet with plain SPI. Reset, version check, LoRa mode, the frequency in three bytes, the modem config, and a packet sent through the FIFO.
Chapter 2

Airtime and packets

  1. Spreading factor and airtimeThe datasheet formula for time on air, worked out for SF7 to SF12 and two coding rates: why one packet at SF12 takes as long as twenty-four at SF7, and why both ends must agree.
  2. Packets and IDsLoRa has no addresses: everyone hears everything. Pack readings into eight binary bytes with a destination, a source, a sequence number and a type, drop what is not yours, and count lost packets.
Chapter 3

Sharing the air

  1. Duty cycle and the lawThe airwaves are shared, and the law says how much of them you may use. A 1 percent duty cycle guard as the EU 868 MHz rules require, and the US 915 MHz 400 ms dwell limit checked with the airtime formula.
  2. What LoRaWAN addsLoRa is the radio; LoRaWAN is the network on top. A LoRaWAN-shaped exchange on two plain radios: the frame, the frame counter, Class A receive windows, a queued downlink and an ACK. Explained and modeled, not run.
Chapter 4

Boss project

  1. Boss: an ocean buoyA buoy at sea reads its wave sensor and reports to a shore station with an LCD: binary frames, a duty cycle budget, a storm mode that reports faster and lights the shore's storm lamp, and an acknowledged SOS.
Kits

Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

Have a kit already?

Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.

See every kit
Questions

About LoRa long-range radio

Is LoRa long-range radio free?

Yes. All 7 lessons of LoRa long-range radio are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need a real Arduino Uno R3?

No. Every lesson runs on a simulated Arduino Uno R3 with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.

How long does LoRa long-range radio take?

About 7 hours: 7 lessons in 4 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

What will I build?

Each chapter ends in a project that puts it together: SX1278 setup, register by register, Packets and IDs and What LoRaWAN adds.

Where do I start?

With "Spread spectrum: chirps across the sea", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.