Smart Water Motor Projects for Kids

Smart Water Motor Projects for Kids

Overview

This project is about how we can solve the daily problem of wasting water due to overflowing of tanks and wasting of water using this module we can save a lot of water wasted daily.

In this smart water motor whenever the tank has water at a certain level will turn off automatically and whenever the water in the tank is less than the minimum level the motor will turn on automatically.

Hardware required 

  • Arduino Uno R3
  • Resistor
  • Jumper Wires
  • Ultrasonic Sensor
  • Breadboard
  • DC Motor
  • Diode
  • NPN Transistor
  • 9v Battery

Schematic Diagram

Fig 1.  Circuit Diagram

Arduino Code :

long duration, cm, inches;
 
void setup() {
  Serial.begin (9600);
  pinMode(8,OUTPUT);
}
 
void loop()
{
 
  pinMode(9, OUTPUT);
  digitalWrite(9, LOW);
  delayMicroseconds(5);
  digitalWrite(9, HIGH);
  delayMicroseconds(10);
  digitalWrite(9, LOW);
 
  // Read the signal from the sensor:
  pinMode(9, INPUT);
  duration = pulseIn(9, HIGH);
  Serial.println(duration);
  // convert the time into a distance
  cm = (duration/2) / 29.1;
  inches = (duration/2) / 74; 
  
  if(inches > 57){			//tank size 5 feet = 60 inch,
    digitalWrite(8, HIGH);	// start if 57 inch empty
  }else if(inches < 5)		// stop if 5 inch to fill
    digitalWrite(8, LOW);
  
  Serial.print(inches);
  Serial.print("in, ");
  Serial.print(cm);
  Serial.print("cm");
  Serial.println();
  
  delay(250);
}

Precautions

  1. Connections should be done properly.
  2. Arduino is case Sensitive so code accordingly.
  3. Give different and appropriate colors to the wires.
  4. Use resistors for sensors and LCDs.

More Posts

Coding For kids

Coding Courses for Kids Online

Our courses which are tailored for grades 1 to 12, and our hands-on curriculum seamlessly integrates, preparing students for challenges and inspiring the next generation.

Leave a Reply

Coding For kids

Coding Courses for Kids Online

Our courses which are tailored for grades 1 to 12, and our hands-on curriculum seamlessly integrates, preparing students for challenges and inspiring the next generation.

STEM Labs

STEM LAB for Schools

Looking for a cutting-edge makerspace that goes beyond traditional education? Partner with Makers’ Muse to unlock innovation and transformative learning for your students.

Coding Toys

STEM LAB for Schools

Discover a revolutionary coding journey for students with our cutting-edge educational toys. Partner with us to unlock innovative learning experiences that transcend traditional education.

Do you have questions regarding our STEM program?

Send Us A Message