Arduino Water Level Sensor, Controller + Indicator

August 4, 2017 | Author: Mozammeer Deenmahomed | Category: Arduino, Light Emitting Diode, Electronic Circuits, Electromagnetism, Manufactured Goods
Share Embed Donate

Short Description



Arduino Water Level Sensor, Controller + Indicator

1 of 8

Labs free energy Q&A quizzes Comments Submit article Contact Register Login Arduino 555 Alarms Audio Basic DIY Hobby Lights Measure Power supply Radio Solar Tested Theory Various » Tools »

Arduino Water Level Indicator + Controller This circuit was tested and worked properly! Posted by P. Marian in Arduino, Tested with 19 comments Tagged with: water Share





Here is a tested Arduino project that uses 3 sensor probes as water level indicator with 3 leds and one LCD display + a simple controller that turns on a motor when the water has reached the desired level (the highest in our case). You can use only the leds if you want, the lcd is optional.

9/8/2014 12:31 PM

Arduino Water Level Sensor, Controller + Indicator

2 of 8

Check out the schematic, prototype and video below

The Arduino sketch code is pretty simple even though I spent almost 1 hour to test it. You can download it using the link below and then extract the files. arduino water level skecth Water Level Sensor Code 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13.

//source: #include LiquidCrystal lcd(7, 6, 5, 4, 3, 2); byte sensorPin[] = {8, 9, 10}; byte ledPin[] = {11, 12, 13}; // number of leds = numbers of sensors const byte sensors = 3; int level = 0; int motor = A4; void setup() { for(int i = 0; i < sensors; i++) { pinMode(sensorPin[i], INPUT); pinMode(ledPin[i], OUTPUT);

9/8/2014 12:31 PM

Arduino Water Level Sensor, Controller + Indicator

3 of 8

14. } 15. pinMode(motor, OUTPUT); 16. lcd.begin(16, 2); 17. } 18. 19. void loop() { 20. level = 0; 21. for(int i = 0; i < sensors; i++) { 22. if(digitalRead(sensorPin[i]) == LOW) { 23. digitalWrite(ledPin[i], HIGH); 24. level = sensors - i; 25. } else { 26. digitalWrite(ledPin[i], LOW); 27. } 28. } 29. lcd.clear(); 30. lcd.print("Water level"); 31. lcd.setCursor(0,1); 32. switch(level) { 33. case 1: 34. lcd.print("HIGH"); 35. digitalWrite(motor, HIGH); 36. break; 37. case 2: 38. lcd.print("AVERAGE"); 39. digitalWrite(motor, LOW); 40. break; 41. case 3: 42. lcd.print("LOW"); 43. digitalWrite(motor, LOW); 44. break; 45. default: 46. lcd.print("NO WATER"); 47. digitalWrite(motor, LOW); 48. break; 49. } 50. delay(50); 51. }

On line 2 we have included the LiquidCrystal.h header and then on line 3 the pins where to connect the LCD display. On line 4 we use sensorPin array to set the sensor pins, on line 5 ledPin is where we connect the 3 leds. We connected the motor on pin A4 so we use this in our motor variable. Inside the setup() function we set the sensor pins as INPUT and led pins and motor as OUTPUT. In the loop() we check to see if the water level has reached any sensor and if so then turn an the corresponding led. We also use the LCD to display HIGH if the water has reached the highest poing, AVERAGE for half-filled water tank, LOW when there is little water and NO WATER when the container is empty or the water has not reached the LOW point yet. We also used a motor (or you can use an electric water valve) that is turning ON when the water level is HIGH. This can be useful when you want to empty the tank once it is full or to stop the water flow to the water tank.

9/8/2014 12:31 PM

Arduino Water Level Sensor, Controller + Indicator

4 of 8




Water Level Indicator Circuit


Simple Water Level Indicator


Water Level Indicator/Sensor

Numeric Water Level Indicator

19 Responses to "Arduino Water Level Indicator + Controller" ramesh says: on March 16, 2014 at 5:06 am

1. reply

Whi, this ckt is very usefull n easy to construct, can u tell me how can I get monetered byvsms on my mobilesthroughh at command. Thanks

russ says: on March 18, 2014 at 8:00 pm

2. reply

What are you using as a sensor, just a wire?

P. Marian says: on March 21, 2014 at 5:35 pm reply I am using simple jumper wires, but you’ll have to use probes that do not oxidize in liquids if you want to use it in a water tank. pranav says: on April 3, 2014 at 8:36 am reply hey is it necessary to connect lcd display…..because i dont have one!!! can i construct the circuit without it?? Marty says: on August 13, 2014 at 2:45 pm reply Hi! What are your suggestions for rugged non oxidizing conductors? pawan says: on March 20, 2014 at 7:25 am

3. reply

9/8/2014 12:31 PM

Arduino Water Level Sensor, Controller + Indicator

5 of 8

i want the circuit of water level indicator using these componentstransistor bc 548-4pcs resistor 220 ohm- 6pcs led colored bulb- 4pcs buzzer 9volt battery. can you pls help me out by sending the circuit and explaining how to construct it?? Samaj says: on March 20, 2014 at 7:27 am

4. reply

Very Good Work is it possible this ckt without Arduino. means another way without like 555ic or other component and i want to use a ac submercial motor as a load Excellent project - Hanumanthappa.S says: on March 21, 2014 at 10:32 am

5. reply

You have not published the entire thing. Let me something more because i am searching MCU based projects. I have done the same project using NE555. Let me know about MCU programming Thanks valli says: on March 21, 2014 at 4:10 pm

6. reply

can u tell us d connections in detail pls? and tell d components to be used pls reply

P. Marian says: on March 21, 2014 at 5:31 pm reply You can see the connections in the schematic and the pins where to connect the lcd are showned in the Arduino code. nida says: on March 23, 2014 at 12:59 pm

7. reply

i have run the above code using LCD on ISIS but LCD is not displaying anything,also the motor is continously running irrespective of high.low or avg Frank says: on March 23, 2014 at 8:40 pm

8. reply

This is perfect for my purpose. I want to use it in a storage tank and for watering my garden at intervals that still have to be determined. Kay says: on April 30, 2014 at 7:25 am

9. reply

Hye Mr P. Marian

9/8/2014 12:31 PM

Arduino Water Level Sensor, Controller + Indicator

6 of 8

just want to ask do you have your project flow chart? I want to make a references to my project as very similar to your project here. Really appreciate if u can share me your project flow chart. Thank You Val says: on May 12, 2014 at 6:55 pm

10. reply

I think it’s smart project..but I’m having problems trying to implement this project with BC 547c transistors.. No response from the probes and comes off and on irregularly Maleeha Iesar says: on May 20, 2014 at 6:15 pm

11. reply

good project.very helpful kate says: on May 20, 2014 at 7:32 pm

12. reply

what about if I use this with bluetooth ? and without the motor? how will the code be? please reply Gelu says: on July 6, 2014 at 3:43 pm

13. reply

acest circuit poate fi flosit pentru a masura nivelul de benzina din rezervor?

venketkumar says: on July 22, 2014 at 8:58 pm

14. reply

Sir I need to construct the Water level controller without using the Micro controllers and arduino boards Pls guid me a circuit ramesh says: on July 25, 2014 at 7:22 pm

15. reply

Hi dear rui, Can u tell me the connection of lcd with arduino or parallel with led, pl repl

What do you think about this article? Leave a comment! Name (required) Mail (will not be published) (required)

9/8/2014 12:31 PM

Arduino Water Level Sensor, Controller + Indicator

7 of 8

You may add a picture too

No file selected.

Check this checkbox to get notifications of followup comments via e-mail. You can also subscribe without commenting. electroschematics partners

Login Username


Remember Me

let’s talk about electronics!

ElectroSchematics Community on Google+

9/8/2014 12:31 PM

Arduino Water Level Sensor, Controller + Indicator

8 of 8

Recent Questions How to check whether a Lightening Detector Circuit is working? Need help to disable the PIR in a combined light/movement sensor gsm signal repeater amplifier circuit diagram? recently added electronic circuits SCR Based SSS Solar Charge Control AVR Bootloader – Tutorial #18 Fluorescent Lamp Driver with Starter 4049 Datasheet GSM Home Security Alarm System with Arduino

Links - Policy - Disclaimer - © Copyright 2008 - 2014

9/8/2014 12:31 PM

View more...


Copyright ©2017 KUPDF Inc.