Inspiration

Toronto houses have a Blue Bin, a Green Bin and a garbage bin at the curb, but not every home has separate bins inside. So the sorting mistake usually happens in the kitchen, long before anything reaches the curb.

The numbers show how big the problem is:

In 2025, about 35% of what went into Toronto's Blue Bins didn't belong there (City of Toronto). About half of the garbage the city collects should have gone in the Blue or Green Bin: about 23% is recyclables and about 27% is organics (City of Toronto).

I wanted to fix the problem where it starts: the bin inside your home.

What it does

BinSight is a small camera that sits on your kitchen bin. When you bring something close, a sensor notices it and the camera takes one photo. An AI model looks at the photo and says which Toronto bin it belongs in: Blue Bin, Green Bin or garbage. Every result is saved, and the app shows a chart of what's in your bin.

It protects against contamination in two ways:

Sorted Garbage mode (first shield): this is for homes with separate bins inside the house. You pick which bin BinSight is watching: Organic, Waste or Recycle. If something goes in that doesn't belong, it beeps right away, so you can take it back out and delete its entry. Composition tracking (second shield): this handles the edge cases, like a kitchen with only one bin or a wrong item nobody took out. BinSight knows the mix, for example 60% organics. The whole bag goes to the outdoor bin that most of it belongs in, instead of a guess. The chart also shows what you keep getting wrong.

How I built it

Hardware: a Freenove ESP32-S3 camera board, an HC-SR04 ultrasonic distance sensor and an active buzzer, connected with jumper wires (no soldering). Firmware (Arduino / C++): the board watches the sensor. When something comes within 30 cm, it waits half a second so the photo isn't blurry. It takes one picture and sends it to my laptop over USB. It doesn't take another picture until the item moves away, and it beeps when the app tells it to. App (Python, Flask, pyserial): it receives each photo and sends it to Google's Gemini API to find the right bin. It saves the result to the history and updates the chart. The Sorted Garbage screen has the three buttons and sends the beep command when an item doesn't match. I used Claude Code in VS Code to help write and debug the code.

Challenges I ran into

WiFi kept dropping. The camera board's WiFi went bad for minutes at a time, and the camera code sometimes ran out of memory and crashed the board. I dropped WiFi and moved everything to USB serial, sending each photo as raw JPEG bytes. Not enough power pins. The board has one 3V3 pin and one GND pin, and the sensor was using both. I powered the buzzer from two spare GPIO pins instead, one set HIGH and one set LOW. The buzzer also beeps on LOW, so the pins have to be set in the right order or it chirps at startup. Blurry photos and double scans. The sensor fires while your hand is still moving. The board waits half a second before taking the photo, and only resets once the item is past 40 cm. Setup on Ubuntu. Arduino IDE 2 wouldn't open, a system service (brltty) kept grabbing the USB port, and I lost time on the wrong USB-C port. What to do with a mixed bin. A mixed bag still brings some contamination wherever it goes. That's why Sorted Garbage mode is the first shield. Composition tracking is the backup that keeps the damage as small as possible.

Accomplishments that I am proud of

It works end to end, hands-free. Hold something near the bin, and moments later it's identified, matched to a Toronto bin and added to the chart. Sorted Garbage mode really beeps when the wrong item goes in. It's made from cheap, off-the-shelf parts, with no soldering. I built it solo: the wiring, the firmware and the app.

What I learned

Most hardware problems come from power, pins or wiring, not code. A cable can beat WiFi. For a demo that has to work every time, USB was the right call. With cameras, timing matters: wait for the hand to stop moving. How to send images over a serial cable: a start marker, the length, then the bytes.

What's next for Bin_Sight

Go wireless: add a battery and a reliable connection, so it doesn't need a laptop. A phone app for the chart and the alerts. Weigh what goes in with a load cell, so the percentages are by weight, the way the city measures waste. Measure success: check its answers against Toronto's Waste Wizard on 20–30 common items. Then count wrong-bin items in one kitchen for a week, with and without BinSight. Run a small model on the device to cut API costs and work offline. Scale up to apartment buildings, where many households share the same bins.

Built With

Share this project:

Updates

Submission history