[vc_row][vc_column width=”1/1″][vc_column_text]This PCB based liquid level sensor converts the level of liquid to a changing voltage level. The voltage level can then be read by the ADC of Arduino Uno or pcDuino.
Another usage of this module is to detect the electroconductivity of the liquid.[/vc_column_text][/vc_column][/vc_row][vc_row][vc_column width=”1/1″][vc_tour][vc_tab title=”Parts List” tab_id=”1395380566-1-36″][vc_column_text]
- 1 x [bigcommerce link=”/arduino-usb-board-uno-r3/” target=”_blank”]Arduino [/bigcommerce]
- 1 x PCB Liquid level sensor
- Several Jumper wires
[/vc_column_text][/vc_tab][vc_tab title=”Wire Diagram” tab_id=”1395380566-2-45″][vc_column_text]We wire the sensors to Arduino Uno in the following way:
Arduino | Water Level Sensor Module |
5V/3V3 | + |
A5 (any one among A0~A5) | S |
GND | – |
The picture of the whole setup is shown below:
[/vc_column_text][/vc_tab][vc_tab title=”Test” tab_id=”1395392138477-2-8″][vc_column_text]
Uploading the following code to Arduino:
void setup(){ Serial.begin(9600); } void loop(){ Serial.print("Water level Sensor Value:"); Serial.println(analogRead(A5)); delay(100); }
Dip the sensor module into the water. Note that the water surface should be below the silver tin lines on the module.
Open serial Monitor and you could be able to read the value.
Now you could add water to the glass, you could see the ADC number increases. Or you could add salt to the water, the value increases too.
Leave a Reply
You must be logged in to post a comment.