Skip to content

danglehoanganh/fruit-sorting-system-iot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎓 Faculty of Information Technology (Dai Nam University)

🍎 SMART FRUIT SORTING SYSTEM USING ESP8266

IoT and Smart Agriculture Project



📖 Project Overview

This project develops an IoT-based Smart Fruit Sorting System using ESP8266 NodeMCU and multiple sensors.

The system automatically detects, measures, classifies, and sorts fruits based on their relative size. Data from the sorting process can be monitored through a web dashboard in real time.

Features

✅ Fruit Detection using IR Sensor

✅ Distance Measurement using SRF05

✅ Automatic Fruit Classification

✅ Servo-based Sorting Mechanism

✅ LCD I2C Monitoring

✅ Real-time Statistics Counter

✅ WiFi Connectivity

✅ Web Dashboard Monitoring


🎯 Objectives

  • Develop an automatic fruit sorting prototype.
  • Apply IoT technology in agriculture.
  • Classify fruits according to size.
  • Monitor sorting statistics remotely.
  • Demonstrate ESP8266 IoT applications.

🏗️ System Architecture

+----------------------+
|   Fruit Prototype    |
+----------+-----------+
           |
           v
+----------------------+
|      IR Sensor       |
+----------+-----------+
           |
           v
+----------------------+
|      SRF05 Sensor    |
+----------+-----------+
           |
           v
+----------------------+
|    ESP8266 NodeMCU   |
+----------+-----------+
           |
    +------+------+
    |             |
    v             v
+------+     +----------+
|Servo |     | LCD I2C  |
+------+     +----------+
    |
    v
Fruit Sorted

           |
           v
+----------------------+
| Next.js Dashboard    |
| Node.js + MongoDB    |
+----------------------+

⚙️ Hardware Components

Component Quantity
ESP8266 NodeMCU 1
SRF05 Ultrasonic Sensor 1
IR Sensor 1
Servo SG90 1
LCD I2C 16x2 1
Breadboard 1
Jumper Wires Several

📂 Classification Logic

Banana

Distance < 10 cm

Orange

10 cm <= Distance < 20 cm

Apple

Distance >= 20 cm

🔄 System Workflow

Fruit Enter
      |
      v
IR Sensor Detects Object
      |
      v
SRF05 Measures Distance
      |
      v
ESP8266 Processes Data
      |
      v
Fruit Classification
      |
      +----> Banana
      |
      +----> Orange
      |
      +----> Apple
      |
      v
Servo Sorting
      |
      v
Counter Update
      |
      v
LCD Display Update
      |
      v
Dashboard Update

📊 Current Project Status

Module Status
ESP8266 Setup
IR Sensor
SRF05 Sensor
Servo SG90
LCD I2C
Fruit Counter
WiFi Communication 🔄
Dashboard Integration 🔄
MongoDB Storage 🔄

📁 Project Structure

fruit-sorting-system-iot/
│
├── src/
│   ├── main.cpp
│
├── include/
│
├── lib/
│
├── dashboard/
│   ├── frontend/
│   ├── backend/
│   └── database/
│
├── docs/
│
├── platformio.ini
│
└── README.md

🔮 Future Development

  • Computer Vision Fruit Recognition
  • TCS3200 Color Detection
  • Conveyor Belt Integration
  • Mobile Application
  • Cloud IoT Deployment
  • Advanced Analytics Dashboard

👨‍🎓 Student Information

Name: Dang Le Hoang Anh

Faculty: Information Technology

University: Dai Nam University

Project: Smart Fruit Sorting System Using ESP8266

Technology: ESP8266, SRF05, IR Sensor, Servo SG90, LCD I2C, Next.js, Node.js, MongoDB

About

bài tập lớn môn Smart City

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages