Cap1 Printing Vending Machine
Cap1 Printing Vending Machine
MACHINE
A Capstone Project
Presented to the
School of Mechanical and Manufacturing Engineering
Mapúa University
In Partial Fulfillment
Of the Requirements for the Degree of
Bachelor of Science in Manufacturing Engineering
Arcibal, Jason
2014107534
Azur, Jazel Ann
2013106241
Puño, Vanessa
2013123027
Sabangan, Rafael Renzo
2013106726
APRIL 2019
ACKNOWLEDGEMENT
This Capstone Project concludes our journey in achieving the Bachelor of Science in
However, it would not have been possible without the kind support and help of many
To Almighty Father, for giving us extensive patience, wisdom and strength to accomplish our
project.
To our professors, Engr. Seyed Hamed Hashemi Sohi and Engr. Julian Albert Nohay, for
their guidance and constant supervision as well as for providing necessary information regarding
To our parents and members of our families for their kind cooperation and encouragement which
help us in completion of this project. Our thanks and appreciation also goes to the people who
TABLE OF CONTENT
ii
ACKNOWLEDGEMENT...............................................................................................................ii
TABLE OF CONTENTS...............................................................................................................iii
LIST OF FIGURES........................................................................................................................vi
LIST OF TABLES.......................................................................................................................viii
iii
CHAPTER 3: LITERATURE REVIEW..................................................................................9
iv
5.1.1. SAFETY FACTOR...................................................................................35
5.1.2. STRESS: VON MISES.............................................................................36
5.1.3. STRESS: 1STPRINCIPAL.........................................................................36
5.1.4. STRESS: 3rd PRINCIPAL.........................................................................37
5.1.5. DISPLACEMENT....................................................................................37
5.1.6. REACTION FORCE.................................................................................38
5.1.7. STRAIN....................................................................................................38
7.3. CONCLUSION......................................................................................................47
7.4. RECOMMENDATIONS.......................................................................................48
REFERENCES..............................................................................................................................50
APPENDIX....................................................................................................................................51
v
LIST OF FIGURES
vi
Figure 5.2.1 Orthographic Projection of Final Design..................................................................39
vii
LIST OF TABLES
viii
CHAPTER 1: PROJECT SCOPE
This chapter serves as the introduction of the capstone project pertaining to the
product’s description, scope and limitation, consumers, and our goals and objectives.
A printer is a valuable machine for our generation, especially for people in the academe,
BPOs, applicants, etc. Printers enables us to print documents, assignments, and other files,
eliminating the need for writing the said document by hand. Even today, most institutions require
the person (especially students, and applicants in a government institution) to submit a printed
out document of their requirements. However, not all places have printing shops, or have
affordable yet a good quality print outs, particularly for the students in the academe.
This project is solving the problems for most people struggling looking for a printing
shop with short queue line and has affordable yet offers a good quality of print outs. The Printing
Vending machine creates a conducive option for the mass public considering printing the
documents, assignments, etc. with just a few clicks on the touch panel display. Considering the
fact that the use of an operator has to have labor cost, it limits the printing business to its income
but having the Printing Vending machine, it eliminates the use of an operator (a person who
operates the machine and manages it) since the Printing Vending machine is self-operated
1
1.2. CONTEMPORARY ISSUES RELEVANT TO THE PROJECT
As a student, we struggle to print documents, assignments, etc. outside the campus since
printing shops are always jammed pack with people, student or not. Another issue related to our
project is the printing shops price rates are too high; the higher price the printing shop has, the
As people continue to look for convenience, more technologies are invented. And one of
these technologies is the vending machine. With that, we came up to a decision of creating a
printing vending machine. The clients that we are focusing are those who are in need of printing
service that are just a few steps near, with the likes of a soda vending machine that available
inside or within the perimeter of a certain place. Also, clients that do not own a printer due to
financial reasons would conclude their problem having our product as their solution. Introducing
our product, Printing Vending machine, would be a great option for the society since our product
Projecting our products success on the market, we visualize our targets on different
situations in our society and their occupation. The visualization of the impact of our project is
benefit the students and even the workers and applicants in OWWA since it reduces the
2
time to walk and process the printing task. With its convenience and ease to interact with,
it would attract more customers leading to a larger profit on the side of our product.
Placing the printing vending machine in the academe would be a great help in every
individual to have another option to make their printing service stress- free. Also, as the
printing vending machine operates, it would generate profit. These profits will be split
into the owner of the vending machine and the university, then, this will be allocated for
the maintenance of the machine, for the paper, for the ink, for the electricity, and the like.
Viewing our product on a national level creates an opportunity for investors to buy
our product since both the customer and the owner would greatly benefit from our
product, money and productive wise. It would be a big hit viewing it on a national level,
where every school, local government agencies, such establishments that requires the
person to print document has our product, the Printing Vending machine.
The main goals of our product is to manufacture a machine that will reduce the
complications of printing a document and have a self-operated yet easy way to print with just a
few touch eliminating the need of manning the printing station which reduces the income of the
owner. In both ways, the owner and the user would benefit from the product.
From the name of the product, it has a coin acceptor attached (also a bill acceptor) to it.
The user can either pay in coins, bills, and both. The coins accepted are both the current and old
coins of the official currency of the Philippines (Philippine peso), and the same goes for the bill
acceptor but it only accepts the 20’s and 100’s. The display used is the Raspberry Pi 7-inch
3
Touch Screen Display. Like the Beep’s system, the Printing Vending machine is user-friendly
and easy to navigate even for a person who has no knowledge on a computer.
4
1.6. INITIAL PROJECT CONSTRAINTS
For this project, we limit are our project to simply “print, pay, and go” although our
product can’t give change since we will focus on the objective that it can print documents,
assignments, etc. from a user-friendly touch screen display and the user would pay for it then the
printing process would begin. The selection of our printer is our constraint also since our budget
for this project is not that high enough and the needed printer must have a Wi-Fi connectivity
option for our project to work properly. Our product will only print on a short bond paper or
letter-size paper because having two (2) paper printing option would expensive and time
To know if our product has been completed, the following must be done:
Raspberry Pi 3
The coin acceptor accepts old and new 1-peso, 5-pesos, and 10-pesos
coins
The coin and bill acceptor send the amount inserted to the
5
CHAPTER 2: PROJECT PLANNING AND TASK DEFINITION
We first planned on how our approach would be pertaining to the creation of the product
by means of identifying and distributing the task to be done and a Gantt chart to keep track of the
We are tasked individually to create or innovate products and ideas to be made but
since we made up our mind to continue the work of the previous term and improve its
2.1.2. RESEARCH
In this task, we continue researching for the proposed project, which is the Printing
Through brainstorming and coordination from each member of the group, the task will be
completed.
2.1.4. CODES
The Codes on this project is divided into 2; Codes for the Arduino, and for the
Raspberry Pi 3. The Arduino is used to control and receive data from the coin and bill
acceptor which then be forwarded to the Raspberry Pi 3 to confirm the amount of money
inserted in the coin and/or bill acceptor. The Raspberry Pi 3 is used to control the printer
6
and the 7’’ Raspberry Touch Screen Display allowing us to program and generate a
We tasked ourselves to personally design a casing for the Printing Vending machine
For this task, we fabricate our desired design for the casing of the Printing Vending
Machine. In this area, we consider the materials used and identify an alternative for this
7
2.2. GANTT CHART
The chart displayed below shows a timetable of the task assigned for each week of the
8
CHAPTER 3: LITERATURE REVIEW
For this chapter, we generate a concept about the product to be design and manufactured
with the research gathered from journals, articles, codes and standards, and/or many other
Through thorough research, we have included multiple journals, articles, and such on this
area of the paper which are all related and/or connected to our capstone project.
The research checked the chaotic patterns of the printer's innovation process using
the Lyapunov characteristic exponent. This was used in order to determine certain
patterns in the process, an example would be from the generation of an idea to its
implies the opposite; a convergence. These positive and negative exponents are then
divided into multiple subsystems according to different initial conditions, when at least
one positive exponent is determined, the system is said to be chaotic. Using the Lyapunov
exponent, a chaotic system can be made with the production of many positive and
negative exponents along the Lyapunov spectrum, in the research paper, only positive
and significant exponents were focused to highlight the sensitivity in the initial condition.
process was chaotic or not using Lyapunov Exponent. Between the years 1976-2012,
9
there was indeed a spike of chaos between the years 1979-1985 and around 1995. In
doing this study the realization that the ideas of complexity, chaotic dynamics,
evolutionary processes and innovations are likely to be related has been observed. This
study also provides an eye opener seeing process through nonlinear means can help
enrich the innovation process. Through the understanding of chaos theory and making
changing environment is paramount when making said innovations because when chaos
regular transaction that happens in a vending machine is: 1. Cash is placed inside the
machine 2. The customer chooses his product 3. The product comes out for the customer.
This regular transaction is the simplest transaction that happens in a vending machine.
Innovation integrated to the vending machine will further increase the maintaining cost of
operation of the machine, which will present a difficulty in the machine producing profit.
Also, with the innovation in the vending machine, this will increase the difficulty level of
the transaction. This will give the customers reduction in convenience which will have a
conflict with the main goal of the vending machine, which is to give convenience to the
customer, which would then further reduce the consumers willing to use the vending
machine. By introducing cashless payment to the vending machine, customers will have
additional dilemmas in utilizing the vending machine, because the transaction will require
10
the customers to have the specific card required to use the vending machine, and they will
have to worry about the balance that has to be in their cards in order to use the card.
To be able to overcome the operation cost, and the problem with the convenience
being given for the customers, smartphones are used to give ease to the customers.
Because most people have a smartphone, they will not have to worry with the card for a
cashless payment, removing the dilemma of the customers to maintain a balance in the
cards needed for a cashless transaction. Customers will also be able to use their
smartphones to choose the product that he/she wishes to purchase, giving more
convenience for the customers. In the vending machine to further improve the service it
provides for the customer have major issues, but these major issues are manageable with
the innovation of the solutions possible to be utilized. Solving the convenience issue by
using smartphones will give the zed. Solving the convenience issue by using smartphones
will give t machine. The customers additional convenience in their transactions with the
vending problems that would be encountered with the integration of the innovation of the
vending machine will result to a further realization of the issues that would arise for the
customer, but with the improvement in the research into finding the solution for this
problems, these problems would be solve and will be encountered in order to give the
11
Vending machines are a popular product invented and used by people in their own
office or school campus. It has been a common source of food or any other product
related to it. In the journal article entitled "Vending machine assessment methodology, A
systematic review", the researchers have included various papers which contains vending
PubMed, MEDLINE, and ProQuest, were also done by the researchers to take hold of
possible available existing references. To be able to get only those related to the topic, the
researchers have listed the following checklist. The checklist goes like this," (a) the
research article must be peer-reviewed. (b) One of the primaries aims or objectives of the
research study was to assess vending machines and/or vending machine products and/or
and/or purchasing patterns by consumers. (c) The research article provided detailed
methodology on how vending machines and/or vending machine products were evaluated
and/ or the research study evaluated or manipulated at least one key vending machine
and promotion". These ensures that only relevant and useful papers were included to be
The papers were compared and thoroughly examined to come up with the
examination, comparison and study, the researchers have observed that vending machines
were evaluated mostly by several factors. Most studies, 78% to be specific, relating to the
assessment of vending machines solely focus on the vending machine itself or to its
products. While others were focused in investigating the environmental effects using a
12
vending machine, how people use vending machines, which products were purchased
more often than others and even product availability factors. In details, other specific
areas or aspects used in the studies were the following study location, healthfulness
criteria, product availability, assessment tool design, price, portion size and accessibility.
Based on the gathered data, the researchers have concluded that there is sufficient
ways and means to evaluate or assess various vending machines however, since most of
the studies on vending machines are regarding those installed in primary and secondary
school communities, it is quite difficult to compare and to draw out reference materials
for those vending machines in other places such as medical institutions, universities and
work stations. Also, despite having many methodologies involving in the study of
vending machines, there is no universal or standard assessment and evaluation tool for
which makes it difficult to easily formulate certain rules or guide lines that needs to be
receiving, collecting and interpreting data. It aids in completing task efficiently because
systems such as it allows tasks to be carried out right away, data is received through many
are still not addressed or carried out by most machine-to-machine systems in the present.
The need for human intervention is still evident in most machines for the data collected to
13
be interpreted further and for a response to be given. In the journal article entitled
the researchers stated the need for a more intelligent machine system to address the
incorporating an "event driven approach" to machine systems, which means, that the
machine-to-machine will be able to respond directly and immediately based on the events
occurring in relation to it. This is done by integrating a CEP (Complex Event Processing)
in the machines that has to work connectedly. Using CEP, the machine can now interpret
a certain event and respond to it upon recognition of patterns which have occurred
overtime in the machine itself or in the system of machines. For their study, the
researchers have integrated CEP in an already existing machine- to-machine system. The
researchers used a printer machine and solar panel system to illustrate the effects of
having CEP in the system. They used these as illustrations because they are example of
two different kinds of machines, the printer as a machine with operating and resource
states (having toner and paper as the resource) and the solar panel as a machine with only
an operating state. The CEP is designed according to specific needs and functions.
The second case study is the one consisting of the printer supply and maintenance
system. The researchers have used CEP in order to avoid resource related problems likely
to occur in printing machines like running out of ink while printing, maintaining it, or not
being able to print colored ones. So how does it work? It works by having the system
monitor and keenly observe the supply or resource state so that before the problem can
occur, the system has already anticipated and recognized patterns resulting to low
supplies of the resource (specifically the cartridge or ink) and have it already reported for
14
action. In the situation presented by the researchers, there is a service contractor who
stays in contact for the needs of the printer purchased by a certain customer. Through the
system, this service contractor is reached automatically or notified once the system has
recognized patterns which signals the need for a delivery or replacement even before it
completely runs out of resource, but not too early that the delivery will be stocked. This
will ensure and avoid the customer being burdened of storage. Based on the study, the
researchers were able to develop the decision support system which answers and caters
the need for a responsive and a more intelligent machine. Processing ame easier and more
effective. The CEP can be designed depending on the response expected and system of
machines.
The study intended to design a school vending machine that uses a touch screen
LCD to dispense new products not served by the existing commercial vending machines.
It aimed to construct equipment with new features and improved capability of dispensing.
This investigation sought to address the following issues regarding the device: (a)
manipulation of the dispenser through the inputs of the user in the touch screen LCD (b)
display of the total amount of product acquired in the machine and (c) ability of the
vending machine to function even with power failure. Experimental development method
was utilized to construct the system and descriptive method was also implemented to
evaluate the functionality of the design. Nine purposively chosen evaluators composed of
students; non- teaching personnel and office employee were asked to participate in the
study.Findings revealed that the device could function satisfactorily as evaluators strongly
15
3.2. DESIGN THEORIES, DESIGN CONSTRAINTS, APPLICABLE
For the Printing Vending Machine to be completely functioning, the group applied
different design theories in creating the final output. These theories include aspects in
circuit design, Internet of Things applications, Casing Design, and Python Coding.
Following the construction of the printing vending machine, the group has
analyzed several design constraints within the fabrication processes of the project. First
constraint would the time the group is allotted into fabricating the vending machine.
Secondly, the electrical components of the vending machine should be properly secured,
since the electrical components are fragile and can be subjected to unprecedented stresses
or forces. Lastly, since the final output is a Printing Vending Machine, the whole
appearance of the project should emulate a Vending machine. The design should include
a touch screen interface for the users, a coin slot, and space for the printer and the paper
this standard are intended for indoor use only, except that they will be
investigated for outdoor use or use in a protected location if so, designated by the
16
manufacturer. Vending machines may be battery operated. Vending machines
may be battery operated and may be provided with a solar photovoltaic (PV)
product are judged under the requirements for refrigerated vending machines.
These requirements also cover vending machines intended for installation within
for Vending Machines Intended for Installation within Motor Fuel Dispensing
Facilities, and as defined by the Code for Motor Fuel Dispensing Facilities and
machines that have a principal function other than storage and dispensing of
refrigerated products.
17
CHAPTER 4: DESIGN CONCEPTUALIZATION AND FINAL DESIGN
SELECTION
With the research done and ideas are made and gathered, all of it will now be used to
conceptualize how the product should be made and design guided by the codes and standards
For our product to work properly, we follow certain specification for the product
design:
1. The Printing Vending machine must have a printer with its printing quality
The printer is the core of our product. It must print to its optimum
users.
2. The product has a display medium (with a GUI) for the user to see.
(preferably a touch screen display) for the user to see and easily
navigate their documents and such in pair with its own user-
friendly GUI.
18
3. The Printing Vending machine has its own money acceptor.
A coin and bill acceptor would be a great device for the product to
unmanned.
4. The product has a computer for receiving and sending data for all the
to continue printing.
19
4.2. CONCEPT GENERATION
The first conceptual design for our product, Printing Vending machine, is
designed to simply put the devices in one place. Creating slot for each device (as shown
in Figure 4.2) where it can be easily located by the user. It is simple and compact but it is
less ergonomic.
20
Front View Left Side View
Back View
21
Coin Collector Instructions
Input
Extension
Printer
Cable
Paper Storage
Ink Storage
22
The second conceptual design for our product, Printing Vending machine, has the
same concept as the first conceptual design but, the height is significantly longer than the
first conceptual design. It is considered to be more ergonomic since the fittings of each
23
Front View Left Side View
Back View
Coin Collector
24
Touch Screen Bill Collector
Paper Support
Front Door
Extension Cable
Printer Instructions
Flask Drive
Input
Paper Storage
Ink Storage
25
The third design of our product, Printing Vending Machine, is smaller than the
26
Front View Right Side View
Back view
Instructions 27
Touch Screen
Flask Drive
Bill Collector
Extension
Printer
Back Door
Paper Storage
28
4.3. CONCEPT EVALUATION AND SELECTION
should be done. Evaluating a broad range of viewpoints and perspectives that is needed.
Also, deciding which design should be chosen is selecting for the best solution.
Thinking a Problem
Problem Solving
Design Concept
Design concept is the idea behind a design. It’s how you plan in solving the
design problem. Your concept design becomes the framework for all your design
decisions. We think of possible scenario that may affect the physical structure.
CAD Drawing
CAD software is used to increase the productivity of the designer, improve the
database for manufacturing. In creating of our design, we used the fusion 360 software.
29
The design of the product presents how will the product will look like when it is
30
Figure 4.3.14 Isometric Drawing of Product Design 3
For the first design, the concept is to open it in two ways; at the top and at the front. The
purpose of the top door is to easily place the paper in the loaded area while the front door is to
easily get the coins. Although it may be a good choice, it has some disadvantages. Considering is
height, children may toy with it since its designed height is diminutive. It is also less ergonomic
since the placement of each device are too far from each other creating confusion and/or
ADVANTAGES DISADVANTAGES
Eco friendly since the material is wood Since the material is wood, it is vulnerable to
water damage, fire, decay, and termites
31
Compact design
For the second conceptual design, the concept is just like a usual vending machine. It has
a higher size in height than the first conceptual design 1. The design has a 3 door; one is at the
back and the other two is in front. The back door is to place the paper in the loaded area and the
door in the top front is for collecting the coins and the other one is for the storage.
ADVANTAGES DISADVANTAGES
32
For the third conceptual design, the concept is just like an arcade game machine. Its face
is tilted, so it not hard for the customer to use. To make it more accessible for the users, it has a
lower size in height than the first conceptual design. The design of the case has one door only. It
is placed at the back. The back door is for the owner to have an access within the whole system.
ADVANTAGES DISADVANTAGES
Enables the user to access efficiently than the Need a table to be able to use
previous design
Veryconvenient to use just like the common Since the material is wood, it is vulnerable to
vending machine water damage, fire, decay, and termites
Easy to manage by the owner
Eco friendly since the material is wood
less cost for the material
Compact design
Corner less edges
For the final design, we have chosen the Third Conceptual Design as the design for our
product, the Printing Vending Machine. In comparison with the other conceptual designs, it is
more simple, ergonomic, and economic considering that it is small in size which lessen it
material and labor costs. It is said to be simple because of it component placement and structure,
which means, the user can easily see where are the components and also easy to create. The
3rdConceptual Design is ergonomic due to its component placement enabling the user to locate
and use the machine with ease and in addition, the touch screen display is titled approximately in
an angle in which it is more comfortable and creates a strain-free for the user’s neck. The
33
considered final design may differ from the final output since our group has a limited budget and
time but would still be the same as expected; Changes would be for the best of the product.
34
CHAPTER 5: DETAILED PRODUCT DESIGN
With analytical tools and simulators, the desired final design is tested virtually with the
use of Autodesk Fusion 360. The breakdown of the expenses is also showed in this chapter.
The following are the desired final design’s results from the simulation under various
circumstances:
For this simulation, the safety factor of the design is identified. Safety factor is the
ratio of the max allowable stress over the corresponding stress applied. The higher the
safety factor value, the safer the design is. As shown in Figure 5.1.1., the simulator
calculated that the safety factor of the final design is 15, which is the highest.
35
5.1.2. STRESS: VON MISES
Von Mises is used for this simulation where in it contours the colors where
stresses are built up as calculated by the Autodesk Fusion 360. As shown in figure 5.1.2.,
the stresses are low and uniform throughout the preferred design.
In this simulation, the 1st principal stress is the one that calculates the value of the
design’s stress normal to the plane, namely the shear stress, in which it gives information
36
For this simulation, the 3rd principal stress helps the user identify and understand
the maximum compressive stress induced in the design when there are items places in/on
it.
5.1.5. DISPLACEMENT
Displacement shows the value of the movement of the object pertaining to its
With Reaction Force simulation, it displays a color contour in lieu of the reactive
37
Figure 5.1.21 Reaction Force
5.1.7. STRAIN
It simply shows the change of the dimensions of the object in relation to the
direction of the induced force per unit length of the material used.
38
5.2. ENGINEERING ANALYSIS AND SIMULATION
39
5.3. APPLICATION OF ENGINEERING CODES AND STANDARDS IN
DESIGN
Application of engineering codes and standards in designing the product and its case
where used for this product design. In addition to the codes and standards mentioned at Chapter
system of machine tools and similar large pieces of industrial automation. This
specification includes cable types, sizes and sheath colours, connector types and
actuators.
The code specifies the interconnection of sensors and actuators with 1/O
modules that use their input or direct their output, and the diagnostic functions
This code ensures the electrical wires and the process of installation are in
40
5.4. ECONOMIC ANALYSIS
This shows the group's expenses in creating the printing vending machine
41
CHAPTER 6: PROTOTYPING PROCESSES, RESULT, AND
DISCUSION
The research design starts by identifying all the reasons why we need to make this project
and why do we come up with the idea of a document printing vending machine. The idea is
sketched to have a visual on the prototype, we design the casing in the Autodesk fusion 360
considering all the possible outcomes and the comfortability in using the vending machine. when
the design is completed the researchers can canvass all the materials needed for the prototype
including the raspberry pi, casing(wood), wires, 7-inch touchscreen monitor bill/coin acceptor
and other accessories. The bill/coin acceptor is set-up to accept the Philippine coins and bills
after that the researchers start coding for the GUI of the system and for the command that we
want to happen in the vending machine and printer. The next process is to make the casing
through woodworking processes the researchers manufactured the casing through the knowledge
in woodworks and assemble the parts connecting all the electronic connections, attaching USB
cables, screen, printer and bill/coin acceptor. The final process is by testing the vending machine
and improving through gathering information from other people to be able to see the cons of the
42
CHAPTER 7: CONCLUSIONS AND RECOMMENDATION
The last chapter of this paper contains the finality of the outcome of the product
accompanied by results from the prototyping process, achieved and/or unsuccessful goals and
objects, etc.
With our project, Printing Vending Machine, has come to conclusion, our goals and
objectives are achieved but some of these are not attained fully. We successfully created a
Raspberry Pi – controlled printer with the Raspberry Touch Screen Display as it medium to be
interacted by the user. The GUI of the Raspberry Touch Screen Display is user-friendly
considering the buttons to touch are straightforward and easy to navigate. And, it is optimized to
be in full screen (no exit, minimize, and maximize buttons) but, the taskbar still shows up when
For the coin and bill acceptor, it is in-sync with the Raspberry Pi and does not need the
Arduino for counting the pulses considering the acceptors are directly connected to the
Raspberry Pi. The printer does not print the file unless the user achieves the payment needed for
the printing process. The problem with the acceptors is that the bill and coin acceptor are
interrupted in coin when one of the acceptors is used. Also, the coin acceptor pulses are not fully
manipulated since the coins are not calibrated to send pulse according to their value.
The printer is now connected directly to the Raspberry Pi rather than the use of a Wi-Fi
module. The printing process is circulating on a modular printing system called CUPS. It is
where we manipulate our paper sizes, and color. Also, it is where we send the printing jobs and
let them send the information needed and specifications to the printer to be used.
43
We successfully achieved the most needed part of the Printing Vending Machine is the
page count system. We have achieved this by using a Pure-Python library called PDF toolkit or
PyPDF2. The PDF toolkit has a lot of using but the thing we needed the most is its capability to
count pages but in order to count pages, the file must be in PDF file format. So, for files the are
in .doc or .docx format, our system would convert it in PDF file format (also using PyPDF2) to
be able to count its pages but when the file to be printed is in PDF file format, the PDF toolkit
directly counts it. It is essential for the product since the printing process cost is based on the
In innovating the Printing Machine, the group was able to apply their knowledge
B. Ability to design and conduct experiments as well as analyses and interpret data
As the software is being finalized, the group were able to test the printing vending
machine by inserting a flash drive and inspect its file. Also, we were able to print
different formats of documents like .txt, .jpeg, .png, .pdf, and .docx file.
In general, the designed system was able to meet the desired needs. The group
were able to create a printing vending machine wherein the GUI can display all
the files that can be print. The group also calibrated and integrate the coin and bill
44
D. Ability to function on multidisciplinary teams
Together with the group, we practiced and exercised sharing of knowledge and
opinions to be able to come up with a functional idea. For making the software,
the member who was responsible for has applied skills and knowledge in making
the code and the GUI. For the hardware, the group members had designed and
manufactured a case wherein the printer and other electrical components were
secured.
them to make the results better. For the calibration of the coin, different problems
were identified in terms of the counting process of the coin acceptor itself. Also,
we encountered trouble while coding, since the codes were replaced and put
machine to provide convenience for the people who would use our product.
Each of the members of the group raised their own ideas, questions and opinions
on how to deal with the identified problems. With this kind of communication, we
were able to support each other to the task that were given to each member.
global/societal context
45
The necessary knowledge and skills needed in creating the Printing Vending
Machine has kept in our mind since the project is a combination of various
specializations. The group assured that each member of the group has researched
each skill that may help them to fabricate the final product.
The group reflected on the final output and how it can be improving in the future.
Having a knowledge in these areas, the group can keep on revising the project,
install a new feature which can help the product to be more efficient and
marketable.
As the group observed the problem which is – in the academe, the students and
other people in the school premises are sometimes having a hard time in finding a
printing station to produce their documents. So, this project aims to minimize that
K. Ability to use techniques, skill, and modern engineering tools for engineering practice
In making the frame of the whole machine, the group performed different
techniques such as measuring, sawing, and other carpentry techniques to make the
case of the Vending Machine. The group also utilized various electrical
46
Each member in the group was assigned to different task that can help in the
manufacturing, development and the presentation of the final product. As a team, each
member did their part to contribute to make the final output finished.
7.3. CONCLUSION
Vending machines are one of the prevalent part of the technology industry nowadays.
The purpose of this innovation is to make a new type of vending machine wherein the
main beneficiaries are the students in the academe. The approach of this innovation is to make a
school printer vending machine with the used of touchscreen LCD to display and dispense
documents. It aims to fabricate equipment with new features and improve the capability of
producing and dispensing. With the used of Internet of Things system for this machine, we were
able to come up with a more interactive user experience such as the Graphical User Interface
(GUI), whereas, the display used is the Raspberry Pi 7-inch touch screen display, internet
connective printers, and actuated coin and bill acceptors. As for the programming, the used of
python as the programming language with the raspberry pi will dictate the procedure that the
user will follow when interacting with the machine. The codes were programmed using OS and
we had transferred it to Linux on the raspberry pi. We limit the machine to simply “pay, print,
and go” system. However, the vending machine cannot provide a monetary change for now since
the focused on doing the machine is on the objective that it can produced a printed document in a
The system of the printer vending machine comprises of three units which are the, Input
unit, Processing unit, and Output unit. Every units has different uses. As the name suggests,
Input unit is a part where the money is placed, Process unit is where the data is being processed,
47
and lastly, the output unit is where the item is withdrawn. Also, there are some systems that are
included for the whole machine, namely: Electronic system, Mechanical system, and the
Electrical system.
The actual product of this project will be placed inside the vicinity of Mapua University –
Manila Campus. For those who will use the machine during the implementation of the product,
they will be receiving a survey questionnaire so that we can gather and analyse their suggestions
or opinions on what they had experience while they are using the vending machine. The result of
this survey will be used in the development of the machine itself. The future development of this
vending machine would be a great help in the technology industry since the people have a high
7.4. RECOMMENDATIONS
In this study we are able to create the actual document printing vending machine from its
hardware up to the brain of the product which codes and programs. The printing vending
machine can be used as a regular vending machine with a built in 7 inch touchscreen monitor in
line with this the user may not be able to clearly see the information in the screen because the
screen is too small so we recommend to have a bigger screen for the product to make it more
user friendly and comfortable for the customers. We recommend having a close GUI and a
screen saver when the vending machine is not in use. For the printer we recommend having a
switching mechanism for the paper selection to be able to have a different sizes of bond papers
which can make the user to choose the paper size they need. It will also be more economical for
the owner of the product in terms of its maintenance instead of buying a printer with a dual
interchangeable paper size which is more expensive in selling price and for its maintenance. We
48
also recommend to improve the counter of the payments in the program codes, we are able to do
the counting system but it takes time to count the inserted bills/coins which make a delay for the
customers.
49
REFERENCES
Shih-Chang Hung, J.-Y. L. (2016). When Innovations Meet Chaos: Analyzing the Technology
Development of Printers in 1976-2012. Journal of Engineering and Technology
Management, 42, 31–45.
A.Solano, N.Duro, R.Dormido, P. G. (2017). Smart vending machines in the era of internet of
things. Future Generation Computer Systems, 76, 215–220.
Verma, P. K., Verma, R., Prakash, A., Agrawal, A., Naik, K., Tripathi, R., … Abogharaf, A.
(2016). Machine-to-Machine (M2M) communications: A survey. Journal of Network and
Computer Applications, 66(May), 83–105. https://doi.org/10.1016/j.jnca.2016.02.016
Lambiquet, M. V, Lecong, L. E., Cervantes, S. J. L., Reyes, K. M., Agustin, C. B., &Robillos, H.
E. (2012). School Supply Vending Machine. Pulsar, 1(1).
50
APPENDIX
51
10. after inserting 20 coins “A2” will appear that means the second coin and repeat
step 9.
Figure A.
Schematic Diagram
CODES
52
Bill and Coin Collector
import time
GPIO.setmode(GPIO.BCM)
coinPin = 2
billPin = 3
print(“Program Started!”)
count = 0
countold=0
while True:
if GPIO.input(billPin):
count+=1
print (“Value:”),
print (count)
while GPIO.input(billPin):
pass
if GPIO.input(coinPin):
count+=1
53
print (“Value:”),
print (count)
while GPIO.input(coinPin):
pass
Printer
54
LongBTN.config(ima filenamesplit=filen if count >= total:
ge=self.LongPicBTN) ame.split(".") printmoto =
LongBTN.place(x=27 conn.printFile('HP_DeskJe
0, y=260) if filenamesplit[- t_3630_series', filename,
1]==".pdf": 'test', {})
ShortBTN = pass print(printmoto)
ttk.Button(self, else:
text="Short", conv =
command= subprocess.run(["doc2pdf", counter123=0
lambda: filename])
controller.show_frame(Sho filenamestring="
rtPage)) "
ShortBTN.pack()
ShortBTN.config(ima for x in
ge=self.ShortPicBTN) filenamesplit[-2]:
ShortBTN.place(x=40 filenamestring
0, y=260) +=x def bprinteeer(self):
55
print("Value PrintBTN.p pull_up_down=GPIO.PUD
:"), ack() _UP)
print(count) PrintBTN.pl GPIO.setup(billP
change=1 ace(x=520, y=330) in, GPIO.IN,
while count = 0 pull_up_down=GPIO.PUD
GPIO.input(billPin): _UP)
pass
elif print("Program
GPIO.input(coinPin): Started!")
print("Bill Tamount.delete(1.0 count = 0
Detected") ,END) countold=0
count+=1 printblack = change=0
print("Value subprocess.run(["sudo", while True:
:"), "lpadmin", "-p", if
print(count) "HP_DeskJet_3630_series GPIO.input(billPin):
change=1 ", "-o", print("Coin
while "ColorModel=CMYGray"] Detected")
GPIO.input(coinPin): ) count+=1
pass total = print("Value
if change == PagesBox.get("1.0", "end- :"),
1: 1c") print(count)
Tinsert1 = totall=float(total) change=1
Label(self, text=" totalcheck=totall while
", font=("Courier",20)) Tamount.insert(0.0, GPIO.input(billPin):
Tinsert1.pla totall*3) pass
ce(x=520, y=360) insertedAmount=0 elif
Tinsert1 = print("total GPIO.input(coinPin):
Label(self, text=str(count), is",total) print("Bill
font=("Courier",20)) t=threading.Thread( Detected")
Tinsert1.pla target=paycheck,args=(tota count+=1
ce(x=520, y=360) ll*3,)) print("Value
change=0 t.start() :"),
print(count)
counter123 print(printblack) change=1
=count while
def cprinteeer(self): GPIO.input(coinPin):
def paycheck(total): pass
if global if change ==
count>int(total): counter123 1:
PrintBTN = print("working") Tinsert1 =
ttk.Button(self, GPIO.setmode(G Label(self, text="
text="Print", PIO.BCM) ", font=("Courier",20))
command=lambda: coinPin = 2 Tinsert1.pla
printeeer(self,counter123,t billPin = 3 ce(x=520, y=360)
otal)) GPIO.setup(coin
Pin, GPIO.IN,
56
Tinsert1 =
Label(self, text=str(count), PagesBox = Text(self,
font=("Courier",20)) Frame.__init__(self, width=40, height=1,
Tinsert1.pla parent) wrap=WORD)
ce(x=520, y=360) PagesBox.place(x=35
change=0 page = StringVar() 0, y=240)
57
controller.show_frame(Star pdf=PdfFileReader( GPIO.setmode(G
tPage)) open(filename, 'rb')) PIO.BCM)
BackBTN.pack() numnum=pdf.getN coinPin = 2
umPages() billPin = 3
GPIO.setup(coin
class ShortPage(Frame): TextBox.insert(0.0, Pin, GPIO.IN,
filename) pull_up_down=GPIO.PUD
def __init__(self, parent, PagesBox.insert(0. _UP)
controller): 0, numnum) GPIO.setup(billP
in, GPIO.IN,
conn = return filename pull_up_down=GPIO.PUD
cups.Connection() _UP)
def presetz(self):
def choosefile(self): prez = print("Program
global filename "http://localhost:631/admin Started!")
filename = /#General" count = 0
filedialog.askopenfilename webbrowser.open_ countold=0
(initialdir = "/",title = new_tab(prez) change=0
"Select file",filetypes = while True:
(("docx files def if
files","*.docx"),("pdf files printeeer(self,count,total): GPIO.input(billPin):
files","*.pdf"),("all global counter123 print("Coin
files","*.*"))) print(count,total) Detected")
filenamesplit=filen if count >= total: count+=1
ame.split(".") printmoto = print("Value
conn.printFile('HP_DeskJe :"),
if filenamesplit[- t_3630_series', filename, print(count)
1]==".pdf": 'test', {}) change=1
pass print(printmoto) while
else: GPIO.input(billPin):
conv = pass
subprocess.run(["doc2pdf", counter123=0 elif
filename]) GPIO.input(coinPin):
filenamestring=" print("Bill
" Detected")
count+=1
for x in print("Value
filenamesplit[-2]: :"),
filenamestring print(count)
+=x def bprinteeer(self): change=1
while
filename = def paycheck(total): GPIO.input(coinPin):
filenamestring + str(".pdf") global pass
print(filename counter123 if change ==
) print("working") 1:
58
Tinsert1 = Tamount.insert(0.0, while
Label(self, text=" totall*3) GPIO.input(billPin):
", font=("Courier",20)) insertedAmount=0 pass
Tinsert1.pla print("total elif
ce(x=520, y=360) is",total) GPIO.input(coinPin):
Tinsert1 = t=threading.Thread( print("Bill
Label(self, text=str(count), target=paycheck,args=(tota Detected")
font=("Courier",20)) ll*3,)) count+=1
Tinsert1.pla t.start() print("Value
ce(x=520, y=360) :"),
change=0 print(printblack) print(count)
change=1
counter123 def cprinteeer(self): while
=count def paycheck(total): GPIO.input(coinPin):
if global pass
count>int(total): counter123 if change ==
PrintBTN = print("working") 1:
ttk.Button(self, GPIO.setmode(G Tinsert1 =
text="Print", PIO.BCM) Label(self, text="
command=lambda: coinPin = 5 ", font=("Courier",20))
printeeer(self,counter123,t billPin = 3 Tinsert1.pla
otal)) GPIO.setup(coin ce(x=520, y=360)
PrintBTN.p Pin, GPIO.IN, Tinsert1 =
ack() pull_up_down=GPIO.PUD Label(self, text=str(count),
PrintBTN.pl _UP) font=("Courier",20))
ace(x=520, y=330) GPIO.setup(billP Tinsert1.pla
count = 0 in, GPIO.IN, ce(x=520, y=360)
pull_up_down=GPIO.PUD change=0
_UP)
counter123
print("Program =count
Tamount.delete(1.0 Started!") if
,END) count = 0 count>int(total):
printblack = countold=0 PrintBTN =
subprocess.run(["sudo", change=0 ttk.Button(self,
"lpadmin", "-p", while True: text="Print",
"HP_DeskJet_3630_series if command=lambda:
", "-o", GPIO.input(billPin): printeeer(self,counter123,t
"ColorModel=CMYGray"] print("Coin otal))
) Detected") PrintBTN.p
total = count+=1 ack()
PagesBox.get("1.0", "end- print("Value PrintBTN.pl
1c") :"), ace(x=520, y=330)
totall=float(total) print(count) count = 0
totalcheck=totall change=1 Tamount.delete(1.0
,END)
59
printcolored = ChooseBTN.place(x= Tinsert = Label(self,
subprocess.run(["sudo", 517, y=190) text="Total Inserted: ",
"lpadmin", "-p", font=("Courier",20))
"HP_DeskJet_3630_series TextBox = Text(self, Tinsert.place(x=140,
", "-o", width=36, height=1, y=360)
"ColorModel=RGB"]) wrap=WORD)
total = TextBox.place(x=250,
PagesBox.get("1.0", "end- y=192)
1c") PrintBlackBTN =
totall=float(total) #PrintBTN = ttk.Button(self,
ttk.Button(self, text="Black",
print("total text="Print", command=lambda:
is",totall) command=lambda: bprinteeer(self))
t=threading.Thread( printeeer(self)) PrintBlackBTN.pack(
target=paycheck,args=(tota )
ll*5,)) PagesLabel = PrintBlackBTN.place(
t.start() Label(self, text="Pages: ", x=250, y=330)
font=("Courier",20))
PagesLabel.place(x=2 PrintColoredBTN =
Tamount.insert(0.0, 50, y=230) ttk.Button(self,
totall*5) text="Colored",
print(printcolored) TamountLabel = command=lambda:
Label(self, text="Total cprinteeer(self))
Amount: ", PrintColoredBTN.pac
Frame.__init__(self, font=("Courier",20)) k()
parent) TamountLabel.place( PrintColoredBTN.pla
x=140, y=280) ce(x=150, y=330)
page = StringVar()
PagesBox = Text(self, BackBTN =
label = Label(self, width=40, height=1, ttk.Button(self,
text="S H O R T", wrap=WORD) text="Back",
font=LARGE_FONT) PagesBox.place(x=35 command=
label.pack(pady=10, 0, y=240) lambda:
padx=10) controller.show_frame(Star
Tamount = Text(self, tPage))
ChooseBTN = width=40, height=1, BackBTN.pack()
ttk.Button(self, wrap=WORD)
text="Choose file...", Tamount.place(x=350
command=lambda: , y=290)
choosefile(self)) app = Print()
ChooseBTN.pack() app.mainloop()
60
Figure B.1 GUI
61
Figure B.2 GUI
SET-UP
62
63