Skip to content

sensor-network/sensor-collector

Repository files navigation

Sensor Collector

Introduction

The purpose of this project is to build a succesful sensor-network that will collect, transform and transmit water-related data to an API.

Architecture Overview

image

How to Use

Build

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

Test

TODO: Explain how unit- or integreation tests can be executed.

Run

  1. Connect the senors to the arduino board as in the figure

  2. Open src/Sensor_reader/Sensor_reader.ino using Arduino IDE.

  3. Navigate to Tools -> Manage libraries.

  4. Copy and paste each of the libraries bellow in the search bar to download it:

    • Onewire
    • DallasTemperature
    • ArduinoJson
  5. 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
    
  6. Run the code (The code will wait 15 seconds before giving any output)

License

Source Code: MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages