0 Comments

Introduction:

By taking the help of modern engineering and technology we have designed an automatic drainage cleaning system. Throwing litter into drain creates obstacle for waste water passage. This system is going to solve the drain blockage problem.

Block diagram:

Components required:

  1. Microcontroller
  2. Servo motor
  3. Buzzer
  4. Resistance
  5. Adaptor
  6. Connecting wire
  7. Trolley


Working:

Waste water flows inside the drain in a particular direction. A perforated trolley is kept at the end of drain. This rotating trolley is attached to a servo motor. Two wires fitted at slightly upper level of drain to sense the level of water. When solid litters come across the trolley, drain is blocked. So, water level increases inside the drain. When water level touches the sensor, servo motor is activated and trolley is rotated upward to clean the garbage and clear the drain. A buzzer sounds to confirm that trolley has cleared the blockage.

Circuit diagram:

Advantages:

  1. This system clears the blockage and cleans the drain.
  2. It is an automatic process.

Code for microcontroller:

Code for microcontroller
//Su-Din Technology  "CLEANED DRAIN USING NODEMCU"
//CONTROL SIGNAL WIRE OF SERVO MUST BE ATTACHED TO A PWM PIN OF ARDUINO
#include<Servo.h>
Servo s1;
int i;
int readPin=A0;
int readVal;
float V=0;
int const buzzPin=05; //D1
  void setup() {
  Serial.begin(9600);
  pinMode(readPin,INPUT);
  pinMode(buzzPin,OUTPUT);
  s1.attach(16);//Control wire of servo to PWM pin D0
  s1.write(0); /*when project is initially powered, servo angle=0, THIS IS A RESET OF PROJECT*/
}
void loop() {
  readVal=analogRead(readPin);/*We have to read the analogue voltage value at pin A0
                                                       which is developed at voltage divider ircuit*/
V=(5./1023.)*readVal;  
Serial.print(V);
Serial.println("volts");
delay(500);
if(V<=4.18){
 s1.write(30);
 delay(1000);
 s1.write(60);
 delay(1000);
 s1.write(90);
 delay(1000);
 s1.write(120);
 delay(1000);
 s1.write(150);
 delay(1000);
 s1.write(180);
 delay(1000);
 digitalWrite(buzzPin,HIGH);
 delay(1000);
 digitalWrite(buzzPin,LOW);
 delay(700);
 digitalWrite(buzzPin,HIGH);
 delay(1000);
 digitalWrite(buzzPin,LOW);
 delay(700);
 digitalWrite(buzzPin,HIGH);
 delay(1000);
 digitalWrite(buzzPin,LOW);
 delay(400000); }
 else{s1.write(0);  
 digitalWrite(buzzPin,LOW);
 delay(1000);}
}

Designer:
Er. Anil Kumar Prusty
Phone No./ Whatsapp :- +91 9861004895

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts