PrototypePrototipeBreadboard prototype; all sensors tested and data sent to ThingsBoardPrototipe breadboard; semua sensor telah diuji dan data terkirim ke ThingsBoard
Water Quality & E. coli Risk Monitor
OverviewRingkasan
Prototype water-quality monitor that reads pH, TDS/EC, turbidity and water temperature, flags a likely E. coli presence from literature-based threshold ranges, and reports to ThingsBoard over GPRS. Built solo during a 7-week internship at SCCIC ITB (8 Jun - 22 Jul 2022); sensor tests and GPRS tests continued into August 2022.Prototipe pemantau kualitas air yang membaca pH, TDS/EC, turbidity, dan suhu air, menandai kemungkinan adanya E. coli dari rentang ambang berbasis literatur, lalu melapor ke ThingsBoard lewat GPRS. Dibuat sendiri selama magang 7 minggu di SCCIC ITB (8 Jun - 22 Jul 2022); uji sensor dan uji GPRS berlanjut sampai Agustus 2022.
My RolePeran Saya
Sole developer as an intern: literature study, sensor selection, circuit and Fritzing schematic, firmware, pH sensor calibration, ThingsBoard dashboard, 3D casing design in Fusion 360Developer tunggal selama magang: studi literatur, pemilihan sensor, rangkaian dan skematik Fritzing, firmware, kalibrasi sensor pH, dashboard ThingsBoard, desain casing 3D di Fusion 360
How It WorksCara Kerja
- pH, TDS, turbidity and DS18B20 temperature sensorsSensor pH, TDS, turbidity, dan suhu DS18B20
- Arduino Uno (final build); ESP32 + ADS1115 with potentiometers in the simulation stageArduino Uno (versi akhir); ESP32 + ADS1115 dengan potensiometer pada tahap simulasi
- SIM800L (GPRS)
- ThingsBoard (HTTP)
- ThingsBoard dashboard; history pulled through the REST APIDashboard ThingsBoard; riwayat data diambil lewat REST API
Key FeaturesFitur Utama
- •Reads pH, TDS/EC, turbidity and water temperatureMembaca pH, TDS/EC, turbidity, dan suhu air
- •pH probe calibrated with 4.01 and 6.86 buffer solutionsProbe pH dikalibrasi dengan larutan buffer 4,01 dan 6,86
- •Rule-based E. coli status (present / not present) from ranges: TDS up to 100 ppm, EC 0.005-0.5, pH 4-7, turbidity 1-5 NTU, temperature 35-40 CStatus E. coli berbasis aturan (ada / tidak ada) dari rentang: TDS sampai 100 ppm, EC 0,005-0,5, pH 4-7, turbidity 1-5 NTU, suhu 35-40 C
- •GPRS uplink (SIM800L) to a ThingsBoard dashboardUplink GPRS (SIM800L) ke dashboard ThingsBoard
- •Local ThingsBoard install and historical data retrieval via REST API (Postman)Instalasi ThingsBoard lokal dan pengambilan data historis lewat REST API (Postman)
Field Issues & FixesKendala & Solusi
Sensors only give indirect indicators; no low-cost sensor measures E. coli itself.Sensor hanya memberi indikator tidak langsung; tidak ada sensor murah yang mengukur E. coli secara langsung.
Used literature-based threshold ranges for TDS, pH, turbidity, temperature and EC, and stated that the status is an estimated risk, not a lab result.Memakai rentang ambang dari literatur untuk TDS, pH, turbidity, suhu, dan EC, dan menyatakan bahwa status ini perkiraan risiko, bukan hasil lab.
Testing the cloud path before all sensors arrived.Menguji jalur cloud sebelum semua sensor tiba.
Simulated the sensors with potentiometers on an ESP32 + ADS1115 and validated HTTP and MQTT delivery to ThingsBoard first.Mensimulasikan sensor dengan potensiometer pada ESP32 + ADS1115 dan memvalidasi pengiriman HTTP dan MQTT ke ThingsBoard lebih dulu.
In the final firmware the temperature condition used the function name instead of its value, and only the status (not raw readings) was sent.Pada firmware akhir, kondisi suhu memakai nama fungsi, bukan nilainya, dan yang terkirim hanya status (bukan data sensor mentah).
Not fixed in the archive (the prototype stayed on the breadboard); noted as a known limitation.Belum diperbaiki di arsip (prototipe berhenti di breadboard); dicatat sebagai keterbatasan.
Key NumbersAngka Kunci
- Water parametersParameter air
- 4 sensors (EC derived from TDS)4 sensor (EC diturunkan dari TDS)
- pH calibrationKalibrasi pH
- 2-point, buffers 4.01 and 6.862 titik, buffer 4,01 dan 6,86
- Internship periodPeriode magang
- 8 Jun - 22 Jul 2022 (7 weeks)8 Jun - 22 Jul 2022 (7 minggu)