Creating an automatic garbage can that opens on its own is a fun project for the electronics enthusiast. Using an Arduino Nano, an HC-SR04 ultrasonic distance sensor, and a servo, you can easily assemble a system that will open the lid of the tank when approached.
Required components:
Connection diagram
Servo drive
Ultrasonic distance sensor HC-SR04
Accumulators
Note that the input voltage must be in the range of 7 to 12 volts.
**If you do not have the Arduino IDE installed, I advise you to watch the video tutorial, which shows how to install and configure it. At this link you will find information on how to install the driver on the Arduino board.**
Download the firmware from this link and upload it to the Arduino according to the instructions above.
You need to flash the Arduino before connecting all the components. If batteries or other parts are connected to it during the firmware, you risk burning (literally) your computer and Arduino.
We hope that everything worked out for you! The sensor measures temperature and humidity, transmits this data to the Arduino, which in turn displays it on the display.
Disclaimer. This article is created for informational purposes only. All advice and instructions are provided for educational purposes and we are not responsible for any possible consequences related to the implementation of this project. Always use safety precautions when working with electronic components.
If you have any problems or problems, you can contact us via: [email protected].
Hello, friends!
We are the Ukrainian Robotics Team – the national robotics team, and we have a big dream! We are working on creating a robot that will be able to adequately represent our country and win the FIRST Global Challenge 2024, which will be held on September 26-29, 2024 in Athens. This is an extraordinary opportunity for us to meet with the most talented teams from around the world, to exchange experience and improve our skills, as well as to show the world the amazing potential of Ukraine. But we need your help to make our dream come true! We are looking for $10,000 to fund our trip, which includes competition expenses, team transfers and accommodation.
Even a small amount will help us reach our goal!
If you want to support us and help take a step towards the future of Ukraine and robotics, choose one of the methods below that is convenient for you:
Monobank: https://send.monobank.ua/jar/4ViDeg6C3c
Monobank: 5375 4112 1926 1760
PayPal: [email protected]