Giter Site home page Giter Site logo

alexfang0214sh / matlab-turbidity-sensor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jperk00/matlab-turbidity-sensor

0.0 1.0 0.0 13.55 MB

A student project for ENGR114 at Portland Community College. Uses MATLAB to read a turbidity sensor connected to an Arudino over serial.

License: GNU General Public License v3.0

MATLAB 84.37% C++ 15.63%

matlab-turbidity-sensor's Introduction

MATLAB-Turbidity-Sensor

A student project for ENGR114 at Portland Community College. Uses MATLAB to read a turbidity sensor connected to an Arudino over serial.

Problem Statement

Our group was tasked with creating MATLAB code to call data from an Arduino hooked up to a turbidity sensor for the hydroponic fish tank-garden in the engineering department. Using Arduino and MATLAB the water turbidity produced from a TSW-10 Turbidity Sensor will produce measurements that will be uploaded to ThingSpeak via MATLAB where progressive turbidity data will be stored and plotted against time for any necessary reference. A plot of the turbidity as a function of time will also be generated for a visual representation of the turbidity. The Arduino will produce an analog reading for turbidity that is converted to a voltage reading (where more voltage is less turbid water), then which MATLAB outputs the NTU reading for correct tubidity units.

Hardware Setup

Bill of Materials

component vendor
Arduino SparkFun RedBoard - Programmed with Arduino
Turbidity Sensor Gravity Analog Turbidity Sensor
Jumper wires Jumper Wires Premium 6" M/M Pack of 10
Mini-B USB cable SparkFun USB Mini-B Cable - 6 Foot
3D-Print Boat Template Thingiverse

Fritzing Diagram

Fritzing Diagram

Connected Hardware

Full Setup

Arduino Code

The turb_sens_1_2.ino script was run in Arduino.

MATLAB Code

The NTU_code_3_15.m script was run in MATLAB.

Results

Turbidity vs. Time

Future Work

Future work for the turbidity sensor could involve integrating the temperature sensor to dial into a more accurate reading as there is a correlation between turbidity and temperature. Adding a wifi shield would be a helpful component as well and eliminate the need for a laptop to be present at the fish tank. Turbidity effects the fish health, cleaner water produces healthier fertilization, healthier feritilization results in healthier plants, healthier plants results in better fruit production, and so forth.

License

GNU General Public License v3.0

matlab-turbidity-sensor's People

Contributors

jperk00 avatar

Watchers

James Cloos 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.