Code Monkey home page Code Monkey logo

babyturbidity's Introduction

🍼babyturbidity

Introduction

This repo is dedicated to the baby turbidity sensor. This sensor compromises on accuracy for low-cost and it was developed for a class on environmental sensing.

Description of the device

This very simple turbidity sensor consists of the DFRobot turbidity probe, it is housed in a very simple PVC housing, and it's programmed in the Arduino framework. The "anatomy" of the sensor is shown in the figure below (forgive the German).

The senseBox and batteries (figure below - LEFT, MIDDLE) are inside of a home-made PVC housing. The housing was closed with a big cork, which is not the best for waterproofing. The DFRobot probes are housed in a transparent housing and these transparent plastic pieces were glued to our PVC housing (figure below - RIGHT ... I wish I had a better photo of this but I don't). This was done so that the turbidity probes can be directly connected to the senseBox while staying dry and still taking measurements through the small DFRobot transparent housings.

Example results

Below you can see some results obtained using these sensors for three different time periods in April 2020 in the Holderbach river in Zurich. The top panel in each figure shows the turbidity (in NTU) measured by both sensors (blue and orange curves) since our device had two DFRobot turbidity probes.

The middle panel in each figure shows the solar radiation (yellow curve) and the precipitation in mm (blue bars). This data was provided to the students.

The bottom panel in each figure shows again the solar radiation (yellow curve) and the average NTU of both probes (blue curve). We see some very interesting findings int eh figures below.

The figure to the LEFT shows that the NTU measurements are influenced by solar radiation but also around April 12th we see some spikes in turbidity which correspond to precipitation. The MIDDLE figure shows no precipitation but there is anyways a constant increase in NTU. Perhaps this is because the sensor is getting dirty? The last figure to the RIGHT shows increases in NTU corresponding to precipitation, also in the absence of solar radiation.

These results show that the sensor is able to measure changes in turbidity, but also that these measurements are affected by solar radiation (see section below). The students also measured the turbidity in two more Zurich rivers (the Sihl and the Limmat) and those results can be found in the folder "Results."

BOM

Item name link Quantity
DF robot turbidity sensor https://www.dfrobot.com/product-1394.html 2
Adafruit ADS1115 16BIT https://www.digikey.ch/de/products/detail/adafruit-industries-llc/1085/5761229 2
senseBox MCU https://sensebox.de/en/products-parts.html 1
GPS receiver https://sensebox.shop/product/gps 1
SD bee https://sensebox.shop/product/sd-bee 1
Illumination sensor (option - this data was already provided for the students) https://sensebox.shop/product/licht-sensor 1
Battery pack 1
AA batteries 3

Code

The senseBox uses the Arduino framework so the Arduino library is a good place to start with example codes for SD card usage. Or the Adafruit library for the ADC. SenseBox also has example codes for each of their products. But I have also included the (very basic) code to obtain the turbidity in the folder Codes called "turbidityCalibrated_sensebox.ino.

If you would like to read out from the temperature and/or humidity sensor then you can check out Codes/temperature_humidity.ino. And if you would like to save to an SD card then check out Codes/SD_temp.ino.

Calibration

To calibrate the sensor(s), follow the procedure outlined in Calibration/calibration.pdf. Below you can see an example of the calibration curve our students obtained (LEFT) and the polynomials they fitted to their curves (RIGHT).

Correlation with sunlight

As the figure below demonstrates, these cheap DF robot sensors are affected by sunlight which is why we calibrate in dark-room conditions (please forgive my hand-drawn units... the students forgot to add the units and I don't have access to the original figure).

Other problems

  • This sensor doesn't have a wiper so biofauling would be a problem and the sensor shouldn't be installed long-term without regular maintenance
  • The cork isn't the best for a waterproof housing

Contact

For questions, please email me at [email protected] or @rivertechjess on Twitter 🐦

babyturbidity's People

Contributors

rivertechlabs 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.