Introduction
This is a photoelectric liquid level sensor that is operates using traditional optical principles. The advantages of this are a high sensitivity and no need for mechanical parts - meaning less calibration! The corrosion resistant probe is easily mounted and can handle high temperatures and high pressures. The sensor is equipped with an interface adapter for compatibility with the DFRobot "Gravity" interface.
Note: Avoid placing the sensor near bright lights or in direct sunlight as these can cause interference.
Specification
- Model: FS-IR02
- Type: Photoelectric Liquid Level Sensor
- Operating Voltage: 5V DC
- Output Current: 12mA
- Operating Temperature: - 25 ~ 105 ℃
- Low Level Output: < 0.1 V
- High Level Output: > 4.6 V
- Liquid Level Detection Accuracy: ±0.5 mm
- Material: Polycarbonate
- Measuring Range: No limit
- Life: 50,000 hours
Board Overview
Tutorial
Installation
Requirements
- Hardware
- DFRduino UNO x1
- Liquid Level Sensor-FS-IR02 x1
- Software
- Arduino IDE Click to Download Arduino IDE from Arduino®
Sample Code
/*!
* @file SEN0205.ino
* @brief This example is to get liquid level. (Liquid Level Sensor-FS-IR02)
* @copyright Copyright (c) 2010 DFRobot Co.Ltd (http://www.dfrobot.com)
* @license The MIT License (MIT)
* @author jackli(Jack.li@dfrobot.com)
* @version V1.0
* @date 2016-1-30
*/
int liquidLevel = 0;
void setup()
{
Serial.begin(9600);
pinMode(5, INPUT);
}
void loop()
{
liquidLevel = digitalRead(5);
Serial.print("liquidLevel= "); Serial.println(liquidLevel, DEC);
delay(500);
}
Expected Results
When liquid comes in to contact with the sensor probe the microcontroller will output HIGH logic. When the liquid is not in contact with the probe the microcontroller will output LOW logic.
FAQ
Q&A | Some general Arduino Problems/FAQ/Tips |
---|---|
A | For any questions, advice or cool ideas to share, please visit the DFRobot Forum. |