Professional Documents
Culture Documents
202ad146 - Iot Analytics
202ad146 - Iot Analytics
Add new components to the circuit Add new components to the circuit and
and create sample smart dust bin - create sample smart dust bin -
15min 15min
Use LED indicators on the dust bin Use LED indicators on the dust bin to
to show the current fill level- 10min show the current fill level- 10min
5min 5min
Status Legend :
Self-understood and resolved
Submitted by
SUJITH V
BANNARI AMMAN INSTITUTE OF TECHNOLOGY
(An Autonomous Institution Affiliated to Anna University,
Chennai) SATHYAMANGALAM-638401
JULY 2023
DECLARATION
SUJITH V
202AD146
(Signature of the
Guide) Ms.
NISHA DEVI K
TABLEOFCONTENTS
1. EDGE DETECTION
1.1 OBJECTIVE 6
1.2 FLOWCHART 6
1.3 PROCEDURES 7
1.4 CODING 7
1.5 OUTPUT
1.6 CONCLUSION 1
0
1.7 REFERENCES 1
0
OUTCOME BASED
LABTASK
RUBRICS FORM (*to be filled by the lab handling
faculty only)
Student name:
Register number:
Name of the laboratory:
Name of the lab handling
faculty: Name of the task:
Experiments mapped:
1.
2.
3.
FLOWCHART:
PROCEDURE:
CODING:
#include <Servo.h> //servo library
Servo servo;
int trigPin = 2;
int echoPin = 3;
int servoPin = 9;
void setup() {
servo.attach(servoPin);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
servo.write(0); //close dustbin cap on power on
delay(1000);
servo.detach();
}
void measure() {
digitalWrite(trigPin, LOW);
delayMicroseconds(5);
digitalWrite(trigPin, HIGH);
delayMicroseconds(15);
digitalWrite(trigPin, LOW);
pinMode(echoPin, INPUT);
duration = pulseIn(echoPin, HIGH);
dist = (duration/2) / 29.1; //obtain distance
}
void loop() {
for (int i=0;i<=2;i++) { //average distance
measure();
aver[i]=dist;
delay(50); //delay between measurements
}
dist=(aver[0]+aver[1]+aver[2])/3; //average distance by 3 measurements
if ( dist<40 ) {
//if hand on the distance 10...50 cm
servo.attach(servoPin);
delay(1);
servo.write(90);
delay(5000); //wait 5 seconds
servo.write(0);
delay(1000);
servo.detach();
}
}
OUTPUT:
CONCLUSION:
Thus the implementation of Creating a smart dust bin that monitors its fill level. Use
LED indicators on the dust bin to show the current fill level and emptying the dust bin
when notified is performed.
REFERENCES:
https://www.researchgate.net/publication/
361412318_DESIGN_AND_CONSTRUCTION_OF_A_SMART_DUSTBIN_SYSTEM_WITH_INTERNET_OF_THING
S_IoT_NOTIFICATION.
OUTCOME BASED LABTASK
RUBRICS FORM
Register number:202AD146
Name of the task: Create a smart dust bin that monitors its fill fill level. Use
LED indicators on the dust bin to show the current fill level. Empty the
dustbin when notified.
Experiments mapped:
1.
2.
3
S.N Rubri Maximum Awarded
o cs reward reward
points points
1
2
3
4
5
6
7
8 Project report 2
0
Total 1
5
0