2.9.1 Aviation Weather Sensor Wiring
Overview
Weather is the single biggest external factor affecting aircraft performance, safety, and operations. Every pilot, dispatcher, and controller must understand temperature, pressure, humidity, wind speed, and wind direction — and how each variable affects the aircraft. In this project, students build a functional aviation weather station that measures all five parameters, displays them live on an OLED screen, and logs one week of data. They then calculate daily density altitude and decode a real METAR weather report from Kotoka International Airport.
Required Components
| Item | Quantity | Notes |
|---|---|---|
| ESP32 development board | 1 | Kit 4 |
| DHT22 temperature and humidity sensor | 1 | Kit 9 – more accurate than DHT11 |
| BMP280 barometric pressure sensor | 1 | Kit 9 – I2C; address 0x76 |
| Cup anemometer with Hall effect sensor | 1 | Kit 9 – counts pulses per revolution |
| SSD1306 OLED display (128×64, I2C) | 1 | Kit 9 |
| 10kΩ resistor | 1 | Kit 4 – pull-up for DHT22 data line |
| Jumper wires | 15 | Kit 4 |
| Outdoor-safe enclosure (small project box) | 1 | Kit 9 or teacher-provided |
| 5V USB power bank (optional) | 1 | For portable outdoor station |
Step-by-Step Assembly
Lesson 1 – Sensor Wiring
| STEP 1 | Wire BMP280 & OLED (I2C) |
| * BMP280: VCC → 3.3V; GND → GND; SDA → GPIO 21; SCL → GPIO 22 * OLED: VCC → 3.3V; GND → GND; SDA → GPIO 21; SCL → GPIO 22 * Run I2C scanner; confirm both detected (BMP280 at 0x76; OLED at 0x3C) * Upload BMP280 example; confirm pressure and temperature in Serial Monitor |
| STEP 2 | Wire DHT22 |
| * DHT22 VCC → 3.3V; GND → GND * DHT22 data pin → GPIO 4 * Add a 10kΩ resistor between the data pin and VCC (pull-up resistor — required) * Install DHT library; upload DHT22 example; confirm temperature and humidity readings |
| STEP 3 | Wire Anemometer |
| * Anemometer Hall effect sensor: VCC → 3.3V; GND → GND; Signal → GPIO 34 (input-only pin) * Each cup revolution generates one pulse on the signal pin * Test: spin the anemometer by hand; Serial Monitor should show increasing pulse count * Wind speed calculation: pulses per second × cup circumference = wind speed in m/s |
Power & Safety
For safety instructions and power requirements, please refer to Safety Notes.