The purpose of this project is to build a succesful sensor-network that will collect, transform and transmit water-related data to an API.
Prerequisites
- Arduino IDE 1.8.19 or later
- Arduino uno wifi rev2
- MASUNN Ds18B20 temperature sensor
- Beitian BN-220 dubble GPS
- KEYESTUDIO Analog TDS sensor
- Garsent Digital PH sensor
- Micro SD TF Card Memory Shield Module
- Powerbank
- USB to mini USB type B
TODO: Explain how unit- or integreation tests can be executed.
-
Connect the senors to the arduino board as in the figure
-
Open
src/Sensor_reader/Sensor_reader.ino
using Arduino IDE. -
Navigate to Tools -> Manage libraries.
-
Copy and paste each of the libraries bellow in the search bar to download it:
- Onewire
- DallasTemperature
- ArduinoJson
-
Change the Arduino's analog pins to match the connected pins for both PH and TDS sensors.
#define SensorPin A0 // the pH meter Analog output is connected with the Arduino’s Analog #define TdsSensorPin A1 // the tds meter Analog output is connected with the Arduino’s Analog
-
Run the code (The code will wait 15 seconds before giving any output)
Source Code: MIT License