Skip to content

A small arduino-library for conductivity and moisture-sensors without electrolysis.

Notifications You must be signed in to change notification settings

torsteinnh/conductivityLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

conductivityLib

Overview

Many resistancemeasuring sensors such as moisture and conductivitysensors work by applying a voltage between two electrodes. If the voltage applied is static DC it may corrode the electrodes fast destroying the sensor.

This library is a simple tool to decrease the time in which current runs through the sensor and apply an AC current to reverse some of the damage.

Usage

API

The library contains one class:

conductivitySensor

It has the following methods:

int getValue(); Returns the last read value from the sensor.

void measure(); Runs a measurement on the sensor, this measures the value returned by getValue.

void noCurrent(); Stops all current through the sensor.

int resistance(); Returns the resistance between the electrodes in the sensors.

Schematics of sugested usage:

About

A small arduino-library for conductivity and moisture-sensors without electrolysis.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages