1 00:00:00,690 --> 00:00:08,689 Hi, we are the students of the SOB and we are going to present our smart bin that can open and close automatically to make with this specializer. 2 00:00:09,689 --> 00:00:23,690 To make this smart bin, we use a bin, a cardboard, an ultrasonic sensor, a servo motor, a microcontroller board, batteries, fixed tape, double-sided tape and hot glue. 3 00:00:23,690 --> 00:00:32,250 hot glue. The ultrasonic sensor is a device that detects the distance between the object and the sensor. 4 00:00:34,409 --> 00:00:41,689 This allows the bin to open automatically when someone approaches. This work by sending a sound 5 00:00:41,689 --> 00:00:48,009 wave and measuring the time it takes to boost back. This time is converted into distance. 6 00:00:48,009 --> 00:01:00,009 The cables of the drasonics sensor are the VCC that provides the electrical current and supply the voltage needed for the sensor to actuate. 7 00:01:00,009 --> 00:01:06,010 The GND or ground cable that provides the return path for the electric current. 8 00:01:06,010 --> 00:01:20,609 the signal cable that sends the electric wave that is sent by the Arduino to the pin of the trigger 9 00:01:20,609 --> 00:01:35,409 and to send the sound wave, the echo cable that reflects the sound wave from the echo, so from the trigger. 10 00:01:35,409 --> 00:01:40,049 The servo motor is the component that opens and closes the DLD. 11 00:01:40,049 --> 00:01:48,709 It is an actuator that rotates in a specific position depending on the signals received from the microcontroller board. 12 00:01:48,709 --> 00:01:55,909 This works by receiving a PWM, 13 00:01:55,909 --> 00:02:02,209 which is a modulation from the Arduino, which determines the rotation angle. 14 00:02:02,209 --> 00:02:10,370 for example if it can be programmed to rotate nightly grades when to open the lid when someone 15 00:02:10,370 --> 00:02:17,889 approaches and back to zero grade when after a few seconds to close it the cables of the 16 00:02:19,009 --> 00:02:23,250 servo motor are the red cable that is the 17 00:02:25,490 --> 00:02:31,810 bcc then the black or brown cable that is the gnd or ground and the yellow or orange that is 18 00:02:31,810 --> 00:02:44,289 the signal cable. We use batteries for giving autonomy to the bin. This is useful because 19 00:02:44,289 --> 00:02:55,009 in case of a power outage the bin can stay working because it doesn't need to be connected 20 00:02:55,009 --> 00:03:05,009 To create the code we use autoblocking and alpha visual programming based on blocks. 21 00:03:05,009 --> 00:03:15,009 To make the code we use the option of the ninja board and we use these blocks. 22 00:03:15,009 --> 00:03:26,379 Then, in the Arduino that the APOS.blocking have an option to change the code notoblocking to Arduino, 23 00:03:26,379 --> 00:03:38,379 we have first the line include servo.h that this define the servo library which is necessary for controlling the servo motor. 24 00:03:38,379 --> 00:03:49,099 motor then the line ultrasound distance one is defined this is this a this 25 00:03:51,020 --> 00:04:02,139 makes the this makes the ultrasonic sensor works that means that the ultrasonic wave is sent from 26 00:04:02,139 --> 00:04:11,580 the trigger and reflect it into the echo. To install this echo in the microcontroller 27 00:04:11,580 --> 00:04:20,860 board we need to move the autoblocking code into the Arduino code. Polysearch has an option to change it. 28 00:04:24,220 --> 00:04:31,500 In our project both the ultrasonic sensor and the servo motor are connected in the Arduino board 29 00:04:32,139 --> 00:04:41,839 Following the configuration of the code, Ultrasonic is connected like the VCC in red pin in digital 3, 30 00:04:41,839 --> 00:04:58,839 the GND in black pin in digital 3, the Tiger in yellow pin in digital 3 and the Echo in yellow pin in another column but this time in digital 4. 31 00:04:58,839 --> 00:05:08,339 Then the servomotor was connected the VCC cable into the red pin in digital 2 in this case 32 00:05:08,339 --> 00:05:12,839 then the GMD to the black pin in digital 2 as well 33 00:05:12,839 --> 00:05:19,839 and finally the signal cable that is the yellow into the yellow pin in digital 2 as well. 34 00:05:19,839 --> 00:05:40,740 This smart frass is useful for weight management, it makes it easier, and by opening and closing 35 00:05:40,740 --> 00:05:46,180 it automatically, it makes it more practical and more energetic. 36 00:05:46,180 --> 00:05:53,860 And this is our project, thanks for listening, and we hope this can serve as inspiration 37 00:05:53,860 --> 00:06:00,500 for future projects for maintaining it hygienically people and for making Boots Galicia.