PAGASA Custom Environmental Datalogger (Revision 0)
After months of research, hardware design, firmware development, and testing, I am proud to present Revision 0 of our custom-built environmental datalogger, engineered specifically for the operational requirements of the Philippines' Weather Bureau, the Philippine Atmospheric, Geophysical and Astronomical Services Administration (PAGASA).Designed around the Teensy 4.1 microcontroller, the system integrates an ESP32 for Wi-Fi connectivity and a SIM7600 LTE modem for cellular communication, providing a powerful, flexible, and highly reliable telemetry platform for hydrometeorological monitoring.
The datalogger is intended for deployment at remote weather and hydrological monitoring stations, where it continuously acquires field measurements and transmits them to PAGASA's command center for real-time flood forecasting and early warning operations.
To maximize data availability in remote environments, the datalogger employs a three-level communication architecture with automatic failover.
VHF Radio (UART via TTL-to-RS232)The primary telemetry channel uses a VHF radio modem for long-range communication between remote stations and the command center.
Secondary Communication (MQTT over Wi-Fi or LTE)
If no acknowledgement is received through the VHF network, the datalogger automatically retransmits the data using MQTT through either:- Integrated ESP32 Wi-Fi
- SIM7600 LTE cellular connection
If both VHF and MQTT transmissions remain unsuccessful, the system automatically sends the observation through SMS, providing another layer of redundancy for mission-critical hydrological data.
This communication hierarchy ensures that valuable field observations continue reaching the command center even when one or more communication channels become unavailable.
Revision 0 combines high-performance processing with extensive connectivity in a single compact platform.
Core Hardware
- Teensy 4.1 (600 MHz ARM Cortex-M7)
- ESP32 Wi-Fi Module
- SIM7600 LTE Cellular Modem
- LTE Data
- MQTT
- SMS
- Bluetooth
- GNSS
Communication Interfaces
- UART
- SDI-12
- RS-485
- CAN Bus
- I²C
- SPI
Data Acquisition
- Integrated ADS1115 16-bit ADC
- MicroSD data storage
- Real-time sensor acquisition
The MQS audio interface allows the datalogger to play WAV audio files stored on the SD card, which can be connected to an external amplifier and siren system for automated voice announcements and emergency warning broadcasts.
The platform has been developed specifically for hydrometeorological monitoring applications, including:
- Automatic Weather Stations (AWS)
- Water Level Monitoring Stations
- Rainfall Monitoring Stations
- Flood Forecasting and Warning Systems
- Remote Environmental Monitoring Stations
Planned Upgrades
- 8 MB PSRAM for expanded runtime memory
- 128 MB Flash memory for increased storage capacity
- Upgrade from ADS1115 (16-bit, I²C) to ADS1258 (24-bit, SPI) for higher-resolution analog measurements and faster multi-channel sampling
- Larger OLED display for improved diagnostics and field operation
- Additional firmware optimizations and expanded sensor compatibility
- Looking ahead, one of the planned improvements is to have the Teensy 4.1 directly interface with SDI-12 sensors. This will streamline the hardware architecture, reduce dependency on the ESP32 for sensor communication, and centralize data acquisition in the primary controller.