Trashware is a project which aims at environment cleanliness through smart devices.

Public Chat
Similar projects worth following
Trashware is a project which aims at environment cleanliness through smart devices.


Made With PythonBuilt With Love TrashwarePython 3.7.0
The device hacked in this project uses image recognition to identify recyclable and non-recyclable waste and seperate them in 2 different bins.

  • 1 × Arduino Uno Hardware
  • 1 × Ultrasonic Sensor - HCSR04 (Generic) Hardware
  • 1 × HC-05 Bluetooth Module Hardware
  • 1 × SG90 Micro-servo Motor Hardware
  • 1 × Ardunio IDE Software

View all 8 components

  • 1
    How To Build
    1. Connect the ultrasonic sensor and the bluetooth module according to the configurations in the ultrasonic_with_bluetooth/ultrasonic_with_bluetooth.ino file.
    2. Upload the .ino file to the Arduino and connect it to your computer.
    3. Now configure the software part. Inside the project directory, run the following commands -
      • virtualenv Trashware
      • For Windows -
        • cd Trashware/Scripts && activate
        For Linux and Mac -
        • source Trashware/bin/activate
    4. Now run the in terminal
    5. If everything went well, then the program will display the ultrasonic sensor readings on the screen. You can also view the sensor readings on your Android or IOS device by downloading an arduino emulator.
    6. If an object is kept in the range of 30 cm in front of the ultrasonic sensor, then the captures the image through a webcam connected to computer, and the predicts the captured image and classifies it as recyclable or non-recyclable.
    7. If the object is recyclable, then the servo motor turns 45 degree right, dumping it in the recyclable bin. And if the object is non-recyclable, then the servo motor turns 45 degree left dumping it in the non-recyclable bin.

    Note - The code for the servo motor will be added in the future commits. Watch the repository for changes.

    Share and fork the project if you would like to.
    Feel free to pull requests and open issues.

View all instructions

Enjoy this project?



Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates