I wanted to make something that would actually help people so I decided to create a trash can. I noticed that a lot of people touch the lids of trash cans which's not very clean. I also wanted to work on a project that would let me use both hardware and coding so I could challenge myself and get better at electronics and programming.

I saw things like doors and sinks and I wondered how they worked. This made me want to create my automatic system but on a smaller scale. The smart trash can I made can open its lid by itself when it detects something, like a hand coming close to it. It uses a sensor to measure the distance in front of the trash can. When something is close enough the smart trash can opens its lid. Then it closes again after a short time. The smart trash can also has lights that show what it is doing so people know if it is open or not. This makes it easier and cleaner to use.

To build the trash can I used simple electronic parts and Arduino code. First I connected a sensor to the Arduino so it could detect when something was close to the trash can. Then I attached a motor to the lid so it could open and close by itself. I also added lights to show what the smart trash can was doing. After I connected all the parts I wrote the code for the Arduino. The code checks how away things are and it opens the lid when something is close enough.

I had to test and adjust the code and the parts a times until the smart trash can worked smoothly. I built the smart trash can by combining parts with Arduino code. I connected a sensor to detect when something was close. I attached a motor to the lid so it could open and close by itself. I also added lights to show what the smart trash can was doing. One of the parts was getting the motor to move correctly without shaking or opening and closing too much.

I am really proud of making a smart trash can that works by itself. I was able to connect and program parts, including a sensor, a motor and lights and make them work together smoothly. I am also proud that I was able to fix problems on my own like making the code work better and adjusting the motor so the lid opened smoothly. Seeing the smart trash can work by itself was really cool. It made me feel good about my skills in electronics and programming.

From this project I learned how to combine hardware and software to make something that works. I got to practice using Arduino and controlling parts like motors and sensors. I also learned how important it is to test and fix both the code and the parts so everything works smoothly. I even learned more about how sensors work and how to make them more accurate.

For my steps I want to make the smart trash can even better and more useful. I want to add a sensor to detect movement more quickly so the lid opens faster. I also want to add a sound to let people know when the lid is opening or closing. Maybe I can even add a screen to show how far away things are so it is easier to use. I also want to make it work with a battery so it does not need to be plugged in all the time. These changes would make the smart trash can more useful and interactive.

I am also thinking about making the smart trash can look better and more polished. Now it is just a simple prototype, with wires and parts showing. I want to make an stronger version with a clean and sleek outside. This would make it more useful and appealing for people to use in their kitchens or offices. I am excited to try materials and maybe even design a special case that hides the parts but still lets the sensor and lid work perfectly.

Built With

Share this project:

Updates