Smart Eco Bin

by Nathanvantomme in Circuits > Raspberry Pi

22 Views, 2 Favorites, 0 Comments

Smart Eco Bin

logo.png
vuilbakdone-removebg-preview.png

I am an MCT student from Howest in Kortrijk, Belgium.

I've created a Smart Eco Bin, designed to efficiently manage waste for businesses and schools. It allows users to easily dispose of both general waste and recyclables (PMD). The Smart Eco Bin is equipped with various sensors and actuators to streamline waste management. Users can interact with it via a responsive web application to monitor the bin's fill level, view the weight of the trash bags, check the temperature inside the bin, and remotely control the opening and closing of the lid.


Smart sorting, greener future

Look at my code and try it yourself if you find it interesting.

The GitHub repository: https://github.com/howest-mct/2023-2024-projectone-mct-VantommeNathan.git

Supplies

bom.png

Electronic Components:

  1. Ultrasonic Sensor (x2)
  2. Temperature Sensor
  3. Weight Sensor
  4. Servo Motor
  5. LCD Display Module
  6. Raspberry Pi
  7. Resistors, Capacitors, and other passive electronic components
  8. Connecting Wires and Cables
  9. Power Supply

Housing and Mechanical Components:

  1. Plastic (for housing)
  2. Screws and Nuts - used for assembly and mounting components.
  3. Hot glue gun
  4. Tape

Software and Programming:

  1. Software (Python)
  2. Web Development (HTML/CSS/JS)
  3. Database Software (SQL)

Some more detail

In my bill of materials you will find all the necessary components to recreate the project.

Schematic

breadboard.png
schema.png

I created my schematics in Fritzing. It is a very handy program to create a schematic for any project.

my colors used in scheme are:

  • Red = 5V
  • Orange = 3.3V
  • Black = GND


Database

data.png

I store all the data from the sensors and actuators in a relational database of SQL (MariaDB).

I'm going to explain a little more about my 5 tables that I using.

Devices

You can see the name and id of each device separately.

History

Here is all the history data of all sensors with value and time.

Action

There are all the actions are stored of all the things that can happen such as sensors, actuators and web.

Action History

Here is all the history data of the actions with value, id and time.

Items

Here you can see the id and type of each item.

You can find the dump file on my GitHub.

Design

vuilbak bovenkant.jpg
vuilbak.jpg

I gather all the necessary components and tools listed in the project description.

I design the plastic enclosure for the Smart Eco Bin, considering component placement and accessibility.

Assemble the Electronic Components

I connect the sensors, servo motor, LCD display module, and Raspberry Pi according to the circuit diagram, using a soldering iron and breadboard for connections.

Wire and Power Up the System

I connect the power supply to the Raspberry Pi and other electronic components, ensuring all wiring connections are accurate and secure.

Set Up the Database

I install and configure the SQL database management software on the Raspberry Pi, defining database tables to store sensor data and other relevant information.

Program the Microcontroller

Using Visual studio code, I write code to read data from sensors, control the servo motor, and display information on the LCD display. I test the code to verify proper functionality.

Develop the Web Application

web.png

I created the responsive web application using HTML and CSS, designing user interface elements and integrating backend functionality to communicate with the Raspberry Pi and database.

Final Assembly and Testing

I install any remaining housing components, perform thorough testing of the Smart Eco Bin, and make final adjustments or improvements as needed.