Skip to content

Wireless Link

You'll get two boards talking over a cheap radio with a packet format you designed, count the packets that go missing, and put a sensor somewhere a wire can't reach.

About

A wire is the best link there is, right up to the wall or the garden. An nRF24L01 module costs about a dollar, a pair of LoRa modules about fifteen, and two ESP32s can use ESP-NOW with nothing extra. Whatever you pick, the skill is the same: define a packet, number it, checksum it, and count what goes missing, because something always does. The nRF24 is famous for failing on a breadboard until you solder a 10 uF capacitor across its power pins, and that's the first thing to try when it doesn't work. This is a short-range data link on license-free bands; voice, long range and the amateur bands live in Amateur Radio.

At a glance

Per requirement
35 XP
Completion bonus
300 XP
Requirements
6
Takes
Two or three weeks
Skill level
Intermediate (months of practice)
Cost
Cheap (under $10)
Supplies
You need some
Where
At home
Other people
On your own
Locked for now
Earn two more Uncommon badges in Microcontrollers & Robotics to open this one. Log in to see how far along you are.

Requirements

  1. 1
    Send hello from one board to another and print it on the receiver. Two nRF24L01 modules on 3.3 V with a 10 uF cap at each, two LoRa modules, or two ESP32s on ESP-NOW. Match the channel and the address on both ends. Take a screenshot of the receiver's serial monitor with the message. Photo
  2. 2
    Design a packet with a sequence number, a sensor value and a checksum, and draw it as a byte map. A struct with a 16-bit counter, a 16-bit reading and an 8-bit checksum (the XOR of the other bytes is enough) is a fine start. Draw the bytes in order on paper. Take a photo of the byte map. Photo
  3. 3
    Count lost packets over an hour and report the loss rate. Send one packet a second. On the receiver, every gap in the sequence number is a lost packet, and every bad checksum is a corrupted one. Take a screenshot of the hour's totals. Photo
  4. 4
    Walk the transmitter away and find the range where loss passes ten percent. Indoors through walls and outdoors in the open are different numbers, so get both. Take a photo of the far end at the limit, with the distance in your note. Photo
  5. 5
    Add an acknowledgement and a retry so a lost packet gets resent. The receiver sends the sequence number back; the sender retries up to three times before giving up and logging it. Film the counts on both ends staying in step while you briefly block the signal with your body or a metal pot. Video
  6. 6
    Put a sensor somewhere a wire can't reach and run it on batteries for a week. The mailbox, the greenhouse, the garage or a bird box. Sleep the transmitter between sends so the batteries last. Take a photo of the node in place and a screenshot of the week's readings at the base. Photo