Skip to content

neeltron/Hack-At-Home-II

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hack-At-Home-II

Description

In third-world countries like India, recyclable and non-recyclable waste is usually misclassified and even a lot of people don't remember where their trash should go. Trash Misclassifications can even have a major impact on increasing greenhouse emissions, which further contribute to climate change. To solve this problem, I'm presenting a smart bin that is currently using my laptop's webcam to take an image of the material, and then it sends that image to Google Cloud. With the help of Google's CloudVision API, it identifies what is there in the image and returns it to my client. Depending upon the name of that object, my program classifies it as either trash or recyclable material and then opens up one compartment accordingly.

Prerequisites

  • Arduino Uno/Nano/Mega
  • 9g Servo x2
  • Some jumper wires
  • A Google Cloud and Billing Account (Go through this documentation.)

Hardware Setup

Connect D3 and D4 to the PWM pins for each servo and 5V to VCC, Vin to Vcc and GND to GND.

Installation

Arduino IDE can be installed from this link.

To install OpenCV:

pip install opencv-python

To install PySerial:

pip install pyserial

To install Google CloudVision:

pip install google-cloud-vision

After installation, you should be able to execute SmartBin.py. To integrate the hardware, you'll have to upload SmartBin.ino to your Microcontroller (Arduino UNO, Nano, Mega, etc.)

Tech Stack

  • C++ (Arduino)
  • Python (OpenCV, Basic)
  • Google CloudVision
  • Internet of Things

Future Scope

I'll be making it a fully independent setup that will use Raspberry Pi and its camera, instead of an Arduino with my laptop's webcam.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published