Hexagonal sensor deployment uses 23% fewer nodes than grid layout while achieving 100% coverage (spacing R x sqrt(3) vs R x sqrt(2)). Coverage does not guarantee connectivity – ensure Rc >= 2Rs. Duty cycling extends battery life by 100x: a 1% duty cycle turns 4-day battery life into over a year, using sleep/wake state machines that keep the radio off 99% of the time.
25.1 Learning Objectives
By the end of this chapter, you will be able to:
Plan Sensor Deployment: Calculate optimal sensor placement using grid and hexagonal patterns for complete coverage
Analyze Coverage vs Connectivity: Differentiate sensing range from communication range and apply the R_c >= 2Rs rule to prevent isolated nodes
Implement Duty Cycling: Design power state machines that extend battery life by 100× through sleep scheduling
Calculate Battery Lifetime: Estimate network operational duration based on duty cycle parameters and consumption profiles
Integrate Power Harvesting: Design solar-powered nodes for energy-neutral operation
For Beginners: WSN Deployment & Energy
Sensor network deployment and sizing is about determining how many sensors you need and where to place them. Think of planning a sprinkler system for a garden – too few sprinklers leave dry spots, too many waste water and money. Getting the right number and placement of sensors ensures complete monitoring without unnecessary cost.
25.2 Prerequisites
Before diving into deployment and energy topics, you should be familiar with:
Hexagonal deployment uses 23% fewer nodes than grid – spacing of R x sqrt(3) for hexagonal vs R x sqrt(2) for grid both achieve 100% coverage, but hexagonal is more efficient
Coverage does not guarantee connectivity – the rule R_c >= 2 x R_s (communication range at least 2x sensing range) prevents isolated sensor islands that can detect events but cannot report them
Duty cycling extends battery life 100x – a 1% duty cycle with 20mA active current and 1 uA sleep current gives 0.201 mA average draw, turning days of battery into over a year
Sensor Squad: Placing Sensors Like a Pro!
Sammy the Sensor needs to watch over a big field. Where should he and his friends go?
Lila the Listener explains: “Imagine you’re playing hide and seek in a huge park. You need to place lookouts so EVERY spot is watched by at least one person.”
Two patterns for placing lookouts:
Square Grid: Like a checkerboard – lookouts at every intersection. Easy to plan, but you need more people.
Hexagon Pattern: Like a honeycomb – lookouts in a zigzag pattern. Uses 23% FEWER people to watch the same area! Nature chose hexagons for beehives because they’re the most efficient shape.
Max the Messenger warns: “But just because your lookouts can SEE everywhere doesn’t mean they can TALK to each other! Imagine two lookouts can see 10 meters but can only shout 8 meters. They can see a thief but can’t tell anyone!”
Bella the Battery shares her energy-saving trick: “I tell Sammy to SLEEP most of the time! He sleeps for 99 seconds, then wakes up for just 1 second to check the temperature and send a message. This is called duty cycling and it makes my energy last from 4 DAYS all the way to over a YEAR!”
Common Misconception: “100% Coverage Guarantees Network Connectivity”
The Myth: Many beginners assume that if sensor coverage reaches 100% of an area, the network will automatically be fully connected and functional.
The Reality: Coverage and connectivity are independent constraints. A 2008 study by Kumar et al. analyzing 1,000+ WSN deployments found that 23% of networks achieved full sensing coverage but had disconnected regions where nodes couldn’t communicate with the base station.
Real-World Impact:
Smart Agriculture Project (2019): 500-node soil moisture network in California had 98% sensing coverage but 37 nodes formed isolated islands due to insufficient communication range
Lesson Learned: The rule of thumb R_c ≥ 2 × R_s (communication range must be at least 2× sensing range) prevents this issue
Why It Happens: Communication range (R_c) and sensing range (R_s) are determined by different hardware components. A temperature sensor might detect at 10m radius while the radio only transmits reliably to 8m, creating coverage without connectivity.
Solution: Always verify both coverage and connectivity during deployment planning. Use connectivity algorithms like spanning tree validation or multi-hop path analysis to ensure all nodes can reach the base station.
25.3 Deployment Planning
⏱️ ~8 min | ⭐⭐ Intermediate | 📋 P05.C32.U03
Key Concepts
Energy Budget: Total energy available (battery capacity in mAh) divided by required lifetime — sets per-operation energy limits
Radio Energy: Dominant consumption source — transmission costs 10-100 mW; 1 bit transmitted costs as much as 3,000 CPU instructions
Duty Cycling: Alternating sleep (µW) and active (mW) states to reduce average power consumption by 90-99%
Energy-Delay Trade-off: Sleeping saves energy but increases latency; optimal duty cycle balances both for the application
Residual Energy: Remaining battery capacity — used by routing protocols to avoid overloading nodes close to depletion
Energy Harvesting: Supplementing batteries with ambient energy (solar, vibration) to extend or eliminate battery replacement
Transmission Power Control: Adjusting radio output power to minimize energy while maintaining link quality — saves 50-80% over fixed maximum power
25.3.1 Coverage Analysis
Proper sensor placement ensures complete area coverage:
Figure 25.1: Sensor deployment pattern comparison: grid vs hexagonal for 100% coverage
Alternative View: Coverage vs Node Count Calculator
This variant provides a practical calculation framework for determining the number of sensors needed based on area and deployment pattern.
Quick Formula Reference: | Pattern | Nodes Needed | When to Use | |———|————–|————-| | Grid | Area / (2R²) | Simple deployment, rectangular fields | | Hexagonal | Area / (2.6R²) | Cost-optimized, complex terrain | | Random | Area / (1.5R²) + 20% | Aerial drop, hostile terrain |
Coverage Calculation:
Deployment Pattern
Formula
Coverage Efficiency
Grid
d = R × √2
100%
Hexagonal
d = R × √3
100%
Random
Varies
70-90%
Triangular
d = R × √3
100%
Where d = distance between nodes, R = sensing radius
Example Deployment Calculation:
Given:
- Area: 100m × 100m = 10,000 m²
- Sensing range: 10m radius
- Pattern: Hexagonal grid
Calculation:
- Node spacing: d = 10m × √3 ≈ 17.3m
- Nodes per row: 100m / 17.3m ≈ 6 nodes
- Number of rows: 100m / 15m ≈ 7 rows
- Total nodes needed: 6 × 7 = 42 sensors
Add 10% redundancy: 46 sensors deployed
25.3.2 Connectivity Requirements
Beyond coverage, nodes must maintain communication paths back to the sink or gateway.
Symbol
Meaning
Typical design rule
R_s
Sensing range
Maximum distance at which events can be detected
R_c
Communication range
Maximum distance for reliable radio links
In many grid deployments we aim for:
Connectivity rule of thumb:R_c ≥ 2 × R_s.
If R_c is much smaller than this, you can achieve full sensing coverage but still have islands with no multi-hop path to the base station.
The diminishing returns are clear: reducing duty cycle from 100% to 10% gives 10× gain, but further reducing to 1% gives another 10× for a total 100× improvement. However, below 1%, sleep current (1 µA) becomes the limiting factor, so reducing active time further yields minimal benefit unless sleep current is also reduced.
Worked Example: LEACH Cluster Head Rotation Planning
Scenario: A precision agriculture deployment uses LEACH protocol with 100 soil sensors. After 3 months, the network shows uneven battery depletion - some nodes are at 30% while others remain at 80%. Diagnose the rotation problem and calculate correct LEACH parameters.
Given:
100 sensor nodes, uniformly distributed across field
Target: 5 cluster heads per round (p = 0.05)
Round duration: 20 seconds
Cluster head energy per round: 15 mJ (aggregation + long-range TX to gateway)
Regular node energy per round: 2 mJ (sense + short-range TX to cluster head)
Battery capacity: 7,400 mJ per node (energy budget for this simulation period)
Center CH nodes: 15 members × 0.5 mJ/member = 7.5 mJ aggregation
Center nodes consume 1.9× more energy as CH
Calculate corrected threshold with energy weighting: \[T(n) = \frac{p}{1 - p \times (r \mod \frac{1}{p})} \times \frac{E_{current}(n)}{E_{average}}\]
Low-energy nodes get lower threshold (less likely to become CH)
High-energy nodes get higher threshold (more likely to become CH)
Verify energy balance after correction:
20-round epoch energy (uniform): 53 mJ
20-round epoch energy (density-adjusted): 48 mJ (edge) to 58 mJ (center)
Variance reduced from 40% to 8%
Calculate expected network lifetime:
Original (unbalanced): First node dies at 7,400 / 70 mJ/epoch = 105.7 epochs × 400s = 42,286 s = 11.7 hours
Corrected (balanced): First node dies at 7,400 / 55 mJ/epoch = 134.5 epochs × 400s = 53,818 s = 15.0 hours
28% lifetime improvement from fair rotation
Result: Adding residual energy weighting to LEACH threshold calculation improves network lifetime by 28% by preventing high-density region nodes from excessive cluster head duty.
Key Insight: Standard LEACH assumes uniform node distribution. Real deployments with non-uniform placement or varying cluster sizes require energy-aware threshold modifications. Monitor per-node battery levels during deployment and adjust p or add energy weighting to the threshold formula.
Worked Example: Gateway Placement Optimization
Scenario: A warehouse deploys 80 inventory tracking sensors across 4,000 m² (100m × 40m). Currently using one gateway at the entrance causes 6-hop routes and poor battery life. Determine optimal gateway count and placement for 2-year target lifetime.
Given:
Warehouse: 100m × 40m with sensors at 5m grid spacing (20 × 8 = 160 positions, 80 active)
Radio range: 8m (indoor metal shelving interference)
Result: Deploy 6 gateways at calculated positions. While initial hardware cost is highest ($1,200), total 2-year cost is lowest due to zero battery replacements. The 6-gateway configuration achieves the 2-year target with 40% margin.
Key Insight: Gateway cost ($200 each) is often trivial compared to battery replacement labor, especially in hard-to-access locations like warehouse ceilings. Calculate total cost of ownership (TCO) including maintenance before minimizing gateway count. The “extra” gateways pay for themselves through reduced maintenance visits.
25.4.3 Power Harvesting Integration
Solar-powered nodes can achieve near-perpetual operation when harvested energy covers long-term consumption:
Figure 25.3: Solar power harvesting architecture with MPPT charger and energy balance calculation
Design guidelines:
Aim for energy-neutral operation: average E_harvested ≥ E_consumed over days/weeks.
Include margin (for example, harvest 1.5× the expected consumption) to tolerate cloudy periods.
Combine harvesting with duty cycling and adaptive sampling so that consumption stays inside the energy budget.
25.5 Knowledge Check
Question 1: Deployment Calculation
Question 2: Energy Estimation
Question 3: Coverage vs Connectivity
Match: Deployment and Energy Concepts
Order: WSN Deployment Planning Workflow
Worked Example: Solar Harvesting Feasibility for Agricultural WSN
Scenario: Evaluate solar harvesting for 100-node soil moisture monitoring network in California vineyard. Determine if perpetual operation is feasible.
Given:
Location: Central California (avg 6 peak sun hours/day)
Battery sizing for 5 days autonomy (cloudy period): \[E_{battery} = 23.76 \text{ mWh/day} \times 5 \text{ days} = 119 \text{ mWh}\]\[\text{Battery capacity} = \frac{119 \text{ mWh}}{3.3\text{V}} = 36 \text{ mAh}\] Use 200 mAh LiPo (5.6× margin for aging/temperature derating)
Component Selection:
Solar panel: 50mm × 70mm (0.5W) – $4.50/unit
MPPT charger: BQ25570 – $2.80/unit
Battery: 200 mAh 3.7V LiPo – $3.20/unit
Total per-node cost: $10.50
Decision: Small panel (0.5W) provides 82× margin in summer, 20× in winter. Deploy with 200 mAh battery for 5-day autonomy. Total solar system cost ($10.50 × 100 = $1,050) is recovered vs. battery replacement in 1.5 years (vs. 4× annual replacement @ $300/year for non-solar).
Battery lifetime: 2,500 mAh / I_avg = ? hours = ? years
Solar Feasibility:
Daily energy: I_avg × 24h = ? mAh/day
Voltage: 3.3V → Energy = ? mWh/day
Solar panel needed (6 sun-hours, 65% efficiency): ? mW panel
Is 500mW panel (50mm × 70mm) sufficient?
What to Observe:
How much money does hexagonal save vs grid?
What happens if R_c < 2Rs? (Try R_c = 80m)
How does duty cycle affect battery life? (Compare 1%, 2%, 5%)
Extension: Design gateway placement to minimize maximum hop count: - Try 1 gateway, 2 gateways (ends), 3 gateways (0m, 2500m, 5000m) - Calculate worst-case hops for each configuration - Which provides best latency-vs-cost trade-off?
1. Estimating Battery Life from Average Current Draw
Average current calculation ignores burst transmissions — a node averaging 100 µA may draw 30 mA during transmissions, and if coin cell internal resistance is high, voltage sag during bursts causes premature brownout resets. Always measure peak current and verify voltage stays above minimum at the worst-case load.
2. Optimizing Radio While Ignoring Sensor Power
RF optimization efforts focus on radio (dominant source) but ignore sensor power — a continuous soil moisture sensor drawing 3 mA consumes more than the radio in many duty-cycled designs. Characterize every subsystem’s power consumption before optimizing; the highest consumer is not always the radio.
3. Neglecting Leakage Current in Long-Lifetime Designs
For 5-year battery life targets, quiescent leakage of voltage regulators (1-100 µA) becomes significant — a 100 µA leakage on a 2,500 mAh battery limits life to 2.85 years regardless of how well you optimize the active duty cycle. Select ultra-low-quiescent regulators (<1 µA) for multi-year deployments.
🏷️ Label the Diagram
Code Challenge
25.10 Summary
This chapter covered WSN deployment planning and energy management:
Deployment Patterns: Grid (d = R × √2) and hexagonal (d = R × √3) patterns both achieve 100% coverage, with hexagonal using 23% fewer nodes
Coverage vs Connectivity: Independent constraints require both sensing coverage AND communication paths - use R_c ≥ 2 × R_s rule
Duty Cycling: State machine design with 1% duty cycle extends battery life from days to years by spending 99% of time in 1µA sleep mode
Battery Estimation: Average current calculation determines lifetime - 2000mAh battery with 0.2mA average draw lasts ~400 days
Gateway Optimization: Adding gateways reduces hop count and relay burden, often lowering total cost of ownership despite higher hardware investment
Power Harvesting: Solar panels with 1.5× margin over consumption enable energy-neutral perpetual operation