I have an interest in the environment and also in merging it with technology. That's why I came up with the idea of 'Smart Trash'.
sources:-
https://www.youtube.com/watch?v=whoqckyTrw0
Tinkercard software
Arduino IDE software
Scissor, cutter, Cardboard,Wooden Sticks cotton Ear Buds ,& Tape Roll
First, I started designing the circuit by getting an Arduino, an ultrasonic sensor, and a servo motor. I began by connecting the ultrasonic sensor to the Arduino: I connected its VCC (positive) pin to the Arduino's 5V, the GND (negative) pin to the Arduino's ground, the Trig pin to digital pin 10, and the Echo pin to digital pin 11.
Then, I connected the servo motor: the positive (VCC) wire to the Arduino's 5V, the negative (GND) wire to the Arduino's ground, and the signal (SIG) wire to digital pin 9 on the Arduino.
After that, I started writing the code. I created an if condition so that when the ultrasonic sensor reads a distance < 30 cm, the servo motor moves to a 180-degree angle for 3 seconds. If the condition is not met, the servo moves back to a 0-degree angle.
First, I started by cutting out the body of the trash can. I made four sides with a base measurement of 5 cm, a top measurement of 7 cm, and a height of 12 cm. Then, I made the base (5x5 cm) and the lid (8x8 cm).
After that, I cut a small piece of wood and attached it to the servo motor using glue. Then, I connected this part to the lid of the trash can using a regular thread.
I attached the servo motor inside the trash can using double-sided tape. Finally, I mounted the sensor on the outside using the same double-sided tape.
After that, I started connecting the circuit. I took the positive 5V pin and the ground (GND) pin from the Arduino and placed them on the breadboard. Then, I connected the servo motor: I connected its positive wire to the positive rail on the breadboard, the negative wire to the negative rail, and the signal wire to digital pin 9.
Next, I connected the sensor: its positive and negative pins to the positive and negative rails on the breadboard, the Trig pin to digital pin 10, and the Echo pin to digital pin 11.
Finally, I connected the Arduino to the laptop, uploaded the code, and ran it.
Yes, I faced a few problems. The first one was that I didn't know how to attach the servo motor inside the box. I tried using tape, but it didn't work—it kept coming off. Then I tried glue (like UHU), and it also came off. Finally, I attached it using double-sided tape (like a sticky gum), and it actually held well.
The same issue happened with the stick attached to the servo. I couldn't adjust it properly with the trash can lid. In the end, I wrapped a thread around them to tie them together, and it worked!
I can use the knowledge of electronics to prepare the final project for the fabrication process also I can use online sources to choose the outline of my design .
The coolest thing for this week was Smart Waving Hand