REW&MS (River Early Warning & Monitoring System) is a drone-based, fully autonomous environmental monitoring platform designed to assess river health and predict flood risks in real-time. The system integrates an ARM-based Pixhawk Flight Control Unit (FCU) with an ARM-based STM32F030R8 microcontroller powering a comprehensive sensor pod. The architecture ensures efficient data collection, communication, and storage for reliable, long-term analysis.
-
Autonomous Drone Operation:
- Powered by Pixhawk FCU (ARM-based)
- Supports Auto RTL (Return to Launch) & waypoint navigation
- Compatible with PX4 and Ardupilot firmware
-
Comprehensive Sensor Pod:
- Water turbidity, detection, and gas sensors (MQ series) interfaced via 10-bit ADC channels
- BMP280 sensor for barometric pressure and temperature via I2C
- STM32F030R8 handles all sensor data acquisition & processing
-
Reliable Communication & Logging:
- HC-12 (433 MHz) & HC-05 (Bluetooth) modules for UART-based wireless transmission
- Arduino microcontroller logs data to SD card for redundancy
| Component | Specification |
|---|---|
| Pixhawk FCU | ARM-based architecture |
| Auto RTL & waypoint navigation support | |
| Compatible with PX4 or Ardupilot firmware |
| Sensor | Interface | Function |
|---|---|---|
| Water Turbidity Sensor | Analog (10-bit ADC) | Measures water clarity |
| Water Detection Sensor | Analog (10-bit ADC) | Detects presence of water |
| MQ-2 Gas Sensor | Analog (10-bit ADC) | Detects flammable gases & smoke |
| MQ-7 Gas Sensor | Analog (10-bit ADC) | Detects carbon monoxide |
| MQ-9 Gas Sensor | Analog (10-bit ADC) | Detects carbon monoxide & combustible gases |
| BMP280 | I2C | Measures barometric pressure & temperature |
| Module | Interface | Functionality |
|---|---|---|
| HC-12 | UART | Wireless communication at 433 MHz |
| HC-05 | UART | Bluetooth communication |
| Arduino + SD Card | UART | Logs data serially from STM32 for redundancy |
| Feature | Specification |
|---|---|
| Core | ARM Cortex-M0 |
| Flash Memory | 64 KB |
| RAM | 8 KB |
| ADC | 12 channels, 10-bit resolution |
| UART | 1 (shared with comm modules + Arduino) |
| I2C | 1 (used for BMP280) |
-
Mission Planning:
- Define waypoints and upload mission to Pixhawk FCU using QGroundControl or Mission Planner.
-
System Initialization:
- Power up the sensor pod, ensure sensor and communication module functionality.
-
Autonomous Operation:
- Launch drone; follows waypoint mission autonomously while collecting environmental data.
-
Data Acquisition:
- STM32 samples data from all connected sensors through ADC & I2C channels.
-
Data Transmission:
- Data transmitted in real-time over HC-12/HC-05.
- Data simultaneously logged by Arduino to SD card (black box functionality).
-
Data Retrieval:
- Retrieve SD card from Arduino logger post-landing.
-
Data Analysis:
- Analyze river health metrics and potential flood risks using the recorded data.
-
Flood Prediction & Early Warning:
- Real-time data for proactive response to potential floods.
-
Water Quality Monitoring:
- Assess turbidity, gas concentrations, barometric data to evaluate river health.
-
Environmental Research:
- Enables large-scale ecological and hydrological data collection.
-
Infrastructure Planning:
- Supports water management and civil engineering projects.
This project is licensed under the MIT License. See LICENSE file for details.
For inquiries or collaborations, feel free to open an issue or reach out to the maintainers!







