Giter Site home page Giter Site logo

vernierst / arduino Goto Github PK

View Code? Open in Web Editor NEW
28.0 10.0 21.0 1.55 MB

Project sketches using Vernier Sensors with Arduino. The Vernier Library is used where appropriate. Please see VernierLib for additional sketches.

Home Page: https://www.vernier.com/arduino

License: Other

C++ 100.00%
ardiuno vernier

arduino's Introduction

Using Arduino and Vernier Sensors

Overview

Vernier has always supported hands-on, do-it-yourself projects for students (or teachers). The availability of very inexpensive, easy-to-program microcomputers, like the Arduino, makes projects easy and affordable.

We posted a guide to Using Vernier sensors with Arduino. It is a free guide to connecting, calibrating, writing programs, and doing fun projects with our sensors. The guide references sketches included in this repository.

All sketches are developed by Vernier.

Include the VernierLib library in your version of the Arduino IDE to make using Vernier sensors easy.

License

This projected is licensed under the terms of the MIT license.

arduino's People

Contributors

davidlim avatar dvernier avatar ryan-ludwig avatar smythics avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arduino's Issues

Vernier library(VernierLib) and Vernier ISE for Ammonium, Nitrate and Potassium not working

The library(VernierLib) provided by Vernier does not work with the ISEs I bought from Vernier. It gives 0.00 output for all the ISEs.
Also, when I capture the value from Analog2 port, the values are not stable for High or low-value solutions. Please help!

The attached screenshot is for the type of output when I am reading it from Analog2. It is averaged for 10 consecutive values. It looks the same for both 1 PPM and 100 PPM solutions.

Also, one thing I noticed that for Ammonium ISE, the ISE behaves as -ve linear way, which is just opposite of what is mentioned on the website. Similarly, for nitrate, it behaves in a +ve linearly way but opposite to what is mentioned on the website(-ve linearly).

13-08-2020 17:50 PM: I am attaching the four files having values for 1 PPM and 100 PPM from Nitrate ISE with a simple analog read the program and an analog read program with averaged value.
Data is almost similar for both 1 PPM and 100 PPM.

Program with averaging:
void setup() {
Serial.begin(9600);
Serial.println("CLEARDATA"); //clears up any data left from previous projects

Serial.println("LABEL,Time,Timer,sensorVoltage"); //always write LABEL, so excel knows the next things will be the names of the columns (instead of Acolumn you could write Time for instance)

Serial.println("RESETTIMER"); //resets timer to 0
}

void loop() {
float sensorVoltage,sensorReading; // declares a variable named sensorVoltage
int numberAveraged = 10; //number of readings averaged for reading reported
int i,count;
int sum = 0;
float voltage;

for (i = 0 ; i < numberAveraged; i++)
{
count = analogRead(A2); //read 0 to 5 volt analog lines Analog 2
sum = sum + count;
}
sensorVoltage = ((sum / numberAveraged) * 5.0)/ 1024.0; //convert average count to voltage (0 to 5 volt input)
Serial.print("DATA,TIME,TIMER,sensorVoltage");
Serial.println(sensorVoltage);
delay(100); // delay in between reads in milliseconds
}

Program without averaging:
13-08-2020_Nitrate-1 PPM_ averaged.xlsx
13-08-2020_Nitrate-1 PPM_without averaged.xlsx
13-08-2020_Nitrate-100 PPM_ averaged.xlsx
13-08-2020_Nitrate-100 PPM_without averaged.xlsx
void setup() {
Serial.begin(9600);
Serial.println("CLEARDATA"); //clears up any data left from previous projects

Serial.println("LABEL,Time,Timer,sensorVoltage"); //always write LABEL, so excel knows the next things will be the names of the columns (instead of Acolumn you could write Time for instance)

Serial.println("RESETTIMER"); //resets timer to 0
}

void loop() {
float sensorVoltage,sensorReading; // declares a variable named sensorVoltage
int sensorValue = analogRead(A2);
sensorVoltage = sensorValue * 5.0 / 1023;// Converts the count to the sensor voltage
Serial.print("DATA,TIME,TIMER,sensorVoltage");
Serial.println(sensorVoltage);
delay(100); // delay in between reads in milliseconds
}
13-08-2020_Nitrate-1 PPM_ averaged.xlsx
13-08-2020_Nitrate-1 PPM_without averaged.xlsx
13-08-2020_Nitrate-100 PPM_ averaged.xlsx
13-08-2020_Nitrate-100 PPM_without averaged.xlsx
Screenshot (45)

Thermistor Reading Discrepency

Hi, I'm using the temperature probes with the AnalogAutoID example Arduino sketch, but I'm getting about 10 degrees temperature discrepancy between analog port 1 and analog port 2, this happens even if I swap the sensors. Analog port 1 always reads about 10 degrees higher in temp than analog port 2. What might be causing this discrepancy? Thanks.

VernierLib library not working for NH4-BTA , No3-, k ISE.

Screenshot (45)

The library(VernierLib) provided by Vernier does not work with the ISEs I bought from Vernier. It gives 0.00 output for all the ISEs.
Also, when I capture the value from Analog2 port, the values are not stable for High or low-value solutions. Please help!

The attached screenshot is for the type of output when I am reading it from Analog2. It is averaged for 10 consecutive values. It looks the same for both 1 PPM and 100 PPM solutions.

Also, one thing I noticed that for Ammonium ISE, the ISE behaves as -ve linear way, which is just opposite of what is mentioned on the website. Similarly, for nitrate, it behaves in a +ve linearly way but opposite to what is mentioned on the website(-ve linearly).

13-08-2020 17:50 PM: I am attaching the four files having values for 1 PPM and 100 PPM from Nitrate ISE with a simple analog read the program and an analog read program with averaged value.
Data is almost similar for both 1 PPM and 100 PPM.

  1. Program with averaging:
    void setup() {

Serial.begin(9600);
Serial.println("CLEARDATA"); //clears up any data left from previous projects

Serial.println("LABEL,Time,Timer,sensorVoltage"); //always write LABEL, so excel knows the next things will be the names of the columns (instead of Acolumn you could write Time for instance)

Serial.println("RESETTIMER"); //resets timer to 0
}

void loop() {
float sensorVoltage,sensorReading; // declares a variable named sensorVoltage
int numberAveraged = 10; //number of readings averaged for reading reported
int i,count;
int sum = 0;
float voltage;

for (i = 0 ; i < numberAveraged; i++)
{
count = analogRead(A2); //read 0 to 5 volt analog lines Analog 2
sum = sum + count;
}
sensorVoltage = ((sum / numberAveraged) * 5.0)/ 1024.0; //convert average count to voltage (0 to 5 volt input)
Serial.print("DATA,TIME,TIMER,sensorVoltage");
Serial.println(sensorVoltage);
delay(100); // delay in between reads in milliseconds
}

  1. Program without averaging:
    13-08-2020_Nitrate-1 PPM_ averaged.xlsx
    13-08-2020_Nitrate-1 PPM_without averaged.xlsx
    13-08-2020_Nitrate-100 PPM_ averaged.xlsx
    13-08-2020_Nitrate-100 PPM_without averaged.xlsx

void setup() {
Serial.begin(9600);
Serial.println("CLEARDATA"); //clears up any data left from previous projects

Serial.println("LABEL,Time,Timer,sensorVoltage"); //always write LABEL, so excel knows the next things will be the names of the columns (instead of Acolumn you could write Time for instance)

Serial.println("RESETTIMER"); //resets timer to 0
}

void loop() {
float sensorVoltage,sensorReading; // declares a variable named sensorVoltage
int sensorValue = analogRead(A2);
sensorVoltage = sensorValue * 5.0 / 1023;// Converts the count to the sensor voltage
Serial.print("DATA,TIME,TIMER,sensorVoltage");
Serial.println(sensorVoltage);
delay(100); // delay in between reads in milliseconds
}

BNC Connection to Nitrate ISE sensor

Hello,
I am trying to use this sketch to run a TruLine Nitrate ISE Sensor, should I just be connecting the Sensor to a female BNC connector with the core connector going to A0 and the outer connector going to GND?

Calibrate for sensor NH4-BTA

Im bought sensor NH4 ( https://www.vernier.com/products/sensors/ion-selective-electrodes/nh4-bta/ )
I want use arduino calib with NH4
this it document NH4 ( https://www.vernier.com/files/manuals/nh4-bta.pdf )
E = Eo + m(ln a)
where E is the measured voltage, Eo is the standard potential for the combination of
the two half cells, m is the slope, ln is the natural logarithm, and a is the activity of
the measured ion species.
I dont understand Eo,How do I determind Eo ?

Sketch to display and graph readings to LabVIEW from 2 analog sensors

Hello, I have 4 analog sensors namely, stainless steel temp, DO probe, pH probe and Ammonium Ion-Selective Electrode. I have two sparkfun arduino board. Now since the vernier interface shield has only two analog inputs I have two of them in order to connect all 4 sensors. So what I need is the sketch and possibly the VI to display each table and graph readings from these sensors. Any help is appreciated thanks.

quadratic calibration curves sensors

Hey,
We bought ETH-BTA from you and am trying to use it with arduino uno and i found that You have a bunch of arduino codes for most of your products;
do you by chance have a sample codes for the sensor with quadratic calibration curves? @davidlim

2^N - 1 quantization steps in ADC

Your code uses 1024 instead of 1023 for converting the raw ADC value to a resistance of the thermistor. I'm pretty sure that the number of quantization steps is 1023 (2^N - 1) for the ADC. The Arduino reference for the AnalogRead() function shows that the resolution is = 5V / 1024, but I don't think that's correct.

http://en.wikipedia.org/wiki/Analog-to-digital_converter#Resolution

It's a minor difference in accuracy, but I think we should be consistant. I'm working up documentation for our Vernier Shield. I hope to have some good examples ready this week.

2-9-2014 5-58-05 pm

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.