{"id":16072,"date":"2024-11-10T17:00:00","date_gmt":"2024-11-10T11:30:00","guid":{"rendered":"https:\/\/www.electronicsforu.com\/?p=16072"},"modified":"2025-01-23T10:41:34","modified_gmt":"2025-01-23T05:11:34","slug":"automatic-water-pump-controller","status":"publish","type":"post","link":"https:\/\/www.electronicsforu.com\/electronics-projects\/automatic-water-pump-controller","title":{"rendered":"Automatic Water Pump Controller"},"content":{"rendered":"<p style=\"text-align: justify;\">Here\u2019s a circuit for an automatic water pump controller that manages the operation of a water pump motor. The motor automatically turns on when the water level in the overhead tank (OHT) drops below a set threshold and switches off once the tank is full.<\/p>\n<p style=\"text-align: justify;\">This simple, compact, and cost-effective design uses a Single NAND gate IC (CD4011) and operates on a 12V DC power supply, with minimal power consumption.<\/p>\n<p style=\"text-align: justify;\">The circuit can be divided into two main sections:<\/p>\n<ol>\n<li style=\"text-align: justify;\">Controller Circuit<\/li>\n<li style=\"text-align: justify;\">Indicator Circuit<\/li>\n<\/ol>\n<h2><strong>Automatic Water Pump Controller Circuit<\/strong><\/h2>\n<p style=\"text-align: justify;\">Let&#8217;s take two reference probes \u2018A\u2019 and \u2018B\u2019, placed inside the tank. Probe \u2018A\u2019 represents the lower water level, while probe \u2018B\u2019 represents the upper water level. A 12V DC power supply is connected to probe C, which defines the minimum water level that should always be maintained in the tank.<\/p>\n<figure id=\"attachment_16076\" aria-describedby=\"caption-attachment-16076\" style=\"width: 700px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2016\/05\/768_1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-16076 size-full\" src=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2016\/05\/768_1.jpg\" alt=\"Automatic water pump controller circuit\" width=\"700\" height=\"312\" srcset=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2016\/05\/768_1.jpg 700w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2016\/05\/768_1-696x310.jpg 696w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><figcaption id=\"caption-attachment-16076\" class=\"wp-caption-text\">Automatic water pump controller circuit<\/figcaption><\/figure>\n<p style=\"text-align: justify;\">The lower-level probe \u2018A\u2019 is connected to the base of transistor T1 (BC547), with its collector linked to 12V power supply and its emitter is connected to relay RL1. <a href=\"https:\/\/www.electronicsforu.com\/technology-trends\/learn-electronics\/relay-switch-pin-diagram\">Relay<\/a> RL1 is also connected to pin 13 of <a href=\"https:\/\/www.electronicsforu.com\/technology-trends\/learn-electronics\/basic-logic-gates-and-truth-tables\">NAND gate<\/a> N3.<\/p>\n<p style=\"text-align: justify;\">Similarly, the upper-level probe \u2018B\u2019 is connected to the base of transistor T2 (BC547). The collector of T2 is connected to 12V power supply, while its emitter is connected to both pins 1 and 2 of NAND gate N1 and ground via resistor R3.<\/p>\n<p style=\"text-align: justify;\">The output pin 4 of NAND gate N2 is connected to pin 12 of NAND gate N3.<\/p>\n<p style=\"text-align: justify;\">The output of N3 is connected to input pin 6 of N2 and the base of transistor T3 via resistor R4.<\/p>\n<p style=\"text-align: justify;\">Relay RL2 connected to the emitter of transistor T3 is used to drive the motor.<\/p>\n<figure id=\"attachment_16075\" aria-describedby=\"caption-attachment-16075\" style=\"width: 400px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-16075 size-full\" src=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2016\/05\/A56_table.jpg\" alt=\"LED Water level Indication\" width=\"400\" height=\"225\" \/><figcaption id=\"caption-attachment-16075\" class=\"wp-caption-text\">LED Water level Indication<\/figcaption><\/figure>\n<h3><strong>Circuit Operation<\/strong><\/h3>\n<p style=\"text-align: justify;\">If the tank is filled below probe A, <a href=\"https:\/\/www.electronicsforu.com\/videos-slideshows\/videos\/transistors-basics-video-tutorial\">transistors<\/a> T1 and T2 do not conduct and the output of N3 goes high. This high output energizes relay RL2 to drive the motor, and it starts pumping water into the tank.<\/p>\n<p style=\"text-align: justify;\">When the tank is filled above probe A but below probe B, water inside the tank provides base voltage to drive transistor T1 and relay RL1 energizes to make pin 13 of gate N3 high.<\/p>\n<p style=\"text-align: justify;\">However, water inside the tank does not provide base voltage to transistor T2, so it does not conduct, and the logic built around NAND gates N1 and N2 outputs low to pin 12 of gate N3. The net effect is that the output of N3 remains high, and the motor continues pumping water into the tank.<\/p>\n<p style=\"text-align: justify;\">When the tank is filled up to probe B level, water inside the tank still provides base voltage to transistor T1 and relay RL1 energizes to make pin 13 of gate N3 high.<\/p>\n<p style=\"text-align: justify;\">At the same time, water inside the tank also provides base voltage to drive transistor T2 and the logic built around NAND gates N1 and N2 outputs high to pin 12 of gate N3. The net effect is that the output at pin 11 of N3 goes low and the motor stops pumping water into the tank.<\/p>\n<p style=\"text-align: justify;\">When the water level falls below probe B but above probe A, water inside the tank still provides base voltage to transistor T1 and relay RL1 remains energized to make pin 13 of gate N3 high.<\/p>\n<p style=\"text-align: justify;\">However, transistor T2 doesn\u2019t conduct, and the logic built around NAND gates N1 and N2 outputs high to pin 12 of N3. As a result, the output of N3 remains low and the motor remains stopped.<\/p>\n<p style=\"text-align: justify;\">When the water level falls below probe A, both transistors T1 and T2 do not conduct. NAND gate N3 gives a high output to drive relay RL2 and the motor restarts pumping water into the tank.<\/p>\n<h2><strong>Automatic Water Pump Indicator Circuit<\/strong><\/h2>\n<figure id=\"attachment_16074\" aria-describedby=\"caption-attachment-16074\" style=\"width: 550px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-16074 size-full\" src=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2016\/05\/623_2.jpg\" alt=\"Automatic Water Pump Indicator Circuit\" width=\"550\" height=\"505\" srcset=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2016\/05\/623_2.jpg 550w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2016\/05\/623_2-457x420.jpg 457w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/><figcaption id=\"caption-attachment-16074\" class=\"wp-caption-text\">Fig. 2: Automatic Water Pump Indicator Circuit<\/figcaption><\/figure>\n<p style=\"text-align: justify;\">Fig. 2 shows the indicator\/monitoring circuit. It consists of five LEDs, which glow to indicate the level of water in the overhead tank. Since a 12V power supply is given to water at the base of the tank, transistors T3 through T7 get base voltage and conduct to light up the LEDs (LED5 down through LED1).<\/p>\n<p style=\"text-align: justify;\">When the water in the tank reaches the minimum at level C, transistor T7 conducts and LED1 glows.<\/p>\n<p style=\"text-align: justify;\">When the water level rises to one-fourth of the tank, transistor T6 conducts and LED1 and LED2 glow.<\/p>\n<p style=\"text-align: justify;\">When the water level rises to half of the tank, transistor T5 conducts and LED1, LED2, and LED3 glow.<\/p>\n<p style=\"text-align: justify;\">When the water level rises to three-fourths of the tank, transistor T4 conducts LED1 through LED4 glow.<\/p>\n<p style=\"text-align: justify;\">When the tank is full, transistor T3 conducts and all five LEDs glow. So, from the glowing LEDs, one can know the water level in the tank (see the table). The LEDs can be mounted anywhere for easy monitoring.<\/p>\n<p style=\"text-align: justify;\"><strong>Note:<\/strong><\/p>\n<p style=\"text-align: justify;\">The user can adjust the level to which water must be filled in the tank by adjusting the heights of probes A and B. The stand and adjusting screws should be insulated to avoid shorting.<\/p>\n<h3><strong>Safety Considerations<\/strong><\/h3>\n<ul>\n<li><strong>Electrical Isolation: <\/strong>Ensure all electrical components, particularly the probes and relays, are properly insulated to prevent water from contacting the wiring. Utilize waterproof coatings for the probes to enhance durability.<\/li>\n<li><strong>Proper Grounding:<\/strong> Always check that the system is properly grounded to avoid electrical risks and maintain user safety.<\/li>\n<li><strong>Power source Safety:<\/strong> When using a 12V DC power source or higher, double-check all connections to prevent short circuits. Consider installing a fuse to provide additional protection against electrical problems<\/li>\n<li><strong>Avoid Water-Electrical Contact:<\/strong> To protect the circuit from water exposure, use a sealed, waterproof housing for all control components.<\/li>\n<\/ul>\n<h4><strong>Related Projects<\/strong><\/h4>\n<ul>\n<li><a href=\"https:\/\/www.electronicsforu.com\/electronics-projects\/automatic-water-pump-motor-controller\">Automatic Water Pump Motor Controller<\/a><\/li>\n<li><a href=\"https:\/\/www.electronicsforu.com\/electronics-projects\/hardware-diy\/motion-activated-tap-water-flow-circuit\">Motion Activated Tap Water Flow Circuit<\/a><\/li>\n<li><a href=\"https:\/\/www.electronicsforu.com\/electronics-projects\/automatic-water-level-controller\">Automatic Water level controller<\/a><\/li>\n<\/ul>\n<p>Still, Looking for projects? Check Top 50 Electronics For You&#8217;s <a href=\"https:\/\/www.electronicsforu.com\/mini-projects-ideas\">Mini Projects<\/a>.<\/p>\n<hr \/>\n<p style=\"text-align: justify;\">This article was first published on 3 October 2004 and was updated in October 2024.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here\u2019s a circuit for an automatic water pump controller that manages the operation of a water pump motor. The motor automatically turns on when the water level in the overhead tank (OHT) drops below a set threshold and switches off once the tank is full. This simple, compact, and cost-effective design uses a Single NAND [&hellip;]<\/p>\n","protected":false},"author":206768,"featured_media":16076,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,23,6071],"tags":[114,111,110,113],"class_list":{"0":"post-16072","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-electronics-projects","8":"category-hardware-diy","9":"category-intermediate-projects","10":"tag-ece-projects","11":"tag-electrical-projects","12":"tag-electronics-projects","13":"tag-mini-projects"},"_links":{"self":[{"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/posts\/16072","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/users\/206768"}],"replies":[{"embeddable":true,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/comments?post=16072"}],"version-history":[{"count":2,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/posts\/16072\/revisions"}],"predecessor-version":[{"id":156507,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/posts\/16072\/revisions\/156507"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/media\/16076"}],"wp:attachment":[{"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/media?parent=16072"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/categories?post=16072"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/tags?post=16072"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}