5% OFF Over $19, Code: Elephant5; 10% OFF Over $59, Code: Elephant10



PLUG Starter Kit For Arduino Project 18: How to Detect the Water Level

Posted by Fiona Su on

Overview
This lesson we are going to detect the water level using keyestudio water level sensor, showing you the value on the monitor or LCD screen.
Component Required
  • EASY plug control board*1
  • EASY plug Water Level Sensor *1
  • EASY plug 1602 LCD Module *1
  • RJ11 cable*1
  • USB cable*1
Component Introduction

Keyestudio EASY plug Water Sensor
This sensor is easy-to-use, portable and particularly designed to identify and detect water level and water drop.
It can measure the volume of water drop and water quantity through an array of traces of exposed parallel line.
This sensor is small and equipped with the following features:
i) smooth conversion between water quantity and analog quantity;
ii) strong flexibility, outputting analog value;
iii) low power consumption and high sensitivity;
iv) directly connected to microprocessor or other logic circuits, suitable for a variety of development boards and controllers such as Arduino controller, STC single-chip microcomputer, AVR single-chip microcomputer, etc.
Specifications
  • Operating voltage: DC5V
  • Operating current: <20mA
  • Sensor type: Analog
  • Detection area: 40mm x16mm
  • Production process: FR4 double-side tinned
  • Operating temperature: 10%~90% without condensation

Connect It Up
Connect the EASY Plug water level sensor to control board using an RJ11 cable.

 

thumb

Upload the Code
Below is an example code.

thumb

What You Should See

thumb

Hook it up and upload well the code, you will see the led light on the water sensor light up, then open the serial monitor, you will see the analog value.
When place the sensing area of sensor into the water, you can see the data change. The deeper the sensor’s sensing area into water, the greater the value.

thumb

thumb

Extension Experiment
Adding LCD Display
Hookup Guide
Connect the EASY Plug water level sensor and LED module to control board using an RJ11 cable.

thumb

Test Code
Below is an example code.

thumb

What You Should See

thumb

Upload success, you should be able to see the analog value is showed on the LCD screen.

thumb

Little Knowledge:
Remember you can adjust the contrast by rotating a blue potentiometer on the LCD back if you can’t make out the words clearly.

thumb

All Tutorial

 Buy here>>EASY PLUG Super Starter Kit For Arduino STEM EDU

0 comments

Leave a comment

Please note, comments must be approved before they are published