FlowGuard is an Arduino-based smart water monitoring prototype designed to detect interruptions and unusually low water flow and send automated SMS notifications.
The project combines water-flow sensing, embedded systems, cellular communication, and micro-hydro energy generation.
- Real-time Flow Monitoring: Monitors water flow using the YF-S201 sensor.
- Low-Flow Detection: Identifies unusually low water flow.
- Interruption Detection: Detects complete interruptions in water flow.
- Automatic SMS Alerts: Sends notifications through a 4G communication module.
- Energy Exploration: Uses a micro-hydro generator as an experimental energy source.
- Arduino-Based Control: Processes sensor data using an Arduino Nano.
| Component | Purpose | | Arduino Nano | Main controller | | YF-S201 | Water flow measurement | | SIM A7670C | Cellular communication | | 12V 10W Micro-Hydro Generator | Energy generation | | XY-3606 | Buck conversion | | TP4056 | Battery charging | | 18650 Li-ion Battery | Energy storage | | MT3608 | Boost conversion |
- Water flows through the monitoring setup.
- The YF-S201 sensor generates pulses corresponding to water flow.
- The Arduino Nano processes these pulses and estimates the flow rate.
- The system identifies normal, low-flow, and no-flow conditions.
- The SIM A7670C module sends SMS notifications when relevant conditions change.
- The micro-hydro subsystem explores generating and storing energy for the electronics.
FlowGuard/ ├── README.md ├── LICENSE ├── .gitignore │ ├── firmware/ │ └── FlowGuard/ │ ├── FlowGuard.ino │ └── config_example.h │ ├── hardware/ │ ├── circuit-diagram/ │ ├── block-diagram/ │ └── components/ │ └── component-list.md │ ├── docs/ │ ├── project-overview.md │ ├── working-principle.md │ ├── installation-guide.md │ └── testing-and-calibration.md │ └── media/ ├── project-photos/ └── screenshots/
Note: config_private.h is intentionally excluded from this repository to protect personal configuration details.
- Arduino IDE
- Arduino Nano board support
- Required libraries used by the firmware
- Compatible computer and USB connection
- Clone or download this repository.
- Open
firmware/FlowGuard/FlowGuard.inoin Arduino IDE. - Copy
config_example.hto a local file namedconfig_private.hin the same folder. - Update the local configuration with your own SMS recipient number.
- Select the appropriate Arduino Nano board and COM port.
- Verify the firmware and upload it to the board.
Privacy: Never commit or push config_private.h. The repository's .gitignore excludes this file.
The YF-S201 requires calibration to obtain reliable flow measurements.
Testing should cover:
- Normal water flow
- Low water flow
- Complete water interruption
- Water restoration
- Cellular network registration
- SMS notification behaviour
- Power generation and battery performance
Refer to docs/testing-and-calibration.md for further details.
- Remote monitoring dashboard
- Historical flow-data logging
- Improved power management
- Enhanced fault detection
- Long-duration reliability testing
- Improved enclosure and environmental protection
Working prototype — Further validation required.
FlowGuard is an experimental educational project. Its power-management design, hardware reliability, calibration, and suitability for real-world deployment require further testing.
This project is licensed under the MIT License. See the LICENSE file for details.
Built with Arduino, embedded systems, and an interest in practical IoT solutions.