D13 · Lesson 4 · Solar sensor node
Choosing the node's bit rate and transmit schedule, receiver sensitivity from the noise floor, free-space and ground-level range, the time each packet spends on the air, the energy it costs, and how range and battery life trade against each other
The radio is usually the hungriest part of a sensor node: tens of milliamps while it transmits, against microamps asleep. Its two big choices pull against each other. A slower bit rate makes the receiver more sensitive, so the link reaches farther, but every packet stays on the air longer and costs more energy. A good design picks the slowest rate that still fits the battery, and a transmit schedule that fits the data.
- The link margin of an 868 MHz node at 14 dBm with 2.15 dBi antennas and 1 dB of cable loss, against distance, in free space and over flat ground with antennas 2 m and 10 m high (the two-ray model of D9, valid beyond a few hundred meters).
- The receiver's sensitivity is dBm: thermal noise in the bit rate's bandwidth, a 6 dB noise figure and 10 dB of SNR for the demodulator.
- Lower the bit rate: every factor of 4 buys 6 dB, which doubles free-space range but only multiplies ground-level range by √2. The airtime readout shows what it costs.
Predict
A node lowers its bit rate from 4800 to 1200 bit/s. How much does its range over flat ground grow?
A quarter of the bit rate is a quarter of the noise bandwidth, 6 dB more sensitivity. Over flat ground the received power falls as , so 6 dB buys a factor of = 1.41 in distance; in free space () it would double. Meanwhile each packet takes four times as long to send.
Name it
Sensitivity
The receiver needs a certain SNR in a bandwidth about equal to the bit rate R, above the thermal floor of −174 dBm/Hz plus its noise figure:
Range
The allowed path loss is . Free space loses , so range scales as ; near the ground, beyond the breakpoint (232 m for 2 m and 10 m at 868 MHz), loss is and range scales as (D9). Raising an antenna helps as much as more power.
Airtime and energy
A frame of bits (D12's framing with a CRC) takes seconds. Each transmission costs times that, and averaged over the reporting interval it adds to the node's current.
Choosing
Pick the slowest bit rate whose airtime still fits the energy budget and any duty-cycle rule (the 868 MHz band limits most devices to 1% of the time on air), and report no more often than the data needs.
Worked example
What's the free-space range at 4800 bit/s with a 20 dB margin, and the ground-level range at 10 dB?
Show the solution
- Sensitivity at 4800 bit/s.
- Free-space range. With a 20 dB margin the allowed loss is which free space reaches at 23.1 km.
- Ground-level range. With 10 dB of margin the allowed loss is 128.5 dB:
- At 1200 bit/s. The ground-level range grows to 10.3 km.
Answer 23.1 km in free space with a 20 dB margin, and 7.3 km near the ground with 10 dB (10.3 km at 1200 bit/s).
Worked example
The node sends 20 bytes every 10 minutes at 4800 bit/s, drawing 40 mA while transmitting, 2.05 mA for 5 ms of processing and 0.052 mA asleep. How long does a 2000 mAh battery last?
Show the solution
- Frame time.
- Radio's share. Averaged over 600 s:
- Processing's share.
- Total, with about 52 µA asleep.
- Battery life.
- At 1200 bit/s. The radio's share quadruples to 13.3 µA and the life drops to 1276 days.
Answer about 1506 days at 4800 bit/s, and 1276 days at 1200 bit/s.
Check
Work out the node's sensitivity, range, airtime and battery life.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
A receiver has a 3 dB noise figure and needs 10 dB of SNR at 1200 bit/s. What's its sensitivity?
Check
How long is a frame with 20 payload bytes and 80 bits of framing on the air at 1200 bit/s?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
A node divides its bit rate by 4. By what factor does its range over flat ground grow?
Check
A radio draws 40 mA for 20 ms every 3600 s. How much does it add to the node's average current?
Write units the way you normally would: 1.5 µA, 1500 nA and 0.0015 mA are the same answer.
Check
A link sends 10 dBm at 433 MHz over 5 km between 0 dBi antennas; the receiver's sensitivity is −110 dBm.
(a)
What is the free-space path loss, in dB?
(b)
What is the link margin, in dB?
Check
A free-space link closes at 1 km with 12 dB of spare margin. How far could it reach with zero margin?
Write units the way you normally would: 1.5 km and 1500 m are the same answer.
Explain why
Why does a lower bit rate reach farther, and what does it cost?
The receiver's noise power is proportional to the bandwidth it listens to, and that bandwidth is set by the bit rate, so slowing the data narrows the bandwidth and lets less noise in. The same received signal then has more SNR, so the link still works at a weaker signal, which means a greater distance. The cost is time: each packet takes proportionally longer to send, so the transmitter is on longer and uses more energy per packet, and the channel is occupied longer, which matters for duty-cycle limits and for other nodes sharing it.
Practice
Keep practicing
8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.