Giter Club home page Giter Club logo

arduino-isfetboard's Introduction

Arduino library for ISFET Board

This library is used to read info from ISFET board PCB. This requires the ISFET board hardware which was developed in the Instituto Nacional de Investigación y Capacitación de Telecomunicaciones of the Universidad Nacional de Ingeniería (INICTEL-UNI), Lima, Perú.

It contains a main function to operate with it. However to operate with the board some preliminar steps are requiered:

Preliminar Tasks

  1. First of all, the board has to be assembled with all its components, which are the ISFET and NTC sensores to measure the pH and temperature.
  2. Then, it should be powered with DC voltage, either with 5V or 3.3V.
  3. It is recommended to calibrate the sensors before operation. Over all, considering that at different voltage levels, the response will be different. The procedure is explained in Calibration.

Normal operation

After its calibration the device is ready to operate. So, after it is placed in the solution where it will measure the pH, the device is able to acquire data.

The ISFET board must be attached to the Arduino board. Then, you can test the device operation using the IsfetBoard_librarytester.

The most important parts are the device declaration and the reading process.

Declaration

The library declaration has the following name:

#include "isfetboard.h"

The libary uses the SoftwareSerial library to serve as an interface with the Arduino. To declare it, the following instruction should be added.

#define RXPIN 10
#define TXPIN 11

IsfetBoard myboard(RXPIN,TXPIN);

It creates, internally, the SoftwareSerial object in the RXPIN and TXPIN, declared before which communicates via UART with the ISFET Board.

Reading process

The main function to acquire the data is readData(), which internally iniatilizates the software serial port and read the information from it. After it, data is obtained and stored in internal variables pHcomp for compensated pH, pH for pH without compensation and temperature for temperature acquired from NTC sensor.

A model to obtain this data is depicted as following:

myboard.readData();
pHcomp = myboard.pHcomp;
pH = myboard.pH;
temperature = myboard.temperature;

Is important to highlight that, if there is no communication or if sensors are not connected, the resulting values in internal variables will be NAN.

arduino-isfetboard's People

Contributors

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