Wireless Notes
Build complete wireless weather station with outdoor solar-powered sensors, LoRa wireless link, indoor display unit, data logging, demonstrating wireless link design and energy harvesting for students.
Build a complete solar-powered wireless weather station that measures temperature, humidity, pressure, wind speed, rainfall, and UV index, transmitting data wirelessly to an indoor display unit and cloud dashboard.
System Architecture
| Aspect | Detail |
|---|---|
| Outdoor Unit | Solar-powered sensor node with wireless transmitter |
| Indoor Unit | Receiver with OLED/TFT display + WiFi for cloud upload |
| Wireless Link | nRF24L01+ (2.4 GHz, 100m) or LoRa SX1276 (868 MHz, 2km) |
| Sensors | BME280, anemometer, rain gauge, UV sensor, wind vane |
| Display | 2.4" TFT color display or e-ink for low power |
| Power (Outdoor) | 3.7V 18650 + 6V 2W solar panel + TP4056 charger |
| Power (Indoor) | USB 5V (always connected to mains) |
| Cloud Platform | Weather Underground or ThingSpeak |
Communication Flow
Wireless Communication Design
Choosing the Right Radio Module
The choice of wireless module determines range, data rate, power consumption, and reliability:
| Module | Frequency | Range (outdoor) | Data Rate | Power (TX) | Cost |
|---|---|---|---|---|---|
| nRF24L01+ | 2.4 GHz | 100-300m | 2 Mbps | 11.3 mA | $1 |
| nRF24L01+PA+LNA | 2.4 GHz | 1000m | 2 Mbps | 115 mA | $3 |
| LoRa SX1276 | 868 MHz | 2-10 km | 0.3-37.5 kbps | 120 mA | $5 |
| HC-12 | 433 MHz | 600m-1.8 km | 5 kbps | 100 mA | $4 |
For most home weather stations where the outdoor unit is within 50-100 meters of the indoor unit, the basic nRF24L01+ is ideal — it is inexpensive, low power, and provides more than enough data rate for sensor readings. For larger properties or farm deployments, LoRa provides multi-kilometer range.
nRF24L01+ Communication Details
The nRF24L01+ operates in the 2.4 GHz ISM band using GFSK modulation. Key features for our application:
- Auto-acknowledgment — The receiver automatically sends an ACK packet, so the transmitter knows data was received
- Auto-retransmit — If ACK is not received, the module retransmits up to 15 times automatically
- CRC checking — Hardware CRC-16 ensures data integrity
- 125 selectable channels — Choose a channel away from WiFi interference
- Power levels — Selectable from -18 dBm to 0 dBm (trade range for battery life)
- Payload size — Up to 32 bytes per packet (plenty for our sensor data)
Packet Structure Design
Our sensor data is packed efficiently into a single 32-byte nRF24L01+ packet:
Temperature is encoded as a signed 16-bit integer in units of 0.01°C (range: -327.68 to +327.67°C). This gives 0.01°C resolution without using floating point, saving bytes and processing time on the microcontroller.
Sensor Integration
BME280 — Temperature, Humidity, Pressure
The BME280 is a combined sensor measuring three parameters through a single I2C interface:
| Parameter | Range | Accuracy | Resolution |
|---|---|---|---|
| Temperature | -40 to +85°C | ±1.0°C | 0.01°C |
| Humidity | 0-100% RH | ±3% RH | 0.008% RH |
| Pressure | 300-1100 hPa | ±1 hPa | 0.18 Pa |
From pressure readings, we can derive altitude (using the barometric formula) and sea-level pressure (for weather predictions). Falling pressure indicates approaching storms; rising pressure indicates clearing weather.
Anemometer — Wind Speed
A cup anemometer generates pulses as it rotates — faster wind means faster rotation means more pulses per second. We connect the pulse output to an interrupt pin on Arduino. The conversion formula:
Wind Speed (m/s) = Pulses per second × Calibration Factor
For a typical 3-cup anemometer, one rotation (2 pulses) corresponds to approximately 2.4 km/h wind speed. The calibration factor depends on the specific anemometer and should be verified against a reference instrument.
Rain Gauge — Tipping Bucket
A tipping bucket rain gauge works like a see-saw. Rainwater collects in a small bucket; when it fills (typically 0.2mm of rain equivalent), the bucket tips, emptying itself and triggering a reed switch. We count switch closures per hour to calculate rainfall rate.
Rainfall (mm/hour) = Bucket tips per hour × 0.2mm per tip
UV Sensor (VEML6075)
The VEML6075 measures both UVA (315-400nm) and UVB (280-315nm) radiation via I2C. The UV Index is calculated from the weighted combination of UVA and UVB readings according to the WHO standard formula.
Solar Power System Design
Power Budget Analysis
The outdoor unit must operate continuously without external power:
| Component | Active Current | Sleep Current | Active Time per Cycle |
|---|---|---|---|
| Arduino Pro Mini (3.3V) | 4 mA | 0.006 mA | Always (when awake) |
| BME280 | 0.35 mA | 0.0001 mA | 50 ms (measurement) |
| nRF24L01+ TX | 11.3 mA | 0.0009 mA | 5 ms (transmission) |
| Total Active | ~16 mA | ~0.007 mA | 200 ms per 30s cycle |
Average current = (16mA × 0.2s + 0.007mA × 29.8s) / 30s = 0.114 mA
With a 2600mAh battery: Theoretical life without solar = 2600/0.114 = 22,807 hours ≈ 2.6 years!
A small 6V 2W solar panel charges the battery during daylight, providing essentially indefinite operation. Even in winter with only 3 hours of weak sunlight, the solar panel provides more than enough energy for the station's minimal consumption.
Solar Charge Controller
The TP4056 module manages battery charging with built-in overcharge protection (4.2V cutoff), over-discharge protection (2.5V cutoff), and constant current/constant voltage (CC/CV) charging profile. The charge current is set by a resistor on the PROG pin — 500mA is suitable for our 2W panel.
Indoor Receiver and Display
The indoor unit uses an ESP32 which provides:
- SPI interface for nRF24L01+ radio module
- I2C for OLED display or SPI for TFT color display
- Built-in WiFi for cloud data upload
- Sufficient memory for data logging and trend calculation
The display shows current readings, min/max values for the past 24 hours, trend arrows (rising/falling), and a simple weather prediction based on pressure changes.
Data Reliability and Error Handling
| Issue | Solution |
|---|---|
| Packet loss | Auto-retransmit (up to 15 attempts) |
| Sensor failure | NaN check before transmit, flag on display |
| Radio interference | Use channel 108+ (above WiFi channels) |
| Battery death | Low-battery flag in packet, display warning |
| Clock drift | Sequence numbers detect missed readings |
Wireless Concepts Demonstrated
| Concept | Implementation |
|---|---|
| ISM band operation | 2.4 GHz (nRF24) or 868 MHz (LoRa) unlicensed |
| GFSK modulation | nRF24L01+ digital modulation scheme |
| Auto-ACK protocol | Hardware-level reliable delivery |
| Duty cycling | 99.3% sleep ratio for power efficiency |
| Link margin | Range vs power trade-off selection |
| Interference avoidance | Channel selection away from WiFi |
| Data encoding | Efficient binary packing for minimal airtime |
Key Takeaways
- The nRF24L01+ provides reliable 100m wireless links at 11mA transmit current — ideal for battery-powered sensor nodes within a home property
- Efficient data encoding (binary packets instead of text) minimizes transmission time and power consumption
- Solar power combined with deep sleep (average 0.114mA) enables indefinite outdoor operation without maintenance
- Auto-acknowledgment and auto-retransmit provide reliable delivery without complex software protocol implementations
- The 2.4 GHz ISM band is shared with WiFi — selecting high channel numbers (108+) avoids interference from home routers
- A well-designed power budget calculation before building prevents unexpected battery failures in the field
- The same wireless architecture (sensor node → radio link → gateway → cloud) scales from home weather stations to industrial monitoring networks
Exam Focus
Revise definitions, diagrams, examples, and short-answer points for Wireless Weather Station Project Multi-Sensor Solar Display.
Interview Use
Prepare one clear explanation, one practical example, and one common mistake for this Wireless Communications topic.
Search Terms
wireless-communications, wireless communications, wireless, communications, projects, weather, station, wireless weather station project multi-sensor solar display
Related Wireless Communications Topics