This is an old revision of the document!
Name: Manciu Mihaela Group: 1222A
Advantages:
In the future a more effective solution would be to activate a compressor to put the fire out and to implement a compaction system to maximise bin capacity.
}
-libraries for servo motor and sensors are included -components' pins are declared - setup() function: data pin of the servo motor, INPUT pins(ECHO) and OUTPUT pins(TRIGGER) are configured - loop() function: firstly verifies if there is any fire inside the trash can(if yes, sends a message), then checks if the trash can is full(if yes, sends a message) and then the servo motor opens the lid if the distance between hand and lid is less than 30 cm.
* Libraries: DHT sensor library, Servo * Source Code: code.txt
Servo Motor Data Sheet: http://www.ee.ic.ac.uk/pcheung/teaching/DE1_EE/stores/sg90_datasheet.pdf
DHT11 Humidity & Temperature Sensor Data Sheet: https://www.mouser.com/datasheet/2/758/DHT11-Technical-Data-Sheet-Translated-Version-1143054.pdf