Skip to main content

Wireless — Radio Links

For device-to-device links without wires, NodeBlue ships three radio families plus a Bluetooth LE stack on nRF52 boards. Each one fills a different niche:

FamilyRangeLatencyBandwidthBest for
NRF24 / NRF52 — NodeBlue protocol10–100 m< 1 msHigh (up to ~2 Mbps)Gaming input, SimHub-grade telemetry, wireless wheels, multi-channel device-to-device
Bluetooth LE (nRF52 only)10–30 m7–30 msLowPhones, PCs, OS-level Bluetooth peripherals
LoRa (RFM9X)100 m – several km100 ms+Very low (kbps)Long-range telemetry, low-power sensors

The first one is the workhorse for serious wireless projects — most of this tutorial covers it.

The NodeBlue radio protocol​

NodeBlue defines its own packet protocol on top of Nordic's raw RF (the nRF24L01+ wire format, also natively supported by nRF52 SoCs via Enhanced ShockBurst). The design goals:

  • Higher responsiveness and bandwidth than BLE, while keeping the same simplicity.
  • Multiplex several logical data streams over one physical link, with independent reliability per stream.
  • One protocol across chip families — an nNRF24 peer talks to an nNRF52 peer with no glue code.

Packet format​

Each RF packet is 32 bytes (the nRF24 hardware limit). NodeBlue uses 1 byte for the protocol header (carrying the software channel id, packet id and a couple of flags) and leaves 31 bytes for payload.

Software channels​

A single radio link carries up to 8 software channels (numbered 0–7). Each channel is a logically independent byte stream — like having 8 cables between the two boards over the same antenna pair. In the module's edit dialog you configure per-channel:

Per-channel settingEffect
Packet sizeThe payload size used on this channel. Channels with smaller packets fit more transmissions per second.
ReliableIf on, every packet is acknowledged and retransmitted on failure (slower but lossless). If off, packets are fire-and-forget (faster, ideal for input events where the next packet supersedes a missed one).

In a typical wireless wheel design you'd put button presses on an unreliable, tiny-packet, low-latency channel and display / LED stream data on a reliable, larger-packet channel — the two streams share the same antenna without interfering.

Cross-compatibility — NRF24 ↔ NRF52​

Because both modules speak the same on-air protocol, the cheap and the powerful can talk to each other:

  • A battery-powered sensor with a cheap nRF24L01+ breakout (€2 module on SPI) sends data to…
  • An nRF52 board (which has the radio and USB built-in) that appears to the host PC as a USB gamepad / keyboard / CDC serial — no external radio chip required on the receiver side.

That asymmetry is the key to cheap, plug-and-play wireless peripherals.

NRF24​

The nNRF24 module drives an nRF24L01+ breakout (or PA+LNA variant for more range). It needs SPI plus two GPIOs (CE, CS).

ParameterDescription
SPI / MISO / MOSI / SCKWhich SPI bus the chip is on, and its pins.
CE pin / CS pinThe two extra GPIOs the radio needs beyond SPI.
ChannelRF channel (0–125). Pick different channels for non-interfering links.
ModeMaster (initiates) / Slave (responds).
Data rate250 kbps / 1 Mbps / 2 Mbps. Lower = more range, higher = lower latency.
Tx Power-18 to +0 dBm (or +20 dBm with a PA module).
Address width / CRCStandard nRF24 link-layer settings — keep the defaults unless you need to interoperate with non-NodeBlue gear.
Packet size 0..7Per-software-channel payload size (0 disables the channel).
Reliable 0..7Per-software-channel ACK behaviour.

NRF52​

Boards built on the Nordic nRF52 family (Adafruit nRF52840 Feather Express, MakerDiary, etc.) have the radio on-chip plus USB device support. The nNRF52 module exposes exactly the same protocol as nNRF24 — same channel concept, same packet size / reliability options — minus the SPI/CE/CS wiring.

ParameterDescription
ChannelRF channel (0–127).
ModeMaster / Slave.
Data rate1 Mbps / 2 Mbps.
Tx Powerup to +8 dBm.
Packet size / Reliable per channelSame 8 channels as nNRF24.

Combined with the on-chip USB, the same board can be a wireless radio peer AND a USB HID gamepad / keyboard / CDC serial port at the same time — that's what makes nRF52 boards the natural choice for the receiver in a wireless peripheral.

Latency and bandwidth — why this beats BLE for input devices​

The protocol uses tiny on-air times (one 32-byte packet at 2 Mbps takes well under 200 µs). With unreliable channels and short payloads, button-press round-trip latency drops below 1 ms. BLE, by comparison, is bounded by its connection interval (7.5 ms minimum, often higher in practice) — fine for typing on a Bluetooth keyboard, marginal for a sim-racing wheel.

For bulk data the gap is just as wide. Streaming SimHub LED / motor / seven-segment / Nextion frames over BLE UART regularly chokes — packets are dropped, the display lags. The NodeBlue protocol moves those same frames reliably because the reliable channels do exactly what their name says, and bulk channels happily run alongside latency-critical ones thanks to the channel multiplexing.

Simagic wheel-base emulation​

NodeBlue ships a packer module — nSimagicPacker — that lays out 32 buttons + 2 analog axes into the byte format used by Simagic's wireless wheel-base radio protocol. Wire its inputs to your buttons and axes, route its output buffer to an nNRF24 (or nNRF52) configured to match the Simagic on-air protocol, and you have a wireless wheel a Simagic base will accept just like one of theirs.

The same pattern lets you build receivers — a board with nNRF24 (or nNRF52) listening to a Simagic-format stream and forwarding it to USB HID, screens, motors, anything.

Bluetooth Low Energy​

When you have to talk to phones, PCs, or anything that only speaks Bluetooth Low Energy, the nRF52 chip has a full BLE stack. NodeBlue exposes three high-level services:

ModuleWhat it offers
nBLEuartA generic byte-stream service (the Nordic UART Service, NUS).
nBLEKeyboardStandard HID keyboard, paired like any Bluetooth keyboard.
nBLEGamePadStandard HID gamepad.

The NodeBlue IDE itself uses nBLEuart to talk to BLE boards for live dashboard interaction. Examples/BLE/BLESensors and Examples/BLE/BLEKeyboard_Batt show typical wirings.

tip

For board-to-board links, prefer the NodeBlue radio protocol above. Only fall back to BLE when the other end is something you don't control — a phone, a laptop, an OS-level peripheral.

LoRa — RFM9X​

For very long range with very little bandwidth, the nRFM9X module drives an SX1276/SX1278 LoRa radio (typical Adafruit/HopeRF Feather breakouts). It uses the same NodeBlue master/slave protocol structure on top of LoRa's chirped-spread-spectrum physical layer.

ParameterDescription
SPI + CS / IRQ / Reset pinsWiring to the radio chip.
FrequencyCarrier frequency in MHz. Match your region (433 / 868 / 915).
Signal BWChannel bandwidth (kHz). Wider = more bits per second; narrower = more range.
Spreading FactorLoRa's main range/speed knob (6 to 12). Higher = more range, much slower.
Coding RateFEC overhead (4/5 to 4/8). Higher = more robust, more overhead.
Tx PowerUp to +20 dBm.
ModeMaster / Slave.

LoRa is for "this sensor is in a field two kilometres away and reports a value every minute" — not for streaming.

Picking between them​

If you need…Reach for…
Cheap two-board link, click-fast latencyNRF24 ↔ NRF24
One side has to look like USB to a PCNRF24 ↔ NRF52 (NRF52 as the receiver)
Plug-and-play wireless wheelNRF24/NRF52 + nSimagicPacker
Talk to a phone or a laptop's native BluetoothnBLEuart / nBLEKeyboard / nBLEGamePad
Telemetry from 1 km awaynRFM9X (LoRa)

For IP-based links (Ethernet, WiFi, UDP, MQTT) — those run on top of completely different hardware. See IP networking.