Design and Implementation of An Autonomous Sorting System Using Mechatronics Principles and AI
Design and Implementation of An Autonomous Sorting System Using Mechatronics Principles and AI
• Actuation and Control: Designing mechanisms for sorting, such as robotic arms or
conveyor belts, that are controlled by feedback loops.
• Automation and Robotics: Designing a system that can automatically handle different
objects without human intervention.
Background
In manufacturing, packaging, and recycling industries, automated systems are widely used for
sorting products, materials, or waste into categories for further processing. Traditional sorting
systems typically use pre-defined rules or manual intervention. With the advent of AI and
mechatronics, intelligent automated sorting systems are now becoming more flexible and adaptive,
enabling systems to handle dynamic environments, detect unknown objects, and optimize sorting
decisions in real-time.
This project will hands-on experience in integrating sensor technologies, mechanical actuators,
control systems, and AI to design and prototype a solution that can solve real-world industrial
automation challenges.
Problem Description
Develop an autonomous sorting system capable of identifying and sorting objects based on
specific attributes (size, color, shape, etc.). The system should consist of the following
components:
1. Object Detection: The system must utilize vision or proximity sensors (e.g., cameras,
infrared sensors, or ultrasonic sensors) to detect and recognize objects on a conveyor belt
or tray.
2. Control System: Develop an embedded system (e.g., Arduino, Raspberry Pi) to interface
with sensors and actuators, making real-time decisions on sorting.
3. Sorting Mechanism: The mechanical part of the system should include actuators such as
robotic arms, servos, or pneumatic systems to perform the sorting action.
4. AI Integration: Use AI/ML models to classify objects based on their features (shape, size, or
color) and improve system performance over time by adapting to new objects.
5. Real-time Feedback and Adjustment: The system must be able to respond to dynamic
changes, such as moving objects with varying speeds, or objects that are not within the
original scope of the system.
• A decision-making process that adjusts based on real-time data (e.g., AI model predictions
or sensor readings).
• A method of evaluating system efficiency, such as sorting accuracy or processing time per
object.
Deliverables
1. Project Documentation: A comprehensive report detailing:
Evaluation Criteria
1. Application of Mechatronics Principles (30%):
2. AI Implementation (30%):
2. Multi-Robot Collaboration: Design a system where multiple robotic arms or sorting units
collaborate to handle a larger throughput, requiring coordination and communication.
3. Adaptability to Changing Conditions: Implement a feature where the system can adapt to
new types of objects or environmental changes (e.g., lighting conditions or object speed).
3. VEXcode VR: For simulating robots and sorting mechanisms in a virtual environment using
pre-built simulation tools.
Detailed Notes
1. MATLAB/Simulink
• Description: MATLAB and Simulink provide powerful tools for modeling and simulating
mechanical systems, control systems, and AI applications.
• Mechatronics Simulation: You can use Simulink to model the robot arm, sensors, and
actuators, while MATLAB can be used for processing sensor data and controlling the sorting
actions.
• AI Integration: MATLAB offers toolboxes for machine learning, computer vision (with the
Image Processing Toolbox), and neural networks that can be used for color detection,
object classification, and process optimization.
• Pros: Great for algorithm development, real-time simulations, control systems, and AI
integration.
Website: MATLAB/Simulink
2. V-REP (CoppeliaSim)
• AI Integration: You can integrate Python scripts for AI algorithms, including computer vision
and machine learning, to recognize objects and make decisions based on color or shape.
• Pros: Highly versatile, supports multi-robot setups, and includes a built-in physics engine.
• Cons: Learning curve for advanced functionality, but extensive documentation is available.
Website: CoppeliaSim
• Mechatronics Simulation: ROS can interface with sensors and actuators, while Gazebo
can simulate environments, robots, and real-world dynamics, allowing for testing of motion
control and sensor feedback loops.
• AI Integration: You can integrate AI algorithms, such as computer vision (OpenCV) and
machine learning (TensorFlow, PyTorch), for object recognition and classification, using ROS
nodes.
• Pros: Flexible, widely used in academic and research settings, large community, open-
source.
• Cons: Steep learning curve for beginners, requires setup and configuration of multiple tools
(ROS, Gazebo, etc.).
• Description: Unity is a widely used game engine that can be adapted for robotics
simulations. It is highly effective for visual simulations and allows for realistic rendering of
environments.
• Mechatronics Simulation: Unity can be used to model robots, sorting systems, and
environment layouts. You can integrate Unity with ROS for hardware simulation and control.
• AI Integration: Unity supports integration with AI tools, such as computer vision and
reinforcement learning, using TensorFlow or Python APIs.
• Pros: Highly realistic rendering, good for visualizing robotic operations, support for various
plugins, and easy to interface with ROS.
• Cons: Requires configuration for hardware interfaces and is not specifically built for
robotics, though with ROS integration, it becomes powerful.
Website: Unity
• Description: SolidWorks is a professional 3D CAD software that can be used for designing
and simulating mechanical systems, including robotic arms, conveyors, and sorting
mechanisms.
• Mechatronics Simulation: With SOLIDWORKS Motion, you can simulate the movement of
mechanical parts and analyze their dynamics. You can also simulate actuator forces and
kinematic behavior.
• Pros: Excellent for designing and simulating mechanical parts and systems, very precise
kinematic analysis.
• Cons: Not focused on AI or machine vision, so integration with other tools is necessary.
Website: SolidWorks
• Description: If you prefer working in Python, you can use PyCharm (IDE) along with Python
libraries like OpenCV for object detection and PyBullet for physics simulation.
• Mechatronics Simulation: While OpenCV provides tools for color-based object detection,
PyBullet can simulate the robotic arm and environment interactions, allowing you to test
motion control and sorting mechanisms.
• AI Integration: OpenCV is widely used for computer vision tasks such as color detection
and classification, and you can integrate machine learning models using TensorFlow,
PyTorch, or scikit-learn for optimization.
• Cons: You need to integrate different libraries and manage the environment setup yourself.
• Pros: Seamless integration with MATLAB, ideal for systems involving mixed-domain
simulation (e.g., mechanical and control systems).
3. ROS with Gazebo: Excellent for complex robotic simulations with AI integration.
4. Unity with ROS Integration: Best for visual simulations and integration with ROS.
5. SolidWorks: Excellent for mechanical design, with integration options for simulations.
6. PyCharm with OpenCV/PyBullet: Python-centric, good for deep integration with AI and
vision systems.
Each of these simulation tools can serve as a great platform to develop and test your automated
sorting system without the need for physical hardware, allowing you to focus on refining the
mechatronics and AI algorithms.
• Cost: MATLAB/Simulink is not free; however, students can access it at a discounted price.
2. V-REP (CoppeliaSim)
• Free Access: CoppeliaSim is available for free for non-commercial use, which includes
student projects and educational purposes. However, commercial licenses require a fee.
• Free Access: ROS and Gazebo are both open-source, which means they are completely
free to use for students and researchers. They have an extensive community and support
forums for help.
• Cost: Free for students and individuals with certain revenue limits.
• Free Access: Unity provides a free version for students and hobbyists, which can be used
for educational and non-commercial purposes. If you're developing a commercial product,
you would need to upgrade to a paid version.
• ROS Integration: You can integrate Unity with ROS using plugins, which are also free to use.
• Free Access: SolidWorks offers student versions at a discounted price, but it is not
completely free. Many educational institutions also provide access to SolidWorks through
campus licenses, so it's worth checking with your university for free access.
• Free Access: PyCharm Community Edition is completely free for students. Additionally,
OpenCV and PyBullet are both open-source and free to use. You can freely access the
necessary libraries to work on simulations and AI applications.
4. Unity with ROS Integration: Free for students, with certain revenue limitations for
commercial use.
Sensors details
These sensors can be used for object detection, classification, and automation in the sorting
system.
o Use: For visual object detection and recognition (e.g., color, shape, and texture).
o How It Works: The camera captures images of the objects, which can be processed
using image processing techniques (e.g., OpenCV) or AI models (e.g., convolutional
neural networks) for classification.
• Smartphone Cameras:
o Use: Smartphones are equipped with high-quality cameras and can be used for
image-based object detection.
o How It Works: Using the phone’s processing power, image recognition algorithms
(e.g., TensorFlow or OpenCV) can identify and sort objects.
2. Proximity and Distance Sensors
o Example: These sensors are commonly used for proximity detection and can be
placed along the conveyor to detect the presence or distance of objects.
o How It Works: Ultrasonic waves are emitted, and the time it takes for the waves to
bounce back is measured to calculate distance, which is used for sorting decisions
or to prevent collisions.
o How It Works: When an object passes the IR sensor, the reflected light changes,
allowing the system to detect object presence or position.
o Example: The VL53L0X ToF sensor can be used to measure the distance to objects
with high accuracy.
o How It Works: This sensor sends out a laser and measures the time it takes for the
laser to return, calculating the distance to an object.
o How It Works: Measures the rate of acceleration along various axes, enabling
feedback for position or speed control.
o Example: A gyroscope can help track and control the rotational movement of
actuators or robotic arms to ensure accurate positioning for sorting objects.
o How It Works: It measures the rate of rotation around specific axes, helping to
stabilize or control motion.
o Use: Detecting the force applied by an object (e.g., to identify when an object is
placed or pressed onto a sorting mechanism).
o Example: An FSR can be placed on a sorting tray to detect if an object has been
placed on it or when it has been moved.
o How It Works: As pressure is applied, the resistance of the sensor changes, which
can be measured to detect force or pressure levels.
• Piezoelectric Sensors:
o Example: An RGB color sensor can be placed above the conveyor belt to detect the
color of objects and help classify them based on color for sorting.
o How It Works: The sensor uses light-sensitive elements to detect the intensity of
red, green, and blue light, which can then be used to classify the color of objects.
o Use: Measuring ambient lighting levels to adjust the system's sensitivity in varying
light conditions.
o Example: A Light Dependent Resistor (LDR) can be used to adjust the sensor's
threshold for object detection based on environmental lighting changes.
o Use: Identifying objects based on embedded tags, useful for advanced sorting
systems in warehouse automation or logistics.
o Example: Objects could be tagged with RFID labels, and an RFID reader would
identify the object before sorting.
o How It Works: The RFID reader sends out radio waves to communicate with the
RFID tags, retrieving stored information such as object type, size, or category for
sorting.
o Example: A DC motor could be used to drive a conveyor belt, while a stepper motor
could be used to control the position of a robotic arm that picks and places objects.
o How It Works: DC motors provide continuous rotation, while stepper motors offer
precise control over position, making them ideal for precise object sorting tasks.
o Example: A small servo motor could be used to push or direct an object on the
conveyor belt to the correct sorting container.
8. Environmental Sensors
o Example: The system can adjust sorting parameters based on temperature and
humidity to optimize object handling.