Skip to content

AndroidIOT/iot-watering-system

 
 

Repository files navigation

IOT watering system

Watering system with moisture sensor and firebase database.

Firebase

This project uses Firebase from Google to store the data collected from the moisture sensor. The Arduino code only uploads the value from the moisture sensor and whether the pump is on to the database. There is a Nodejs project include which, when uploaded as a cloud function to the Firebase database will add a datetime to the newly added values.

The JSON structure

The cloud function will format a datetime based on the machine time. the format is a DD:MM:YYYY:HH:MM:SS, e.g.: "29:2:2017:20:22:25". The Arduino codes add a boolean based on whether the pump is currently active. And the value the value of the moisture sensor is added. This all combined gives the following data structure:

{
  "measurement" : {
    "-KgQiGUIjxPrxezXVW1H" : {
      "dateTime" : "29:2:2017:20:19:26",
      "isWatering" : 0,
      "value" : 2.72
    }
  }
} 

The Hardware

Parts list:

I bought most of the things on Ali Express so thats where I will provide links for.

For this project I made a super scientific representation of the hardware:
hardware

The final product:

License: MIT

About

Watering system with a moisture sensor and firebase database.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Other 80.3%
  • JavaScript 19.7%