0 Comments

Introduction:

By taking the help of modern engineering and technology, in this project we are trying to make an automatic toilet cleaner. If a person does not use the flush or forget to clean the toilet it is cleaned automatically. This system keeps the toilet clean. This also supports swachha Bharat mission.

Components required:

  1. Adaptor
  2. Relay
  3. Resistor
  4. Diode
  5. LED
  6. Transistor bc547
  7. Buzzer
  8. Ultrasonic sensor
  9. Nodemcu
  10. Pump

Block Diagram:

Components Description:

Relay

Generally relay is defined as an electromagnetic switch. The relay used here is a 5 volt ice cube type.

Resistor

A resistor restricts the flow of current. The resistors used here are carbon film and quarter watt type.

Diode 1N4007

These are general purpose diodes. These diodes have high current capability and low forward voltage drop. The average rectified output current is one ampere.

LED (Light Emitting Diode)

It is a transducer which converts electrical energy into light energy.

Transistor bc547

A transistor amplifies current. It can be used with other components to make an amplifier or switching circuit. BC 547 is a general purpose transistor. It is an npn epitaxial silicon transistor. Its maximum collector current (DC) is 100mA.

Ultrasonic sensor (HC-SR04)

It uses ultrasonic sound waves through air to measure the distance of the target object and the reflected wave is converted into electrical signal.

Water pump

Here we are using a centrifugal submersible type water pump. Inside a pump there is a motor. A motor is a device which converts electrical power into mechanical power.

Buzzer

A buzzer contains a piezo-electric material. Sound originates from vibration. When electric potential difference is applied to piezo-electric material, mechanical vibration is produced. Therefore sound is generated.

Nodemcu

It contains a microcontroller. A microcontroller is a compressed microcomputer which acts by getting commands through software program.

Working:

When a person uses toilet, the person is sensed by the ultrasonic sensor. After some time the microcontroller activates the pump through relay driver. Toilet pan is cleaned automatically by the forced water.

Advantages

  1. This system cleans the toilet automatically.
  2. It is a step towards swachha Bharat mission.
  3. It maintains hygienic condition.

Designer:
Er. Anil Kumar Prusty
WhatsApp: +91 9861004895

Code for microcontroller:

//Automatic toiler cleaner
int const trigPin=16;  //D0
int const echoPin=05;  //D1
int const pumpPin=04;  //D2
int const buzzPin=0;  //D3

void setup() {
pinMode(trigPin,OUTPUT);
pinMode(echoPin,INPUT);
pinMode(pumpPin,OUTPUT);
pinMode(buzzPin,OUTPUT);
             }

void loop() {
int duration,distance;
digitalWrite(trigPin,HIGH);
delay(1);
digitalWrite(trigPin,LOW);
duration=pulseIn(echoPin,HIGH);
distance=(duration/2)/29.1;
if(distance<=5 && distance>=0)
  {
    delay(10000); /*When a person sits on toilet pan, buzzer and flush starts after 10 second*/
    digitalWrite(buzzPin,HIGH);
    delay(1000);
    digitalWrite(buzzPin,LOW);
    digitalWrite(pumpPin,HIGH);
    delay(6000); //Pump works for 6 second
  }
else
  {
    digitalWrite(pumpPin,LOW);
    digitalWrite(buzzPin,LOW);
  }
delay(50);  
}

Leave a Reply

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

Related Posts