|
Arduino Nano V3.0 ATMEGA328P |
x 1 | |
|
|
DIY sensor |
x 1 |
|
Soldering Iron Kit |
|
|
Soldering Iron Wire Welding Lead Roll |
Arduino Liquid Level Meter with simple Homemade Sensor
There are many different ways to detect the level of water in a particular container. This time I will describe a way to make a sensor yourself, and then with the help of a microcontroller to accurately determine the level of liquid in the container. I will also show you how this level and its change can be tracked graphically on the PC monitor.
Get 10 PCBs only $5 https://www.pcbway.com/QuickOrderOnline.aspx
To make the sensor, we need only a ribbon cable from old IDE disk or floppy drive. First we need to separate 4 wires from the cable, and cut them to a length equal to the depth of the container in which the liquid level is to be monitored. Then on one side we remove the insulation with a length of about 1 cm. We need to make the other end waterproof in some way.

When immersing a sensor in a liquid, its capacitance changes proportionally, and we detect this change with the help of an Arduino microcontroller. As for the Arduino, in this case we use the "Capacitor" library with the help of which we can measure capacitance with no external hardware, and requires one digital pin and one analog pin.
Next, I will describe the way we can monitor the state of the liquid in the container in graphic form on the PC monitor. For this purpose I will use the great Freeware software "SerialComInstruments". With this software you can create a set of virtual instruments for bidirectional connection with microcontrollers. There are a lot of different instruments available and more will be provided in the future. Instruments can be placed everywhere within the screen. The data protocol is very simple to enable even hobbyiest to come to a working project with only a few lines of microcontroller code in a short time. You can download the software (SerialComInstruments 4.1) at authors page:
http://www.serialcominstruments.freecluster.eu/?i=1
There is also a detailed manuals for the program in .pdf format.

As you can see from the demonstration, the precision of the sensor is really high and the response is linear, which is ideal for this case. We can even increase the accuracy by using two metal strips placed in parallel and laminated with plastic wrap.

I built this sensor after making the video and I can tell you that its accuracy is really great. The wider the strips, the higher the capacitance, and thus the resolution, i.e. the precision of the sensor. Of course the strips should be isolated in some way and not in contact with the liquid.
#include <Capacitor.h>
Capacitor cap1(7,A2);
int kondenzator=0;
int w = 0;
void SendString(byte InstrNo, int MValue) {
Serial.print('#');
Serial.print(InstrNo);
Serial.print('M');
Serial.print(MValue);
Serial.print('<');
}
void setup()
{
Serial.begin(9600);
}
void loop()
{
kondenzator = (cap1.Measure())*100;
//Serial.print(kondenzator); // Measure the capacitance (in pF), print to Serial Monitor
int w = map(kondenzator, 130, 330, 0, 500);
// Serial.print(w);
SendString(1,w); // Instrument #01
SendString(2,w);
delay(500);
}
Arduino Liquid Level Meter with simple Homemade Sensor
Raspberry Pi 5 7 Inch Touch Screen IPS 1024x600 HD LCD HDMI-compatible Display for RPI 4B 3B+ OPI 5 AIDA64 PC Secondary Screen(Without Speaker)
BUY NOW- Comments(0)
- Likes(2)
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Mirko Pavleski
-
Arduino 3D Printed self Balancing Cube
Self-balancing devices are electronic devices that use sensors and motors to keep themselves balanc...
-
Build a 5-Day forecast Raspberry Pi Weather Dashboard (Step-by-Step)
Recently in one of my previous videos,I introduced you to the 7 inch Elecrow Pi Terminal and how to...
-
ESP32 Aneroid Barometer using Squareline Studio and LVGL on CrowPanel Round display
A barometer is a scientific instrument used to measure atmospheric pressure. Rising Pressure genera...
-
LINAMP Project – Winamp-Style Audio Front Panel on Raspberry Pi 5
Winamp is one of the most iconic and historically significant digital media players ever created. I...
-
Retro Style radio with CrowPanel 2.1inch round Display (TEA5767)
Some time ago I presented you a clock project with CrowPanel 2.1inch-HMI ESP32 Rotary Display 480*4...
-
Pi-Pico RX - SDR Radio with New Firmware and Features
A few months ago I presented you a wonderful SDR radio project by DawsonJon 101 Things. In short, i...
-
How to make simple Variable HIGH VOLTAGE Power Supply
High Voltage Power Supply is usually understood as a device that is capable of generating a voltage...
-
DIY 5-Day Rainfall Forecast Device - ESP32 E-Paper Project
In several of my previous projects I have presented ways to make weather stations, but this time I ...
-
Build simple Retro Style VFO (Variable frequency oscillator) with Crowoanel 1.28 inch Round Display
Today I received a shipment with a Small round LCD display from Elecrow. The device is packed in tw...
-
Human vs Robot – Rock Paper Scissors with MyCobot 280 M5Stack
Today I received a package containing the few Elephant Robotics products. The shipment is well pack...
-
How to Build a Simple Audio Spectrum Analyzer with Adjustable Settings
An audio spectrum analyzer is an electronic device or software tool that measures and visually disp...
-
How to Make a Digital Clock on a Vintage B&W TV using Arduino
These days I accidentally came across this small retro Black and White TV with a built-in Radio, so ...
-
Build a $10 Function Generator with Frequency Meter for Your Lab
A function generator is a piece of electronic test equipment used to generate various types of elec...
-
From Unboxing to Coding - Radar Clock on Elecrow’s 2.1 HMI Display
Today I received a shipment with a large round LCD display from Elecrow. The device is packed in two...
-
Making a Retro Analog NTP Clock with Unihiker K10 - Arduino IDE Tutorial
Some time ago I presented you a way to use standard Arduino libraries on the Unihiker k10 developme...
-
Build a Cheap & Easy HF Preselector - Antenna Tuner
HF antenna preselector is an electronic device connected between an HF radio antenna, and a radio r...
-
DIY Static Charge Monitor - Electrostatic Field Detector (Arduino & TL071)
A Static Charge Monitor also known as a Static Field Meter or Electrostatic Voltmeter is a device u...
-
XHDATA D-219 Radio Short Review with complete disassembly
Some time ago I received an offer from XHDATA to be one of the first test users of their new radio m...
-
ARPS-2 – Arduino-Compatible Robot Project Shield for Arduino UNO
56 0 0 -
A Compact Charging Breakout Board For Waveshare ESP32-C3
536 3 4 -
AI-driven LoRa & LLM-enabled Kiosk & Food Delivery System
526 2 0 -
-
-
-
ESP32-C3 BLE Keyboard - Battery Powered with USB-C Charging
735 0 1 -
-
mammoth-3D SLM Voron Toolhead – Manual Drill & Tap Edition
699 0 1 -
-
AEL-2011 Power Supply Module
1378 0 2







