Difference between revisions of "Oxygen Sensor"

From LinkSprite Playgound
Jump to: navigation, search
(Created page with " 400px")
 
(Recources)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
== Introduction ==
  
 +
Linker Oxygen sensor module uses ME series O2 sensor, and  have low consumption , small size,  high sensitivity , wide range of linearity , and better anti-jamming capacity, good reproducibility, stability and reliability ect advantage . It is electrochemical sensor widely suits for mine, industry and environmental protection field
 +
ect.
  
 
[[File:Linker O2 1.jpg| 400px]]
 
[[File:Linker O2 1.jpg| 400px]]
 +
[[File:Linker O2 2.jpg | 400px]]
 +
 +
== Features ==
 +
 +
*Dimension:40×20×18mm
 +
*Weight: 19g
 +
 +
== Schematic ==
 +
 +
*[https://s3.amazonaws.com/linksprite/LinkerKit/Linker_O2_Schematic.pdf Linker O2 Schematic]
 +
 +
== Usage ==
 +
 +
<syntaxhighlight lang="c">
 +
 +
#include <math.h>
 +
const int buzzerPin=3;                //Connect the Buzzer module to Pin3, Digital 3
 +
float thresholdVoltage= 1.84;        //The treshold for which the Buzzer should sound. 
 +
void setup()
 +
{
 +
  Serial.begin(9600);                //Start the Serial connection
 +
  pinMode(buzzerPin,OUTPUT);            //Set the LED on Digital 12 as an OUTPUT
 +
 +
}
 +
void loop()
 +
{
 +
 +
float sensorValue;
 +
float sensorVoltage;
 +
sensorValue = analogRead(A2);
 +
sensorVoltage =(sensorValue/1024)*5.0;
 +
 +
if(sensorVoltage<thresholdVoltage)
 +
  {
 +
    digitalWrite(buzzerPin,HIGH);
 +
  }
 +
  else
 +
  {
 +
  digitalWrite(buzzerPin,LOW);
 +
  }
 +
sensorVoltage = sensorVoltage/101*1000;
 +
Serial.println("the output voltage is:");
 +
 +
Serial.print(sensorVoltage);
 +
Serial.println("mV");
 +
delay(1000);
 +
}
 +
 +
</syntaxhighlight>
 +
 +
== Recources ==
 +
 +
*[https://s3.amazonaws.com/linksprite/LinkerKit/ME2-O2-D20+0-25%25+Manual+(ver1.2).pdf Datasheet of ME2-O2 sensor]
 +
*[https://s3.amazonaws.com/linksprite/LinkerKit/LINKER_O2.ino Linker O2 Example Code]
 +
 +
== How to buy ==
 +
 +
Here to buy Oxygen (O2) Sensor Module of Linker Kit for pcDuino/Arduino on [http://store.linksprite.com/oxygen-o2-sensor-module-of-linker-kit-for-pcduino-arduino/ store]

Latest revision as of 07:21, 15 June 2017

Introduction

Linker Oxygen sensor module uses ME series O2 sensor, and have low consumption , small size, high sensitivity , wide range of linearity , and better anti-jamming capacity, good reproducibility, stability and reliability ect advantage . It is electrochemical sensor widely suits for mine, industry and environmental protection field ect.

Linker O2 1.jpg Linker O2 2.jpg

Features

  • Dimension:40×20×18mm
  • Weight: 19g

Schematic

Usage

<syntaxhighlight lang="c">

  1. include <math.h>

const int buzzerPin=3; //Connect the Buzzer module to Pin3, Digital 3 float thresholdVoltage= 1.84; //The treshold for which the Buzzer should sound. void setup() {

  Serial.begin(9600);                //Start the Serial connection
 pinMode(buzzerPin,OUTPUT);            //Set the LED on Digital 12 as an OUTPUT

} void loop() {

float sensorValue; float sensorVoltage; sensorValue = analogRead(A2); sensorVoltage =(sensorValue/1024)*5.0;

if(sensorVoltage<thresholdVoltage)

 {
   digitalWrite(buzzerPin,HIGH);
 }
 else
 {
 digitalWrite(buzzerPin,LOW);
 }
sensorVoltage = sensorVoltage/101*1000;

Serial.println("the output voltage is:");

Serial.print(sensorVoltage); Serial.println("mV"); delay(1000); }

</syntaxhighlight>

Recources

How to buy

Here to buy Oxygen (O2) Sensor Module of Linker Kit for pcDuino/Arduino on store