1 / 17

Level Detector

Level detector can be detect somethings level. It can be detect water level, waste level, vehicle oil level in the tank and so on.

rahiron49
Télécharger la présentation

Level Detector

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. GROUP MEMBERS • Presented By- • RAHI MAHMUDI - ID : 1202007 • MD. NIZAM UDDIN SHAON - ID : 1202016 • OMAR BIN MANNAN - ID : 1202018 • SALMAN AHMED - ID : 1202019 • ABDULLAH AL MAMUN - ID : 1202021

  2. Project Name : Level Indicator Using Arduino

  3. Familiarization with project • Monitor Water Levels with Flood Warning Systems • Monitor Wastage level in a dustbin • Monitor water level in a swimming pool • Monitor water level in a river • Monitor water level in a water tank • Monitor Fuel level indicator in a vehicle

  4. TheArduino Code • #define led 4 // led at pin 4 • #define buzzer 5 // buzzer at pin 5 • #define sensor 6 // ir sensor at pin 6 • int sound=250; // set buzzer sound • void setup() • { • Serial.begin(9600); • pinMode(sensor,INPUT); • pinMode(led,OUTPUT); • pinMode(buzzer,OUTPUT); • }

  5. TheArduino Code • void loop() • { • int detect=digitalRead(sensor); // read status of sensor • if(detect==LOW) // if sensor detects obstacle • { • digitalWrite(led,HIGH); // led on • tone(buzzer,sound); // buzzer sounds • } • else{ • digitalWrite(led,LOW); • noTone(buzzer); • } • delay(300); • }

More Related