Skip to content

This project uses Roboflow's model and Arduino to automate the detection and sorting of plastic waste. The system identifies different types of plastics and controls a servo motor to sort them accordingly. It leverages computer vision and machine learning to enhance recycling efficiency and accuracy.

Notifications You must be signed in to change notification settings

BENi-Aditya/Waste-Segregation-with-Roboflow-and-Arduino

Repository files navigation

Waste Segregation with Roboflow and Arduino

Waste Segregation with Roboflow and Arduino utilizes computer vision and machine learning to identify and sort recyclable plastics, automating the recycling process. By employing Roboflow's pre-trained model and Arduino for servo motor control, this project reduces human labor and enhances recycling rates, addressing the urgent need for effective waste management.

Components

Technologies Used

  • Roboflow: For the pre-trained model to detect recyclable plastics.
  • OpenCV: For video capture and frame processing.
  • Python: Programming language used for backend development.
  • PySerial: Library for serial communication with Arduino.
  • Arduino: For controlling the servo motor based on detection results.

Concept and Need

Recycling is a crucial process in waste management, aimed at reducing waste, conserving natural resources, and minimizing environmental impact. Manual sorting of recyclable materials is labor-intensive, time-consuming, and prone to human error. Automating this process with technology can significantly enhance efficiency and accuracy.

Waste Segregation with Roboflow and Arduino offers a smart solution to this problem. By using computer vision and machine learning, it accurately identifies various types of recyclable plastics. The integration with Arduino allows for precise control of the sorting mechanism, making the recycling process faster and more reliable.


Installation

  1. Clone the repository:
    git clone https://github.com/your-username/Waste-Segregation-Roboflow-Arduino.git
  2. Navigate to the project directory:
    cd Waste-Segregation-Roboflow-Arduino
  3. Install dependencies:
    pip install -r requirements.txt
  4. Create a `.env` file in the root directory and add your API keys:
    ROBOFLOW_API_KEY=your_roboflow_api_key_here
  5. Connect your Arduino and upload the appropriate sketch to it.
  6. Run the script:
    python inference_arduino.py

Usage

  • The script initializes the camera and continuously captures video frames.
  • Type s in the terminal to send the current frame to Roboflow for inference.
  • The detected plastic type will determine the command sent to the Arduino to sort the plastic.

Contributing

Contributions are welcome! If you have any suggestions, improvements, or new features to add, feel free to open an issue or create a pull request.


Waste Segregation with Roboflow and Arduino - Automate Your Recycling

Identify and sort recyclable plastics efficiently using computer vision and machine learning.

About

This project uses Roboflow's model and Arduino to automate the detection and sorting of plastic waste. The system identifies different types of plastics and controls a servo motor to sort them accordingly. It leverages computer vision and machine learning to enhance recycling efficiency and accuracy.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages