Giter Site home page Giter Site logo

gcloud-soil-moisture-sensor's Introduction

Google Cloud Soil Moisture Sensor

This is a home project and an exercise on using Cloud solutions in IoT.

The project uses a generic soil moisture sensor and a photoresistor with ESP8266 and complementary devices (resistors, buttons, voltage regulator and some pin headers).

Results can be seen here!

How does it work?

The data is from the sensor is gathered as analog value and mapped to 0-100% range. ESP8266s analog in is rated for 0-1V only so the reading has to be transformed via a simple voltage divider. Photoresistor value is mapped to binary values of 0 (dark) and 100 (light) as ESP8266 has only 1 analog input. To make it more consistent, the value is gathered form a variable voltage divider and reading routine sets the input pin value high before the actual reading process. It guarantees same voltage threshold for low/high exposition transitions despite the input hysteresis. Data is filtered by a simple moving average filter and translated into JSON format, which can be sent using MQTT protocol to Google IoT service. IoT routine sets off a google Cloud Function service to parse the JSON data and insert it into BigQuery database. For graphical output Google Datastudio is used. Data is obtained using automated SQL query every hour or on users demand.

PCB

PCB was designed in Autocad EAGLE, all of the necessary files should be updated in Eagle_files folder

Schematic

schematic

Board

Board

Photo

Pic

gcloud-soil-moisture-sensor's People

Contributors

kfrydryk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.