CHAPTER 4 ANALYSIS AND DESIGN

Similar documents
FABO ACADEMY X ELECTRONIC DESIGN

DASL 120 Introduction to Microcontrollers

PCB & Circuit Designing (Summer Training Program) 6 Weeks/ 45 Days PRESENTED BY

Electronics Design Laboratory Lecture #10. ECEN 2270 Electronics Design Laboratory

PCB & Circuit Designing (Summer Training Program 2014)

Robotics & Embedded Systems (Summer Training Program) 4 Weeks/30 Days

PCB & Circuit Designing

Simulation Of Radar With Ultrasonic Sensors

Internet of Things Student STEM Project Jackson High School. Lesson 3: Arduino Solar Tracker

Programming PIC Microchips

HAW-Arduino. Sensors and Arduino F. Schubert HAW - Arduino 1

Embedded Systems & Robotics (Winter Training Program) 6 Weeks/45 Days

Lab 2: Blinkie Lab. Objectives. Materials. Theory

Lecture 4: Basic Electronics. Lecture 4 Brief Introduction to Electronics and the Arduino

Castle Creations, INC.

ECE 445 Spring 2017 Autonomous Trash Can. Group #85: Eshwar Cheekati, Michael Gao, Aditya Sule

Internet of Things (Winter Training Program) 6 Weeks/45 Days

Autonomous Obstacle Avoiding and Path Following Rover

EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Labs Introduction to Arduino

Enhanced SmartDrive40 MDS40B

Lesson 3: Arduino. Goals

Interfacing Sensors & Modules to Microcontrollers

2D Floor-Mapping Car

A Model Based Approach for Human Recognition and Reception by Robot

Robotic Navigation Distance Control Platform

Arduino Uno Pinout Book

SL300 Snow Depth Sensor USL300 SNOW DEPTH SENSOR. Revision User Manual

AlphaBot Assembly Diagram

Obstacle Avoiding Robot

GCE SYSTEMS AND CONTROL TECHNOLOGY

DC Motor and Servo motor Control with ARM and Arduino. Created by:

USER MANUAL SERIAL IR SENSOR ARRAY5

International Journal of Advance Engineering and Research Development

Pin Symbol Wire Colour Connect To. 1 Vcc Red + 5 V DC. 2 GND Black Ground. Table 1 - GP2Y0A02YK0F Pinout

Group #17 Arian Garcia Javier Morales Tatsiana Smahliuk Christopher Vendette

Performance Analysis of Ultrasonic Mapping Device and Radar

LaserPING Rangefinder Module (#28041)

I. INTRODUCTION MAIN BLOCKS OF ROBOT

Citrus Circuits Fall Workshop Series. Roborio and Sensors. Paul Ngo and Ellie Hass

INSTANT ROBOT SHIELD (AXE408)

Safe Landing of Autonomous Amphibious Unmanned Aerial Vehicle on Water

BEYOND TOYS. Wireless sensor extension pack. Tom Frissen s

Marine Debris Cleaner Phase 1 Navigation

GSM BASED PATIENT MONITORING SYSTEM

Project Name: SpyBot

Introduction: Components used:

High Current DC Motor Driver Manual

MOBILE ROBOT LOCALIZATION with POSITION CONTROL

EEL5666C IMDL Spring 2006 Student: Andrew Joseph. *Alarm-o-bot*

Introduction. Theory of Operation

Wireless Sensor Network for Intra-Venous Fluid Level Indicator Application

Available online Journal of Scientific and Engineering Research, 2018, 5(4): Research Article

Implementation Of Water Level Conditioning System Using Wireless Multi-Point Communication

DISTANCE MEASUREMENT AND OBSTACLE AVOIDING USING ULTRASONIC SENSOR AND ARDUINO

INA169 Breakout Board Hookup Guide

Mechatronics Project Report

Object Detection for Collision Avoidance in ITS

JEPPIAAR SRR Engineering College Padur, Ch

CONSTRUCTION GUIDE Robotic Arm. Robobox. Level II

HAND GESTURE CONTROLLED ROBOT USING ARDUINO

Designing of a Shooting System Using Ultrasonic Radar Sensor

HVW Technologies Analog Infra-Red Ranging System (AIRRS )

Adafruit 16-Channel Servo Driver with Arduino

Ultrasonic Multiplexer OPMUX v12.0

ZX Distance and Gesture Sensor Hookup Guide

DR-TRC105-EV Evaluation Kit. User s Guide

DC motor control using arduino

Adaptive dryer based on LDR and water brick sensor: Case study at household industrial application

Mechatronic Design, Fabrication and Analysis of a Small-Size Humanoid Robot Parinat

PWM CONTROL USING ARDUINO. Learn to Control DC Motor Speed and LED Brightness

ROTRONIC HygroClip Digital Input / Output

A Simple Microcontroller-Based 4-20 ma Current Loop Receiver for Sensors with Current Transmitters

EGG 101L INTRODUCTION TO ENGINEERING EXPERIENCE

THE INPUTS ON THE ARDUINO READ VOLTAGE. ALL INPUTS NEED TO BE THOUGHT OF IN TERMS OF VOLTAGE DIFFERENTIALS.

Building an autonomous light finder robot

Water Level Indicator

Intelligent Tactical Robotics

Total Hours Registration through Website or for further details please visit (Refer Upcoming Events Section)

List of Items Available in the Laboratory the Lab

A Design for the Integration of Sensors to a Mobile Robot. Mentor: Dr. Geb Thomas. Mentee: Chelsey N. Daniels

Data Transmission Definition Data Transmission Analog Transmission Digital Transmission

Lesson 13. The Big Idea: Lesson 13: Infrared Transmitters

WELCOME TO THE SEMINAR ON INTRODUCTION TO ROBOTICS

Objectives: Learn what an Arduino is and what it can do Learn what an LED is and how to use it Be able to wire and program an LED to blink

GetTutorialized Workshops Brochure-2017

SEN Description. Features. MG-811 Specifications

Development of a MATLAB Data Acquisition and Control Toolbox for BASIC Stamp Microcontrollers

Arduino STEAM Academy Arduino STEM Academy Art without Engineering is dreaming. Engineering without Art is calculating. - Steven K.

AUTOMATIC RESISTOR COLOUR CODING DETECTION & ALLOCATION

Carbon Dioxide (Tiny CO2) Gas Sensor. Rev TG400 User Manual

Applications. Operating Modes. Description. Part Number Description Package. Many to one. One to one Broadcast One to many

University of Florida Department of Electrical and Computer Engineering EEL 5666 Intelligent Machines Design Laboratory GetMAD Final Report

The Robot Builder's Shield for Arduino

LINE MAZE SOLVING ROBOT

TRC EV DR TRC EV DR TRC EV

Formal Report of. Project 2: Advanced Multimeter using VHDL

MB7137, MB7138, MB7139

Implementaion of High Performance Home Automation using Arduino

New Approach on Development a Dual Axis Solar Tracking Prototype

Automobile Prototype Servo Control

Transcription:

9 CHAPTER 4 ANALYSIS AND DESIGN 4.1 Analysis In this project, the sorting activity of the item or packet delivery is done automatically with the computer (integrated with Arduino microcontroller). The components and sensors used in this prototype include: Arduino Mega 1280 microcontroller, conveyor, ultrasonic sensor HC-SR04, laser sensor, ldr sensor, DC geared motor, LCD display, and load cell sensor. Illustration 4.1: Ultrasonic Sensor HC-SR04 Illustration 4.2: How Ultrasonic Sensor Work In General In general, ultrasonic sensors are only used to measure the distance of an object by reflecting sound waves to an object. Sound waves sent by an ultrasonic transmitter will lead to a targeted object, then the sound waves will be reflected again to the ultrasonic receiver. With the process of sending and receiving back

10 sound waves (reflections), the distance from the object or object will be obtained. Because, ultrasonic sensors work by utilizing sound waves as signals to transmit and receive data. And in this project, ultrasonic sensors are used to calculate the thickness (width) and also the height (height) of a package. The principle of measuring the distance of an object and the thickness / height of a package is almost the same. Measuring the thickness and height of packets is done by measuring the maximum measurement distance first, which is then reduced by the distance from the sensor to the surface of the object / package to be measured. So that the thickness and height of objects / packets can be calculated and known the results.

11 Illustration 4.4: Module Laser Illustration 4.3: Module LDR Laser sensor and ldr sensor are combined into 1 tool, which serves to measure the length of packets in this project. Laser sensor as sender (in the form of red light) and ldr sensor as receiver. The light / laser beam will be directed right at the ldr sensor. The packet to be measured in length, will be placed on top of the conveyor running. When the packet first touches the laser (the front of the package), then the first ms (milisecond) value will be stored.

12 When the back of the package is about the laser beam, the length calculation of the packet will be considered completed and the second ms (milisecond) value will be stored, since there is no longer any object. Thus, to obtain a long value, it is done by subtracting the second ms value by the first ms value (when the laser beam first touches the object, and when the last object touches the laser light). Illustration 4.5: Load Cell Sensor Straight Bar (5 Kg) To measure the mass or weight of the packet, in this project using a load cell sensor Straight Bar with a capacity of 5 kg. The load cell sensor is designed by attaching or installing the left arm of the load cell to the base, and installing the wooden board as a weighing board in the right arm of the load cell. Packages that have been calculated and obtained the value of volume, will be taken to the weighing board using a conveyor. When the package is above the weighing board, it will take ms (milliseconds) to optimize the mass or weight calculation of the packet. So, to get the result of calculating the mass of an object, the object must be placed on the weighing board, then wait a while, and the result will come out.

13 Illustration 4.6: Module HX711 (Load Cell Amplifier) This is a supporting component for load cell sensors. This component is commonly called the HX711. HX711 is a module that serves to strengthen the signal for the load cell sensor. By using this module, microcontroller can read and know the existence of signal sent by load cell sensor. Because of the deficiencies in the load cell sensor, which can only send signals with small voltage, to overcome the problem, this load cell sensor is usually combined with HX711 module so that the transmitted signal can be captured by microcontroller with 0V - 5V capacity.

14 DC geared yellow motor, used as a motor or conveyor drive in packet sorting process. This motor is attached to one side of the conveyor roller that serves as the prime mover, while one roller on the other hand only serves to help the conveyor base to work. Illustration 4.7: DC Geared Motor (Yellow)

15 To control the DC geared motor running as desired, then needed a module / driver support. The module is the l298n module. In this project, the l298n module is used to control the speed and direction of motor rotation on the DC geared motor. Illustration 4.8: Module L298n (Motor Driver)

16 Illustration 4.9: LCD Display LCD display is one component of microcontroller has a function to display the results of program processing in this project. The result of calculating the volume value (value of length, width value, high value), volumetric conversion value, mass value or packet weight, will be displayed into this 16 x 2 display LCD screen.

17 Illustration 4.10: Board Arduino Mega 1280 Microcontroller is a tool where there is a chip embedded in it. This tool has a function to control an electronic circuit, and generally this microcontroller can also save a program that has been made. This tool is equipped with various components that are small, very small, or even invisible to the eye. On this board, there is a CPU (Central Processing Unit), input and output, memory, analog to digital converter, and various other components that are already integrated into one such device, called a microcontroller. In this project, the microcontroller used is Arduino Mega 1280 microcontroller. Because in this microcontroller has many pins or slots that can be used for various components and sensors. In this packet delivery sorting project, the slots or pins required are quite large. Because in this project there are 3 ultrasonic sensor, 1 laser sensor, 1 ldr sensor, 1 DC geared motor, 1 module / driver l298n, 1 led, 1 load cell sensor, and 1 module HX711.

18 Konveyor OFF Ketika Benda Datang Benda 1 Sampel Panjang Lebar Tinggi Volume (Sensor) Volumetrik Aktual (Load Cell) Aktual (Timbangan) Volume (Asli) 1 11.45 7.66 4.17 365.73819 0.073147638 0.1 0.125 346.5 2 9.66 7.4 4.37 312.38508 0.062477016 0.13 0.125 346.5 3 10.14 7.9 4.33 346.85898 0.069371796 0.13 0.125 346.5 4 11.77 7.4 4.3 374.5214 0.07490428 0.12 0.125 346.5 5 9.74 7.5 3.89 284.1645 0.0568329 0.13 0.125 346.5 6 10.32 7.03 4.19 303.982824 0.0607965648 0.13 0.125 346.5 7 11.13 6.98 4.19 325.510206 0.0651020412 0.13 0.125 346.5 8 9.78 7.59 4.2 311.76684 0.062353368 0.13 0.125 346.5 9 9.92 7.3 3.98 288.21568 0.057643136 0.13 0.125 346.5 10 11.04 7.5 3.86 319.608 0.0639216 0.12 0.125 346.5 11 9.67 7.5 4.27 309.68175 0.06193635 0.13 0.125 346.5 12 10.05 7.9 4.22 335.0469 0.06700938 0.13 0.125 346.5 13 11.98 7.23 3.92 339.532368 0.0679064736 0.13 0.125 346.5 14 10.8 7.45 4.34 310.5756 0.06211512 0.12 0.125 346.5 Rata-rata 10.5321428571 7.4528571429 4.1592857143 323.3991655714 0.0646798331 0.1257142857 0.125 346.5 Rata-rata Prosentase Error 4.4421837911 0.6325474411 0.4739336493 7.1431335909 7.1431335909 0.5681818182 % % % % % % Table 4.1: Object Testing 1 (Conveyor OFF Delay) (Table 4.1) Percentage Error 1 ( P : 11 cm ; L : 7.5 cm ; T : 4.2 cm ; M : 0.125 kg ) Value : (P) : 4.4421837911 % Value : (L) : 0.6325474411 % Value : (T) : 0.4739336493 % Value : (V) : 7.1431335909 % Value : Volumetric Weight : 7.1431335909 % Value : Actual Weight : 0.5681818182 % Value : Actual Weight (Digital Scales) : 0.125 kg Value : Real Volume : 346.5 cm 3

19 Benda 2 Sampel Panjang Lebar Tinggi Volume (Sensor) Volumetrik Aktual (Load Cell) Aktual (Timbangan) Volume (Asli) 1 5.12 3.78 4.19 81.091584 0.0162183168 0.04 0.035 107.242 2 5.28 3.87 4.27 87.251472 0.0174502944 0.03 0.035 107.242 3 4.97 5.12 3.87 98.477568 0.0196955136 0.04 0.035 107.242 4 5.1 4.1 4.32 90.3312 0.01806624 0.03 0.035 107.242 5 4.86 4.05 3.58 70.46514 0.014093028 0.04 0.035 107.242 6 4.97 3.9 4.1 79.4703 0.01589406 0.03 0.035 107.242 7 5.3 5.03 4.31 114.90029 0.022980058 0.04 0.035 107.242 8 5.3 3.98 4.01 84.58694 0.016917388 0.04 0.035 107.242 9 4.5 3.35 4.52 68.139 0.0136278 0.02 0.035 107.242 10 5.28 3.43 3.99 72.260496 0.0144520992 0.04 0.035 107.242 11 5.18 4.08 4.03 85.171632 0.0170343264 0.04 0.035 107.242 12 4.97 3.96 4.31 84.825972 0.0169651944 0.04 0.035 107.242 13 4.64 5.07 4.04 95.040192 0.0190080384 0.03 0.035 107.242 14 4.77 4.1 3.98 78.03243 0.015606486 0.04 0.035 107.242 Rata-rata 5.0171428571 4.13 4.1085714286 85.0031582857 0.0170006317 0.0357142857 0.035 107.242 Rata-rata Prosentase Error 15.6036446469 4.1162227603 0.2320185615 26.1623710963 26.1623710963 2 % % % % % % Table 4.2: Object Testing 2 (Conveyor OFF Delay) (Table 4.2) Percentage Error 2 ( P : 5.8 cm ; L : 4.3 cm ; T : 4.3 cm ; M : 0.035 kg ) Value : (P) : 15.6036446469 % Value : (L) : 4.1162227603 % Value : (T) : 0.2320185615 % Value : (V) : 26.1623710963 % Value : Volumetric Weight : 26.1623710963 % Value : Actual Weight : 2 % Value : Actual Weight (Digital Scales) : 0.035 kg Value : Real Volume : 107.242 cm 3

20 Benda 3 Sampel Panjang Lebar Tinggi Volume (Sensor) Volumetrik Aktual (Load Cell) Aktual (Timbangan) Volume (Asli) 1 10.84 6.2 4.79 321.92632 0.064385264 0.2 0.2 273.6 2 9.32 5.9 4.79 263.39252 0.052678504 0.2 0.2 273.6 3 10.36 6.16 4.83 308.239008 0.0616478016 0.2 0.2 273.6 4 10.36 5.79 4.9 293.92356 0.058784712 0.205 0.2 273.6 5 10.25 6.1 4.8 300.12 0.060024 0.2 0.2 273.6 6 9.26 6 4.69 260.5764 0.05211528 0.2 0.2 273.6 7 9.62 6 4.62 266.6664 0.05333328 0.2 0.2 273.6 8 9.05 5.99 4.73 256.410935 0.051282187 0.2 0.2 273.6 9 10.25 6.16 4.29 270.8706 0.05417412 0.2 0.2 273.6 10 9.32 6.04 4.95 278.64936 0.055729872 0.205 0.2 273.6 11 9.66 5.99 4.85 280.63749 0.056127498 0.2 0.2 273.6 12 10.05 5.92 4.9 291.5304 0.05830608 0.2 0.2 273.6 13 10.64 6.03 4.55 291.92436 0.058384872 0.205 0.2 273.6 14 9.32 8.86 4.83 408.74724 0.081749448 0.2 0.2 273.6 Rata-rata 9.8785714286 6.2242857143 4.7514285714 292.4010423571 0.0584802085 0.2010714286 0.2 273.6 Rata-rata Prosentase Error 3.8322487346 3.6033968327 2.0408163265 6.4298821254 6.4298821254 0.5328596803 % % % % % % Table 4.3: Object Testing 3 (Conveyor OFF Delay) (Table 4.3) Percentage Error 3 ( P : 9.5 cm ; L : 6 cm ; T : 4.8 cm ; M : 0.200 kg ) Value : (P) : 3.8322487346 % Value : (L) : 3.6033968327 % Value : (T) : 2.0408163265 % Value : (V) : 6.429882154 % Value : Volumetric Weight : 6.429882154 % Value : Actual Weight : 0.5328596803 % Value : Actual Weight (Digital Scales) : 0.200 kg Value : Real Volume : 273.6 cm 3

21 Benda 4 Sampel Panjang Lebar Tinggi Volume (Sensor) Volumetrik Aktual (Load Cell) Aktual (Timbangan) Volume (Asli) 1 7.72 3.2 3.56 87.94624 0.017589248 0.04 0.04 117.078 2 7.5 4.12 4.17 128.853 0.0257706 0.04 0.04 117.078 3 6.99 3.29 4.2 96.58782 0.019317564 0.05 0.04 117.078 4 7.28 3.53 3.74 96.112016 0.0192224032 0.04 0.04 117.078 5 7.31 3.4 3.67 91.21418 0.018242836 0.05 0.04 117.078 6 6.98 4.32 4.37 131.771232 0.0263542464 0.04 0.04 117.078 7 7.31 3.41 3.8 94.72298 0.018944596 0.05 0.04 117.078 8 7.72 3.61 3.56 99.214352 0.0198428704 0.04 0.04 117.078 9 6.93 3.21 4.53 100.771209 0.0201542418 0.03 0.04 117.078 10 7.25 3.45 3.86 96.54825 0.01930965 0.04 0.04 117.078 11 7.11 4.29 4.27 130.243113 0.0260486226 0.03 0.04 117.078 12 7.39 3.72 4.22 116.011176 0.0232022352 0.04 0.04 117.078 13 7.24 3.56 3.68 94.849792 0.0189699584 0.04 0.04 117.078 14 7.17 4.28 4.11 118.454136 0.0236908272 0.04 0.04 117.078 Rata-rata 7.2785714286 3.6707142857 3.9814285714 105.949964 0.0211899928 0.0407142857 0.04 117.078 Rata-rata Prosentase Error 8.5377821394 6.2463514302 9.9526066351 10.5031050317 10.5031050317 1.7543859649 % % % % % % Table 4.4: Object Testing 4 (Conveyor OFF Delay) (Table 4.4) Percentage Error 4 ( P : 7.9 cm ; L : 3.9 cm ; T : 3.8 cm ; M : 0.040 kg ) Value : (P) : 8.5377821394 % Value : (L) : 6.2463514302 % Value : (T) : 9.9526066351 % Value : (V) : 10.5031050317 % Value : Volumetric Weight : 10.5031050317 % Value: Actual Weight : 1.7543859649 % Value : Actual Weight (Digital Scales) : 0.040 kg Value : Real Volume : 117.078 cm 3

22 Benda 5 Sampel Panjang Lebar Tinggi Volume (Sensor) Volumetrik Aktual (Load Cell) Aktual (Timbangan) Volume (Asli) 1 9.47 4.98 3.8 179.21028 0.035842056 0.15 0.15 172.8 2 10.98 5.04 4.02 222.463584 0.0444927168 0.16 0.15 172.8 3 9.5 5.1 3.69 178.7805 0.0357561 0.15 0.15 172.8 4 10.6 4.87 3.46 178.61212 0.035722424 0.15 0.15 172.8 5 9.63 5.27 3.53 179.147853 0.0358295706 0.16 0.15 172.8 6 10.35 5.3 3.41 187.05555 0.03741111 0.14 0.15 172.8 7 9.34 5.91 3.8 209.75772 0.041951544 0.15 0.15 172.8 8 9.56 4.69 3.69 165.446316 0.0330892632 0.16 0.15 172.8 9 10.06 5.08 3.55 181.42204 0.036284408 0.15 0.15 172.8 10 10.44 5.79 3.86 233.327736 0.0466655472 0.14 0.15 172.8 11 9.21 4.68 3.41 146.980548 0.0293961096 0.15 0.15 172.8 12 10.05 5.14 3.66 189.06462 0.037812924 0.16 0.15 172.8 13 10.74 5.14 3.82 210.877752 0.0421755504 0.14 0.15 172.8 14 9.91 5.3 3.94 202.73878 0.040547756 0.15 0.15 172.8 Rata-rata 9.9885714286 5.1635714286 3.6885714286 190.3489570714 0.0380697914 0.1507142857 0.15 172.8 Rata-rata Prosentase Error 3.8901601831 3.1677963757 1.6393442623 9.2193607685 9.2193607685 0.4739336493 % % % % % % Table 4.5: Object Testing 5 (Conveyor OFF Delay) (Table 4.5) Percentage Error 5 ( P : 9.6 cm ; L : 5 cm ; T : 3.6 cm ; M : 0.150 kg ) Value : (P) : 3.8901601831 % Value : (L) : 3.1677963757 % Value : (T) : 1.6393442623 % Value : (V) : 9.2193607685 % Value : Volumetric Weight : 9.2193607685 % Value : Actual Weight : 0.4739336493 % Value : Actual Weight (Digital Scales) : 0.150 kg Value : Real Volume : 172.8 cm 3

23 Konveyor ON Ketika Benda Datang Benda 1 Sampel Panjang Lebar Tinggi Volume (Sensor) Volumetrik Aktual (Load Cell) Aktual (Timbangan) Volume (Asli) 1 5.57 7.78 3.65 158.17129 0.031634258 0.1 0.125 346.5 2 5.39 8.65 4.01 186.960235 0.037392047 0.13 0.125 346.5 3 5.5 7.83 3.6 155.034 0.0310068 0.13 0.125 346.5 4 5.27 7.21 3.89 147.807163 0.0295614326 0.12 0.125 346.5 5 4.91 8.47 3.86 160.528522 0.0321057044 0.13 0.125 346.5 6 5.07 8.41 3.91 166.717317 0.0333434634 0.13 0.125 346.5 7 4.89 8.02 3.89 152.557242 0.0305114484 0.13 0.125 346.5 8 5.09 8.38 4.01 171.043342 0.0342086684 0.13 0.125 346.5 9 4.71 7.81 4.03 148.243953 0.0296487906 0.13 0.125 346.5 10 5.07 7.85 3.96 157.60602 0.031521204 0.12 0.125 346.5 11 4.73 7.62 3.96 142.728696 0.0285457392 0.13 0.125 346.5 12 5.7 8.48 3.96 191.41056 0.038282112 0.13 0.125 346.5 13 5.41 8.31 3.98 178.929258 0.0357858516 0.13 0.125 346.5 14 4.87 8.53 3.91 164.502756 0.0329005512 0.12 0.125 346.5 Rata-rata 5.1557142857 8.0964285714 3.9014285714 163.0171681429 0.0326034336 0.1257142857 0.125 346.5 Rata-rata Prosentase Error 113.3555001385 7.3665637406 6.0606060606 112.5542996161 112.5542996161 0.5681818182 % % % % % % Table 4.6: Object Testing 1 (Conveyor ON, No OFF Delay) (Table 4.6) Percentage Error 1 ( P : 11 cm ; L : 7.5 cm ; T : 4.2 cm ; M : 0.125 kg ) Value : (P) : 113.3555001385 % Value : (L) : 7.3665637406 % Value : (T) : 6.0606060606 % Value : (V) : 112.5542996161 % Value : Volumetric Weight : 112.5542996161 % Value : Actual Weight : 0.5681818182 % Value : Actual Weight (Digital Scales) : 0.125 kg Value : Real Volume : 346.5 cm 3

24 Benda 2 Sampel Panjang Lebar Tinggi Volume (Sensor) Volumetrik Aktual (Load Cell) Aktual (Timbangan) Volume (Asli) 1 1.18 3.95 4.35 20.27535 0.00405507 0.04 0.035 107.242 2 0.95 4.48 3.89 16.55584 0.003311168 0.03 0.035 107.242 3 0.93 4.07 4.06 15.367506 0.0030735012 0.04 0.035 107.242 4 1.09 3.81 3.96 16.445484 0.0032890968 0.03 0.035 107.242 5 1.22 4.29 4.08 21.353904 0.0042707808 0.04 0.035 107.242 6 0.29 4.19 3.17 3.851867 0.0007703734 0.03 0.035 107.242 7 0.86 4.55 3.96 15.49548 0.003099096 0.04 0.035 107.242 8 0.93 4.75 4.11 18.155925 0.003631185 0.04 0.035 107.242 9 0.95 4.65 4.06 17.93505 0.00358701 0.02 0.035 107.242 10 0.52 4.34 3.6 8.12448 0.001624896 0.04 0.035 107.242 11 0.81 5.92 3.51 16.831152 0.0033662304 0.04 0.035 107.242 12 1.18 5.6 2.81 18.56848 0.003713696 0.04 0.035 107.242 13 1.06 5.6 3.62 21.48832 0.004297664 0.03 0.035 107.242 14 0.75 5.48 4.01 14.796 0.0029592 0.04 0.035 107.242 Rata-rata 0.9085714286 4.6914285714 3.7992857143 16.088917 0.0032177834 0.0357142857 0.035 107.242 Rata-rata Prosentase Error 538.3647798742 8.3434835566 53.024911032 566.5582276296 566.5582276296 2 % % % % % % Table 4.7: Object Testing 2 (Conveyor ON, No OFF Delay) (Table 4.7) Percentage Error 2 ( P : 5.8 cm ; L : 4.3 cm ; T : 4.3 cm ; M : 0.035 kg ) Value : (P) : 538.3647798742 % Value : (L) : 8.3434835566 % Value : (T) : 53.024911032 % Value : (V) : 566.5582276296 % Value : Volumetric Weight : 566.5582276296 % Value : Actual Weight : 2 % Value : Actual Weight (Digital Scales) : 0.035 kg Value : Real Volume : 107.242 cm 3

25 Benda 3 Sampel Panjang Lebar Tinggi Volume (Sensor) Volumetrik Aktual (Load Cell) Aktual (Timbangan) Volume (Asli) 1 4.64 7.18 4.87 162.245024 0.0324490048 0.2 0.2 273.6 2 5.25 7.19 4.9 184.96275 0.03699255 0.2 0.2 273.6 3 5 7.59 4.49 170.3955 0.0340791 0.2 0.2 273.6 4 5.02 7.4 4.99 185.36852 0.037073704 0.205 0.2 273.6 5 7.78 6.73 4.53 237.188082 0.0474376164 0.2 0.2 273.6 6 5.23 6.71 4.84 169.851572 0.0339703144 0.2 0.2 273.6 7 5.63 5.82 4.41 144.500706 0.0289001412 0.2 0.2 273.6 8 5.63 6.82 4.53 173.936598 0.0347873196 0.2 0.2 273.6 9 5.27 5.84 4.87 149.883016 0.0299766032 0.2 0.2 273.6 10 6.04 6.23 4.41 165.944772 0.0331889544 0.205 0.2 273.6 11 5.2 6.95 4.92 177.8088 0.03556176 0.2 0.2 273.6 12 5.68 5.78 4.87 159.884048 0.0319768096 0.2 0.2 273.6 13 5.23 5.89 4.42 136.156774 0.0272313548 0.205 0.2 273.6 14 5.18 6.44 4.51 147.114072 0.0294228144 0.2 0.2 273.6 Rata-rata 5.4842857143 6.6121428571 4.6828571429 168.945731 0.0337891462 0.2010714286 0.2 273.6 Rata-rata Prosentase Error 73.2221932795 9.2578589176 1.4373716632 61.9454947932 61.9454947932 0.5328596803 % % % % % % Table 4.8: Object Testing 3 (Conveyor ON, No OFF Delay) (Table 4.8) Percentage Error 3 ( P : 9.5 cm ; L : 6 cm ; T : 4.8 cm ; M : 0.200 kg ) Value : (P) : 73.2221932795 % Value : (L) : 9.2578589176 % Value : (T) : 1.4373716632 % Value : (V) : 61.9454947932 % Value : Volumetric Weight : 61.9454947932 % Value : Actual Weight : 0.5328596803 % Value : Actual Weight (Digital Scales) : 0.200 kg Value : Real Volume : 273.6 cm 3

26 Benda 4 Sampel Panjang Lebar Tinggi Volume (Sensor) Volumetrik Aktual (Load Cell) Aktual (Timbangan) Volume (Asli) 1 2.17 5.34 3.6 41.71608 0.008343216 0.04 0.04 117.078 2 2.63 2.33 2.82 17.280678 0.0034561356 0.04 0.04 117.078 3 2.13 4.72 4.42 44.436912 0.0088873824 0.05 0.04 117.078 4 2.38 3.47 3.75 30.96975 0.00619395 0.04 0.04 117.078 5 2.29 4.17 3.94 37.624242 0.0075248484 0.05 0.04 117.078 6 1.97 5.13 3.08 31.126788 0.0062253576 0.04 0.04 117.078 7 1.81 3.89 3.29 23.164561 0.0046329122 0.05 0.04 117.078 8 2.06 3.04 3.08 19.288192 0.0038576384 0.04 0.04 117.078 9 2.01 4.72 4.42 41.933424 0.0083866848 0.03 0.04 117.078 10 2.13 3.95 3.86 32.47611 0.006495222 0.04 0.04 117.078 11 2.22 4.84 2.38 25.572624 0.0051145248 0.03 0.04 117.078 12 1.99 3.62 3.08 22.187704 0.0044375408 0.04 0.04 117.078 13 2.1 5.34 4.06 45.52884 0.009105768 0.04 0.04 117.078 14 2.08 4.98 3.19 39.983424 0.0079966848 0.04 0.04 117.078 Rata-rata 2.1407142857 4.2528571429 3.4978571429 32.3778092143 0.0064755618 0.0407142857 0.04 117.078 Rata-rata Prosentase Error 269.035702369 8.2969432314 23.3766233766 261.5995116444 261.5995116444 1.7543859649 % % % % % % Table 4.9: Object Testing 4 (Conveyor ON, No OFF Delay) (Table 4.9) Percentage Error 4 ( P : 7.9 cm ; L : 3.9 cm ; T : 3.8 cm ; M : 0.040 kg ) Value : (P) : 269.035702369 % Value : (L) : 8.2969432314 % Value : (T) : 23.3766233766 % Value : (V) : 261.5995116444 % Value : Volumetric Weight : 261.5995116444 % Value : Actual Weight : 1.7543859649 % Value : Actual Weight (Digital Scales) : 0.040 kg Value : Real Volume : 117.078 cm 3

27 Benda 5 Sampel Panjang Lebar Tinggi Volume (Sensor) Volumetrik Aktual (Load Cell) Aktual (Timbangan) Volume (Asli) 1 4.89 4.96 3.43 83.192592 0.0166385184 0.15 0.15 172.8 2 4.71 5.91 3.13 87.126993 0.0174253986 0.16 0.15 172.8 3 4.93 5.58 2.96 81.427824 0.0162855648 0.15 0.15 172.8 4 4.71 6.97 3.92 128.688504 0.0257377008 0.15 0.15 172.8 5 5.36 6.13 3.53 115.984504 0.0231969008 0.16 0.15 172.8 6 4.46 6.25 3.13 87.24875 0.01744975 0.14 0.15 172.8 7 4.98 6.7 3.94 131.46204 0.026292408 0.15 0.15 172.8 8 5 5.66 4.42 125.086 0.0250172 0.16 0.15 172.8 9 4.8 6.39 3.51 107.65872 0.021531744 0.15 0.15 172.8 10 4.57 5.91 3.62 97.771494 0.0195542988 0.14 0.15 172.8 11 4.55 6.51 3.46 102.48693 0.020497386 0.15 0.15 172.8 12 5.07 5.61 3.41 96.989607 0.0193979214 0.16 0.15 172.8 13 5.41 6.56 3.49 123.858704 0.0247717408 0.14 0.15 172.8 14 4.8 6.45 3.49 112.0752 0.02241504 0.15 0.15 172.8 Rata-rata 4.8742857143 6.1135714286 3.5314285714 105.7898472857 0.0211579695 0.1507142857 0.15 172.8 Rata-rata Prosentase Error 96.9519343494 18.2147447132 5.5718475073 63.3427067281 63.3427067281 0.4739336493 % % % % % % Table 4.10: Object Testing 5 (Conveyor ON, No OFF Delay) (Table 4.10) Percentage Error 5 ( P : 9.6 cm ; L : 5 cm ; T : 3.6 cm ; M : 0.150 kg ) Value : (P) : 96.9519343494 % Value : (L) : 18.2147447132 % Value : (T) : 5.5718475073 % Value : (V) : 63.3427067281 % Value : Volumetric Weight : 63.3427067281 % Value : Actual Weight : 0.4739336493 % Value : Actual Weight (Digital Scales) : 0.150 kg Value : Real Volume : 172.8 cm 3

28 Prosentase Total Erorr Konveyor OFF Ketika Benda Datang Benda Panjang Lebar Tinggi Volume (Sensor) Volumetrik Aktual (Load Cell) Aktual (Timbangan) Volume (Asli) Benda 1 4.4421837911 0.6325474411 0.4739336493 7.1431335909 7.1431335909 0.5681818182 0.125 346.5 Benda 2 15.6036446469 4.1162227603 0.2320185615 26.1623710963 26.162371096 2 0.035 107.242 Benda 3 3.8322487346 3.6033968327 2.0408163265 6.4298821254 6.4298821254 0.5328596803 0.2 273.6 Benda 4 8.5377821394 6.2463514302 9.9526066351 10.5031050317 10.503105032 1.7543859649 0.04 117.078 Benda 5 3.8901601831 3.1677963757 1.6393442623 9.2193607685 9.2193607685 0.4739336493 0.15 172.8 Rata-Rata 7.261203899 3.553262968 2.8677438869 11.8915705226 11.891570523 1.0658722225 % % % % % % Table 4.11: Percentage of Total Errors (Conveyor OFF Delay) (Table 4.11) Percentage of Total Errors Value : (P) : 7.261203899 % Value : (L) : 3.553262968 % Value : (T) : 5.5718475073 % Value : (V) : 63.3427067281 % Value : Volumetric Weight : 63.3427067281 % Value : Actual Weight : 0.4739336493 %

29 Prosentase Total Erorr Konveyor ON Ketika Benda Datang Benda Panjang Lebar Tinggi Volume (Sensor) Volumetrik Aktual (Load Cell) Aktual (Timbangan) Volume (Asli) Benda 1 113.3555001385 7.3665637406 6.0606060606 112.5542996161 112.55429962 0.5681818182 0.125 346.5 Benda 2 538.3647798742 8.3434835566 53.024911032 566.5582276296 566.55822763 2 0.035 107.242 Benda 3 73.2221932795 9.2578589176 1.4373716632 61.9454947932 61.945494793 0.5328596803 0.2 273.6 Benda 4 269.035702369 8.2969432314 23.3766233766 261.5995116444 261.59951164 1.7543859649 0.04 117.078 Benda 5 96.9519343494 18.2147447132 5.5718475073 63.3427067281 63.342706728 0.4739336493 0.15 172.8 Rata-Rata 218.1860220021 10.2959188319 17.894271928 213.2000480823 213.20004808 1.0658722225 % % % % % % Table 4.12: Percentage of Total Errors (Conveyor ON, No OFF Delay) (Table 4.12) Percentage of Total Errors Value : (P) : 218.1860220021 % Value : (L) : 10.2959188319% Value : (T) : 17.894271928 % Value : (V) : 213.2000480823 % Value : Volumetric Weight : 213.20004808 % Value : Actual Weight : 1.0658722225 %

30 Prosentase Error (Conveyor OFF Delay) : Konveyor OFF Ketika Meletakkan Barang % 30 25 20 15 10 5 0 Benda 2 Benda 4 Benda 1 Benda 3 Benda 5 Rata-Rata Panjang Lebar Tinggi Volume (Sensor) Volumetrik Aktual (Load Cell) Sample Illustration 4.11: Chart - Percentage of Total Errors (Conveyor OFF Delay) (Illustration 4.11) The diagram above is the result of the average calculation of the error value obtained by using a conveyor that there is a delay of a few seconds to stop. (the conveyor will stop when it wants to put the package on the conveyor).

31 Prosentase Error (Conveyor ON, No OFF Delay) : Konveyor Tetap ON Ketika Meletakkan Barang % 600 500 400 300 200 100 0 Benda 2 Benda 4 Benda 1 Benda 3 Benda 5 Rata-Rata Panjang Lebar Tinggi Volume (Sensor) Volumetrik Aktual (Load Cell) Sample Illustration 4.12: Chart - Percentage of Total Errors (Conveyor ON, No OFF Delay) (Illustration 4.12) The above diagram is the result of the average calculation of the error value obtained by using a conveyor that always ON / keep running without any delay to stop (conveyor still running when the object will be placed on the conveyor).

32 4.2 Desain Explanation : Illustration 4.13: Flowchart This is a flowchart diagram of the "package sorting" prototype project. The first thing to do is the process of declaration and initialization. Declare the variables used, then initialize the serial board (230400), initialize the input / output pins (I / O), initialize the load cell and also the LED light. After that, the core process of this project will start soon.

33 Initialize the conveyor with the off state as the start of the packet sorting process. When the conveyor is off, the LED will light up as a marker for the officer to immediately place the package on the conveyor. In this process the conveyor will not run until the LED lights off. Time given to the officer to place the package on the conveyor +/- 5 seconds (the LED light will turn on and off, for 5 seconds). If it has not passed 5 seconds, the LED light will not die, and the conveyor will not run (the path is 'False'). However, if the time has passed 5 seconds, the LED light will die and the conveyor will start running (the road is 'True') to deliver the packet. If the path is already 'True', the conveyor will continue until the packet volume counting on the conveyor is completed. The package will run on the conveyor until the package is about the laser. When a laser beam detects an object / packet (the front end of the packet), the conveyor stops for several ms (100 ms = 0.1 sec) and will resume running. The laser beam will store the value of ms as long as the laser beam detects any packets that pass through it. In other words, as long as the laser detects the packet, the conveyor will continue to run and will not stop until the laser beam does not detect the packet anymore (detects from the front end to the rear end of the package). Not only calculate the ms value to get the value of the length of the packet, but also there is a process of calculating the high value and value of the width of the object using the ultrasonic sensor. The package will run through a tunnel already equipped with several ultrasonic sensors to calculate the height and width value of the packet. If the laser beam has not detected the packet anymore, then the value of the obtained length will be accumulated with the high value and the width value obtained from the ultrasonic sensor calculation. The packet will be forwarded to weighing board to calculate the actual mass / weight of the packet. When the package has fallen onto the weigh board, the conveyor will stop / off for some time. The package will be calculated using a load cell sensor for thousands of calibrations to get a fairly accurate weight rating. After getting the volume and

34 weight value of the packet, the result will be displayed on the monitor series. Then the conveyor will be re-initialized to 'False'. Then, the volume value that has the unit of cm 3 will be converted into kilogram (kg). This volumetric conversion formula, obtained from one of the website of an expedition agent in Indonesia. The weight value of the volumetric and the actual weight value that has been obtained will be displayed on the LCD display screen which has dimensions of 16x2. The values shown are P (long), L (width), T (height), value volumetric weight (kg), actual weight value (kg), and cursor or arrow as a sign of the decision to be used. If the arrow leads to a volumetric weight value, it means the volumetric weight value > the actual weight value, and the decision taken is the volumetric weight value. And vice versa, if the arrow leads to the actual weight value, it means the value of volumetric weight < actual weight value, so the decision taken is the actual weight value. After the calculation (volumetric and actual) and decision-making are completed, the conveyor that has been initialized to the 'False' condition will be returned to the cycle again, and the next process will continue to proceed as it is.

35 Schematic Illustration 4.14: Wiring Project Explanation : Pin PWM 2 = pin for module l298n (ENA) Pin PWM 3 = pin for module l298n (IN1) Pin PWM 4 = pin for module l298n (IN2) Pin PWM 5 = pin for module ldr Pin PWM 6 = pin for ultrasonic sensor (triggerpin : Right : Width) Pin PWM 7 = pin for ultrasonic sensor (echopin : Right : Width) Pin PWM 8 = pin for ultrasonic sensor (triggerpin : Left : Width) Pin PWM 9 = pin for ultrasonic sensor (echopin : Left : Width) Pin PWM 10 = pin for ultrasonic sensor (echopin : Top : Height) Pin PWM 11 = pin for ultrasonic sensor (triggerpin : Top : Height) Pin PWM 12 = pin for LED Pin Communication TX 14 = pin for LCD (RS)

36 Pin Communication RX 15 = pin for LCD (E) Pin Communication TX 16 = pin for LCD (D4) Pin Communication RX 17 = pin for LCD (D5) Pin Communication TX 18 = pin for LCD (D6) Pin Communication RX 19 = pin for LCD (D7) Pin Analog 0 = pin for module HX711 (DT) Pin Analog 1 = pin for module HX711 (SCK) Pin GND Board Arduino Mega 1280 = pin for LCD (RW) Pin GND Board Arduino Mega 1280 = Breadboard (-) Pin 5V Board Arduino Mega 1280 = Breadboard (+) Load cell (red cable) = module HX711 (E+) Load cell (black cable) = module HX711 (E-) Load cell (white cable) = module HX711 (A-) Load cell (green cable) = module HX711 (A+) DC geared motor (+) = module l298n (OUT 1) DC geared motor (-) = module l298n (OUT 2) Module l298n (+5V) = Breadboard (+) Module l298n (+12V) = Output power supply on PCB (+) Module l298n (GND) = Output power supply on PCB (-) Module l298n (GND) = Breadboard (-) Travo (0V/GND) = Input power supply on PCB (-) Travo (15V) = Input power supply on PCB (+)

37 Pin PWM 12 = resistor = LED (+) && LED (-) = Breadboard (-) Module laser (GND) = Breadboard (-) Module laser (+5V) = Breadboard (+) Module ldr (VCC) = Breadboard (+) Module ldr (GND) = Breadboard (-) Ultrasonic sensor (VCC : Right : Width) = Breadboard (+) Ultrasonic sensor (GND : Right : Width) = Breadboard (-) Ultrasonic sensor (VCC : Left : Width) = Breadboard (+) Ultrasonic sensor (GND : Left : Width) = Breadboard (-) Ultrasonic sensor (VCC : Top : Height) = Breadboard (+) Ultrasonic sensor (GND : Top : Height) = Breadboard (-)