{"id":150406,"date":"2024-11-01T13:10:31","date_gmt":"2024-11-01T07:40:31","guid":{"rendered":"https:\/\/www.electronicsforu.com\/?p=150406"},"modified":"2025-01-21T16:22:52","modified_gmt":"2025-01-21T10:52:52","slug":"arduino-sewer-drain-shield","status":"publish","type":"post","link":"https:\/\/www.electronicsforu.com\/electronics-projects\/arduino-sewer-drain-shield","title":{"rendered":"Arduino-based Sewer Drain Shield for Smart Cities"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"alignright size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"178\" height=\"163\" src=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/07\/efy-tested-1.jpg\" alt=\"EFY Tested\" class=\"wp-image-143513\"\/><\/figure><\/div>\n\n\n<p>Drainage systems are vital for storm water management but often transport pollutants, especially plastics, to rivers and oceans, harming ecosystems. Traditional sewer cleaning methods include manual labour, hydraulic flushing, and chemical cleaners.<\/p>\n\n\n\n<p>Instead, this DIY sewer drain shield system, combining ultrasonic sensors, GSM modules, nets, and PVC pipes, reduces debris entering drainage systems, thus ensuring cleaner, more efficient operations.<\/p>\n\n\n\n<p>This solution is low-maintenance, labour-saving, and supports sustainable waste management. It aligns with the Central government\u2019s Clean India initiative, integrating smart waste management to protect water bodies. The bill of materials is detailed in the table on previous page.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">POC Video<\/h2>\n\n\n\n<figure class=\"wp-block-embed aligncenter is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<span class=\"qA8gcbVhQHoG5NdXwiJWrmaz24kZ6\"><iframe loading=\"lazy\" title=\"Arduino-based Sewer Drain Shield for Smart Cities | Electronics For You\" width=\"696\" height=\"392\" src=\"https:\/\/www.youtube.com\/embed\/jRKHtIkd-XY?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/span>\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td colspan=\"2\"><strong>Bill of Materials<\/strong><\/td><\/tr><tr><td><strong>Components<\/strong><\/td><td><strong>Quantity<\/strong><\/td><\/tr><tr><td><a href=\"https:\/\/www.electronicsforu.com\/technology-trends\/learn-electronics\/arduino-basics-schematics\">Arduino Uno board (MOD1)<\/a><\/td><td>1<\/td><\/tr><tr><td>GSM module SIM800L (MOD2)<\/td><td>1<\/td><\/tr><tr><td>Ultrasonic sensor module (S1)<\/td><td>1<\/td><\/tr><tr><td>USB cable (for connecting 5V)<\/td><td>1<\/td><\/tr><tr><td>Plastic waste<\/td><td>As required<\/td><\/tr><tr><td>Wooden ply<\/td><td>As required<\/td><\/tr><tr><td>PVC pipe<\/td><td>As required<\/td><\/tr><tr><td>Net<\/td><td>As required<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Sewer Drain Shield &#8211; Circuit and Working<\/strong><\/h2>\n\n\n\n<p>Fig. 1 shows the circuit diagram of the proposed drain shield for smart cities. It is built around an Arduino Uno board (MOD1), GSM module SIM800L (MOD2), an ultrasonic sensor module (S1), and a few other components.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"580\" src=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/Circuit-diagram-1024x580.jpg\" alt=\"Sewer Drain Shield Circuit\" class=\"wp-image-150411\" srcset=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/Circuit-diagram-1024x580.jpg 1024w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/Circuit-diagram-500x283.jpg 500w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/Circuit-diagram-741x420.jpg 741w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/Circuit-diagram-696x394.jpg 696w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/Circuit-diagram.jpg 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Fig. 1: Circuit Diagram for Arduino based Sewer Drain Shield<\/figcaption><\/figure><\/div>\n\n\n<p>The Arduino software is used to develop this system. This software is compatible with any Arduino board. The Arduino Uno IDE makes it easy to write code and upload it to the board.<\/p>\n\n\n\n<p>In the source code, the serial pins are defined for the GSM module, and the baud rate is set. The default baud rate of the SIM800L is 4800 for most modules. The phone number is then set to receive an SMS notification when a drain blockage is detected. The distance is measured to check for blockages in the drain net.<\/p>\n\n\n\n<p>This distance is used to create a function that notifies the department by making a call to the designated number to clear the waste collected in the net. Fig. 2 shows a code snippet setting the pins and phone number for the sensor. Fig. 3 shows the code snippet for making the phone call.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"919\" src=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/Code-snippet-setting-the-pins-and-number.jpg\" alt=\"Code for Sewer Drain Shield\" class=\"wp-image-150412\" srcset=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/Code-snippet-setting-the-pins-and-number.jpg 1000w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/Code-snippet-setting-the-pins-and-number-500x460.jpg 500w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/Code-snippet-setting-the-pins-and-number-457x420.jpg 457w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/Code-snippet-setting-the-pins-and-number-696x640.jpg 696w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><figcaption class=\"wp-element-caption\">Fig. 2: Code snippet setting the pins and number<\/figcaption><\/figure>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"531\" src=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/Code-snippet-setting-the-phone-call.jpg\" alt=\"Sewer Drain Shield programming\" class=\"wp-image-150413\" srcset=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/Code-snippet-setting-the-phone-call.jpg 1000w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/Code-snippet-setting-the-phone-call-500x266.jpg 500w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/Code-snippet-setting-the-phone-call-791x420.jpg 791w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/Code-snippet-setting-the-phone-call-696x370.jpg 696w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><figcaption class=\"wp-element-caption\">Fig. 3: Code snippet setting the phone call<\/figcaption><\/figure><\/div>\n\n\n<p><strong>Also Check:<\/strong> <a href=\"https:\/\/www.electronicsforu.com\/arduino-projects-ideas\">Unique DIY Arduino Projects<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Construction and Testing<\/strong><\/h2>\n\n\n\n<p>The phone number to receive the SMS should be included in the source code. After that, the source code may be uploaded to the Arduino Uno board. Once the circuit is assembled based on the diagram in Fig. 1, the system can be powered on.<\/p>\n\n\n\n<p>When the distance detected by the ultrasonic sensor is less than the threshold value (blocking distance from the sensor), the system will attempt to make a call using the GSM module to the set number. After a few seconds, the call will hang up. The authors\u2019 prototype is shown in Fig. 4.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"837\" src=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/Authors-prototype.jpg\" alt=\"DIY Sewer Drain Shield Project\" class=\"wp-image-150414\" style=\"width:471px;height:auto\" srcset=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/Authors-prototype.jpg 700w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/Authors-prototype-418x500.jpg 418w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/Authors-prototype-351x420.jpg 351w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/Authors-prototype-696x832.jpg 696w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\">Fig. 4: DIY Sewer Drain Shield<\/figcaption><\/figure><\/div>\n\n\n<p>After assembling the system correctly, it should be installed into the drainage system. After proper installation of the net into the sewer pipe, the ultrasonic sensor should be attached in such a way that it checks the distance for blockages in the drain net. It collects plastic and other waste in the net, as shown in Fig. 4. When a blockage occurs, the sensor activates and sends an SMS to the responsible person or authority.<\/p>\n\n\n\n<p>For testing purposes, placing a hand in front of the ultrasonic sensor will simulate a drain blockage. However, in actual deployment, the system\u2019s circuit and sensor should be properly waterproofed and dustproofed using appropriate coatings.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/11\/Drainshiledcode.zip\">Download Source Code<\/a><\/div>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><em><strong>Denis Jangeed <\/strong>(left), M.Tech, B.Tech, is Assistant Professor at Department of Civil Engineering, while <strong>Yogesh Kumar Jatav<\/strong> (right), B.Tech, is Design Engineer (CII) at Geetanjali Institute of Technical Studies, Udaipur.<\/em><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Drainage systems are vital for storm water management but often transport pollutants, especially plastics, to rivers and oceans, harming ecosystems. Traditional sewer cleaning methods include manual labour, hydraulic flushing, and chemical cleaners. Instead, this DIY sewer drain shield system, combining ultrasonic sensors, GSM modules, nets, and PVC pipes, reduces debris entering drainage systems, thus ensuring [&hellip;]<\/p>\n","protected":false},"author":208831,"featured_media":150414,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,23,6070,6072,2119],"tags":[51,1985,110,12155],"class_list":{"0":"post-150406","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-advanced-projects","10":"category-beginners-projects","11":"category-diy-projects-video-tutorials","12":"tag-arduino","13":"tag-diy-projects","14":"tag-electronics-projects","15":"tag-nov-2024"},"_links":{"self":[{"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/posts\/150406","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\/208831"}],"replies":[{"embeddable":true,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/comments?post=150406"}],"version-history":[{"count":2,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/posts\/150406\/revisions"}],"predecessor-version":[{"id":156349,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/posts\/150406\/revisions\/156349"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/media\/150414"}],"wp:attachment":[{"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/media?parent=150406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/categories?post=150406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/tags?post=150406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}