Knowledge / Electronics and Communication Engineering / Wireless sensor networks

Wireless sensor networks

Electronics and Communication Engineering (B.E./B.Tech) · Systems · free study notes for exams, placements and interviews

In short

A wireless sensor network (WSN) is a collection of small, battery-powered nodes that each sense a physical quantity, process it locally and relay it over a low-power radio, multi-hop, to a sink or gateway. The defining constraint is energy: a node's radio dominates its power budget, so protocols, topologies and duty cycles are all designed to keep the transceiver off. WSNs are the hardware-and-protocol layer under India's smart metering, smart city and industrial IoT deployments, and are examined in ECE electives on WSN/IoT, in GATE/ESE communication questions on IEEE 802.15.4 and energy models, and in placement interviews at Tata Elxsi, L&T Technology Services, Bosch, Honeywell, Siemens, Qualcomm, HCL and embedded startups.

Explained

Node architecture and what drains the battery

Why WSNs differ from ad hoc and cellular networks

Physical layer, IEEE 802.15.4 and the standards stack

MAC protocols for WSN

Routing and data dissemination

Coverage, localization, synchronization and security

Key points

Formulas and examples

First-order radio energy model: E_TX(k, d) = k·E_elec + k·ε_amp·dn ; E_RX(k) = k·E_elec
k = packet size (bits), d = distance (m), E_elec = electronics energy per bit (typically 50 nJ/bit), ε_fs = 10 pJ/bit/m² (n = 2, free space), ε_mp = 0.0013 pJ/bit/m⁴ (n = 4, multipath)
Crossover distance: d₀ = √(ε_fs / ε_mp) — use n = 2 below d₀ and n = 4 above it (≈ 87.7 m for the values above)
Friis / path loss: P_r = P_t·G_t·G_r·λ²/(4πd)² ; PL(dB) = 32.44 + 20·log₁₀(f in MHz) + 20·log₁₀(d in km)
Log-distance RSSI model: RSSI(d) = RSSI(d₀) − 10·n·log₁₀(d/d₀) ; n = path-loss exponent (2 free space, 2.7-4 indoors)
Node lifetime: T = Battery capacity (mAh) / Average current (mA) ; I_avg = D·I_active + (1 − D)·I_sleep, D = duty cycle
Duty cycle: D = T_active / (T_active + T_sleep)
Energy per useful bit: E_bit = total energy consumed / total bits delivered to sink
LEACH cluster heads: P_i(t) = p / (1 − p·(r mod 1/p)) for nodes not yet CH in the round-group; expected CHs per round = p·N ; optimal clusters k_opt ≈ (√N/√(2π))·√(ε_fs/ε_mp)·M/d_toSink²
Coverage: expected area coverage with N nodes of sensing radius Rs in area A: C = 1 − exp(−N·πRs²/A)
Connectivity (random deployment): a network of N nodes in area A is connected with high probability if the transmission radius satisfies πr²·N/A ≥ ln N
Trilateration: (x − x_i)² + (y − y_i)² = d_i², i = 1..3 — subtract equations pairwise to get two linear equations in x, y
802.15.4 throughput ceiling: useful rate = (payload bits)/(frame time + backoff + ACK + IFS); 250 kbps raw typically yields 50-120 kbps of application data

Example 1 — Battery life from a duty cycle. A node runs on 2 AA cells, 2,500 mAh. It wakes every 60 s, stays active 300 ms drawing 25 mA, and sleeps at 6 µA.

Example 2 — One long hop versus multi-hop (first-order model). Send a 4,000-bit packet over 100 m, E_elec = 50 nJ/bit, ε_fs = 10 pJ/bit/m², ε_mp = 0.0013 pJ/bit/m⁴, d₀ = 87.7 m.

Example 3 — LEACH cluster heads and round energy. N = 100 nodes, CH probability p = 0.05, one round = one data frame per node.

Example 4 — RSSI ranging. A node measures RSSI = −75 dBm. Calibration: RSSI = −45 dBm at d₀ = 1 m, path-loss exponent n = 3.

Example 5 — 802.15.4 airtime and channel load. A 2.4 GHz network, 250 kbps, 50 nodes each sending a 100-byte frame every 10 s.

TechnologyBand (India)Data rateRangeTopologyTypical use
IEEE 802.15.4 / ZigBee2.4 GHz, 865-867 MHz20-250 kbps10-100 mMesh/tree/starBuilding automation, metering
6LoWPAN / Thread2.4 GHz250 kbps10-100 mIPv6 meshIP-native IoT, lighting
BLE / BLE Mesh2.4 GHz125 kbps-2 Mbps10-50 mStar/meshWearables, beacons
LoRaWAN865-867 MHz0.3-50 kbps2-15 kmStar-of-starsSmart meters, agriculture
NB-IoT / LTE-MLicensed cellular20 kbps-1 Mbps (LTE-M peak)CellularStar (operator)Utility metering, tracking
Wi-Fi (low power)2.4/5 GHzMbps30-100 mStarCameras, mains-powered sensors
CriterionFlat routing (Directed Diffusion)Hierarchical (LEACH)
StructureNo roles, gradientsCluster heads rotated per round
OverheadInterest flooding each queryCH advertisement + join each round
AggregationAt any forwarding nodeAt cluster heads
ScalabilityModerateGood for large N
WeaknessFlooding cost, state per interestCH near sink drains; needs sink in radio range

Where it is used

Interview questions

Common mistakes

Related topics

Mobile communication: 2G to 5G · Embedded systems and microcontrollers · Computer networks and TCP/IP · Antennas and RF propagation · Internet of Things architecture and protocols · Measurements and instrumentation

Open in the Knowledge reader →Find jobs →