|
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
- 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...
- Arduino Eatrthquake alarm and protection system with D7S seismic Sensor Earthquakes are extremely common events around the world. On average, there are fifty earthquakes a...
- Review and Comparison of Three Inexpensive Metal Detector Kits A metal detector is a device used to detect the presence of metal objects in the ground or other ma...
- How to make simple Arduino RGB Led strip VU Meter VU meter or volume unit meter is a device intended for visual presentation of the audio signal. It ...
- DIY Simple Antistress and Relaxation PEMF Device based on Schumannn resonance frequency 7.83 Hz Schumann resonances are global electromagnetic resonances, generated by lightning discharges in the...
- DIY Si4825 A10 multiband Radio (MW,SW,FM) Thanks to the production of specialized radio chips, nowadays it is possible to make a quality mult...
- DIY simple HUNTER Led Game with Arduino Some time ago I presented you a simple to make, but interesting game, a 1D version simulation of "P...
- XHDATA D-109WB Radio Short Review with complete disassembly Recently I received a shipment of a radio from the brand XHDATA model: D-109WB, so I immediately de...
- Arduino Rotary encoder combination lock (Arduino door lock system with Rotary Encoder) Rotary dial safes typically use a mechanical combination lock. They are valued for their simplicity...
- DIY DRSSTC Music Tesla coil with Interrupter using cheap Driver Module DRSSTC (Dual resonant solid state tesla coil) is a type of Tesla coil that uses solid-state compone...
- Arduino HPDL1414 Retro Clock with Set and Alarm Functions The HPDL-1414 is a 16-segment LED display with four printable fields that is over twenty years old....
- How to turn a 7 inch Elecrow pi terminal into a standalone SDR Radio Today I received the Pi Terminal-7” IPS HMI CM4 Panel All-In-One Module Raspberry Pi Computer from E...
- DIY Simple Functional Lakhovsky MWO (Multiwave Oscillator) Therapy Device The Lakhovsky Multiwave Oscillator (LMO) is a device that was developed by Georges Lakhovsky in the...
- DIY simple Advanced Weather station (5day forecast) and Internet Radio ELECROW crow panel 2.8 inch esp32 display module is ideal for making simple but also relatively com...
- How to turn a Mouse into a Wireless Tuning Knob for SDR Radio A software defined radio basically consists of an RF front-end hardware part and specialized softwa...
- Arduino Car Paint Thickness Indicator - Meter A paint thickness indicator is useful in industries like automotive, aerospace, marine, and constru...
- Simple Arduino Solar Radiation Meter for Solar Panels The sun provides more than enough energy to meet the whole world’s energy needs, and unlike fossil f...
- Simple ESP32 CAM Object detection using Open CV Object detection is a computer vision technique that involves identifying and locating objects with...
-
-
Atomic Force Microscope - electronic part
89 0 0 -
-
-
DIY Fiber Laser Tube Cutting Machine
160 0 1