Video summary

Dijamin Pasti BISA!! Buat Tempat Sampah Pintar Dengan Arduino | Tempat sampah Otomatis [#Tutorial7]

Main summary

Key takeaways

Technology

Summary: Smart Automatic Trash Can (Arduino)

Project Goal

Build a smart/automatic trash can that detects a person/object in front of it and automatically opens and closes the lid.

Core Components / Hardware

  • Arduino Uno (main controller)
  • Mini breadboard
  • HC-SR04 ultrasonic sensor (measures distance to detect objects/humans)
  • SG90 servo motor (opens/closes the trash lid)
  • Jumper cables (male-to-male, male-to-female) and a USB cable
  • Trash can lid/container (any bin with a lid works)

Detection Logic / Behavior

  • If an object/human is detected within 30 cm, the servo opens the lid.
  • Servo movement:
    • Opens to about 100° (noted in subtitles as “100 30°”)
    • Holds for about 5 seconds
  • After 5 seconds, the servo returns to 0° to close.

Wiring / Setup Details

HC-SR04 → Arduino (via breadboard)

  • VCC → 5V
  • TRIG → Arduino pin 8
  • ECHO → Arduino pin 9
  • GND → GND

SG90 Servo → Arduino

  • Brown → GND
  • Red → 5V
  • Yellow (signal/data) → Arduino pin 10

Troubleshooting Notes

  • One failure was caused by incorrect power connections (Arduino pins were not properly connected to GND and 5V).
  • The issue was resolved by correctly connecting GND and VCC (5V).

Arduino IDE / Software Steps

  • Connect the Arduino to a laptop via USB, then in Arduino IDE:
    • Tools → Board → Arduino Uno
    • Select the correct port (the Arduino port must appear)
  • Code availability: The coding is described as being provided via a Google Drive link in the description.
  • Servo library requirement:
    • If the Servo library isn’t installed:
      • Tools → Manage Libraries → search/install Servo
  • Testing:
    • Place a hand/object in front → servo rotates open, then returns to 0°.
    • Subtitles mention an opening around 130° (likely a parameter/variation from the code).

Mechanical Build Notes

  • Servo mounting uses iron wire + hot glue.
  • A hole is made in the trash lid to route the ultrasonic sensor cable.
  • Tidying recommendation: color-code wiring so GND vs VCC vs data don’t get mixed up.

Power / Usability Improvements

  • The Arduino does not need to stay continuously connected to the laptop.
  • It can run on battery power, for example:
    • 18650 battery (battery input)
    • 9V / 9–12V battery pack using a power supply (subtitles mention a 9V “box”)
  • Optional improvement: add an on/off switch.
  • Final goal: cables are tidied so the build is ready to use.

Main Speakers / Sources

  • Tutorial creator / channel host: no specific name provided in the subtitles.
  • Source content comes from the “aha” robotics & electronics channel.

Rate this summary

Your feedback will help improve summaries.

Improve this summary

Reprocess with a stronger model when the summary feels incomplete or inaccurate.

Pro

Translate summary in another language

Pro

Ask questions to this video

Chat for follow-up questions, clarifications, and source-backed answers.

Coming soon

Share this summary

Original video