Solar-Powered E-Box For Parcel Delivery Using Esp8266 Module
Solar-Powered E-Box For Parcel Delivery Using Esp8266 Module
Prof. Joel I. Miano, MSCA1, Samfford S. Cabaluna2, Gerald C. Cahanza3, Jay E. Pasco4
Adviser1, Student2,3,4
Department of Computer Applications
College of Computer Studies
Mindanao State University – Iligan Institute of Technology
Iligan City
ABSTRACT
E-Commerce nowadays has become even more popular than before[1]. Customers choose to purchase
products online, thus increasing the rate of parcel deliveries around the globe, especially the
Philippines[2]. However, there are also issues in parcel delivery, wherein one is that packages are left
at the post office or other contact delivery locations when receivers do not have time, even
unavailable to accept delivery from a courier or postman. Due to this, researchers begin coining an
idea of a smart mailbox that notifies receivers of received mails. It is also beneficial for the safety
and security of parcels delivered. The researchers of this study also joined hands with other
researchers to develop a similar system, a prototype design of a Solar-Powered E-Box For Parcel
Delivery Using ESP8266 Module aligned with the Industry, Innovation And Infrastructure of the 9th
Sustainability Development Goals, which is to build resilient infrastructure, promote inclusive and
sustainable industrialization and foster innovation. It is a system designed to be remotely controlled
through WiFi. When a parcel is delivered in the absence of the receiver, the receiver while in
conversation with the delivery men will remotely unlock the e-box through the mobile application as
well as monitoring the activity inside and outside. A prototype was designed and developed in this
study, addressing the stated issue on delivery, with a security lock that secures the delivered parcels
inside, as well as monitoring the activities inside and outside the e-box with two surveillance cameras.
The system prototype was also tested and evaluated by both the researchers and the potential users.
Test and evaluation results show that the electronic box is usable and functional.
Figure 4 above shows that the system is running the ESP32 Cameras. Now, MQ
powered by a 100W solar panel charging a Telemetry Transport (MQTT) is an OASIS-
13.1V voltage power through the 100A solar approved Internet of Things communications
charger controller (to prevent the battery from protocol[11]. It's built as a super-lightweight
overcharging). The JSL II 12AH battery is publish/subscribe messaging transport that's
connected as well to the solar charger controller perfect for linking faraway devices with
to power up the system, as well as store minimal code and network resources. To save
generated power from the solar panel. The network bandwidth, MQTT message headers
solenoid lock receives a 12.2V power directly are minimal. It enables device-to-cloud and
from the solar charger controller. Its negative cloud-to-device communication. This makes it
pin is connected to the Normally-Closed port of simple to send messages to large groups of
the 5V power relay module while the negative objects. It has the capacity to connect millions
charge of the battery power supply is connected of IoT devices. For many IoT use cases,
to the common contact port of the relay module. message transmission reliability is critical. As a
The digital pin of the Relay is then connected to result, MQTT has three quality of service
the ESP8266 module digital pin 3 (D3), while levels: 0 - just once, 1 - at least once, and 2 -
its positive charge pin is connected to the VIN exactly once. Many IoT devices rely on
pin of the ESP8266 module, as well as its unstable cellular networks to communicate.
negative charge to the ESP8266 ground pin. Because MQTT supports persistent sessions,
The NodeMCU ESP8266 is powered by a 5.2V reconnecting the client to the broker takes less
power directly from the 5V and 3A USB port of time. MQTT makes it simple to encrypt
the solar charger controller having a power of communications with TLS and authenticate
0.2 watts. Combined with the power triggering clients with OAuth or other current
the solenoid lock which is 1.05 watts, a total authentication methods. From the many MQTT
power of 1.07 watts is consumed. When the applications, the researchers for this study
solenoid lock is not triggered, the power decided to use the MQTT Box app from Google
generated is 0.55 watts; when combined with Chrome to control the lock system. When the
the power from the ESP8266 module, the total programming of all devices were finished, the
power generated is 0.75 watts. Both ESP32 researchers then proceeded in building the
cameras are directly connected to and receive mobile application using the MIT App
power from the 5V and 3A USB port of the Inventor. In the MIT App Inventor, the
7805-voltage regulator module, having a researchers first worked out the overall design
particular total power of 1.45 watts when of the app. After designing the app, the
streaming live, and 0.8 watts when turned off. researchers then proceeded in setting up its
Overall, the whole system has a total of 4.15 back-end, the blocks section of the app
watts of power when the devices are turned on, inventor, programming the app’s operation, as
and 2.35 watts when devices are not triggered. well as including the connection of the
programmed devices of the system. The apk file
2.2.2 Software Design of the app was then built, downloaded, and then
The system, aside from its hardware design, installed on the mobile device. The researchers
involved programming of devices. The whole then had it tested to see whether the app is
system is controlled by a mobile application. functional or not.
Arduino IDE compiler was used to program all 2.3 System Implementation
the devices of the system using the libraries for
ESP8266 and ESP32 to program the NodeMCU Assessing the usability and technicality of the
EP8266 and the two ESP32 cameras. The system, the researchers began the
ESP32 cameras were programmed using basic implementation of the system. Testing and
codes and the ESP8266 was programmed with troubleshooting were conducted to evaluate its
codes involving the triggering of the solenoid capability to operate and be used by future
lock through the MQTT broker. The users.
researchers of this study acknowledge the Two scenarios of testing and troubleshooting
authorship of William Robert Tonapa (2020) were conducted for this section in this study: (1)
for the codes in running the solenoid lock, as Testing Scenario 1, wherein the researchers
well as Espressif (2019) for the codes in tested the system within the same network; and
5
(2) Testing Scenario 2, wherein the researchers particular survey. A chart on the colleges of the
have the system tested from another network. respondents and other details of the survey are
Details are discussed below. attached on Appendix J of this paper. Two
phases of evaluation were involved in this
2.3.1 Testing Scenario 1 particular survey: (1) the User Evaluation
In the first scenario, researchers tested the Survey, wherein the researchers assessed the
system's functionality and application control respondents’ evaluation on the system’s
response speed, as well as performed usability, and (2) the Technicality Survey,
troubleshooting. In this scenario, two phases of wherein the researchers assessed the
testing were conducted: (1) System respondents’ evaluation on the technicality of
Functionality Test and (2) Reaction Time Test. the system.
The researchers evaluated the system's Analysis of data from the post survey was also
functionality by observing the response of each done by observing the overall results of each
device to the application control. Those devices evaluation survey. The researchers used the
that triggered were deemed "functional," while Likert Scale in assessing the respondents’
those that did not were deemed "not evaluation regarding the system. The
functional." Ten attempts were made for each researchers used the formula shown on the
device control. This test was conducted twice: figure below in computing the average
(a) with devices connected to the computer, and percentage of the respondents stating how
(b) with devices connected to the battery via the usable, effective, and functional the system is.
solar charger controller and the solar panel,
with the mobile application in control.
Observing and recording the number of seconds
that passed after each device was triggered, the
researchers also assessed each device's reaction
time to the application control.
2.3.2 Testing Scenario 2
Figure 5 Computation of Average of Data
In the second testing scenario, the researchers Gathered
have the system (at least the lock) controlled
from another network. Two phases of this Figure 5 above shows that the average (in
particular testing scenario were conducted, (1) percentage form) was computed to determine
testing from another network, but within Iligan the system’s usability and technicality. The
City, and (2) testing from other networks average (%) was computed by dividing the sum
outside Iligan City by selected users. At least of the total for each evaluation (in percentage
the lock was tested since the cameras need a form) by the total number (N) based on the
proper server in order to be accessed anywhere respondents’ evaluation. The Total (%) was
(which will be recommended in the computed by the total number of respondents
recommendations section of this paper). based on their evaluation divided by the overall
total number of respondents (65) then
2.4 System Evaluation multiplied by 100.
Aside from the preliminary survey conducted
before the system was developed, another type
of survey was also conducted to evaluate the III. RESULTS AND DISCUSSION
output for this study. This particular survey is
This section discusses the results of the study,
the post survey, involving the evaluation of the
particularly the testing and troubleshooting of
system by randomly selected respondents.
the system and its evaluation from the
Selected respondents for this particular survey
respondents with regards to its usability and
are students of Mindanao State University
technicality. Some results from the preliminary
Iligan Institute of Technology since individuals
survey are also included in this chapter.
such as them usually engage in online
For the preliminary survey, the figures below
shopping, thus they are considered as potential
present the section in the preliminary survey
users for this system being implemented. A
that assessed the respondents’ challenges faced
total of 65 respondents were selected in this
6
in online shopping, especially during delivery, online, while 10 never purchased online,
starting from where they acquire goods, as well especially those who are not usually into online
as how frequently they purchase online or shopping.
physical stores, followed by questions that deal Those who frequently shop online prioritize
with how they handle delivery during their cash-on-delivery as a method of delivery
absence at their residence. payment. Some accept online payments,
including GCash, Paymaya, PayPal, etc. Others
paid by cash, while others used debit or credit
cards. This is further detailed in Appendix F of
this paper, which presents the preliminary
survey's specifics.
Moreover, with regard to online purchases of
goods and services, the figures below illustrate
the delivery obstacles encountered by
respondents.
not encounter difficulty in receiving parcels E-Box that receives parcels especially during
during their absence. Their feedback with the receivers’ absence from their respective
regards to how they handle such a situation are residence. 11 out of 84 respondents were not
presented in the figure below. sure regarding the idea while 7 out of 84
respondents disagree with the idea, since not all
can use this kind of technology.
With regards to the idea of a smart mailbox
concept, the table above shows that 32 out of 84
respondents have already heard of such an
existing system. 28 out of 84 respondents were
not sure while 24 out of 84 respondents have
not heard of the concept of a smart mailbox
concept. Combining the 84 respondents with
those from the post survey, most have not yet
heard of the concept of a smart mailbox system,
except the traditional mailbox system.
Figure 9 Handling Delivery During Absence Since most of the respondents agree to the idea
of developing a Solar-Powered E-Box for
Figure 9 above shows that 44 out of 84
Parcel Delivery, the same goes for the
respondents handle such as situation by asking
the delivery driver to deliver the next day, 32 implementation of this system, mostly agreeing
that it will address the issue of parcel delivery
out of 84 respondents handle by requesting their
neighbors to receive the package on their during the absence of the receiver. 63 out of 84
behalf, 11 out 84 respondents handle it by respondents agree that it will address the
challenges faced by parcel receivers in
asking their family members who are left
receiving parcels during their absence. The
behind when they are away, 9 out 84
same goes for the same number of respondents
respondents pick up their package from the
delivery company, and 2 out of 84 respondents agreeing that this kind of system will provide
handle it by meeting up with the delivery convenient access to parcel receivers. 17 out of
84 respondents remained not sure regarding this
drivers in another location.
matter, while 4 out of 84 respondents disagree
In summary, while the purchasing of goods with the idea. 14 out of 84 respondents
through physical stores is still rampant at the remained not sure whether the system will
present, at the same time, the purchasing provide convenient access to parcel receivers or
through online stores is also rising. With not, while 7 out of 84 respondents disagree with
regards to the introduction of the concept of a the idea, since not all can be able to use this kind
parcel receiving system, the development of a of technology.
Solar-Powered E-Box For Parcel Delivery Finally, the researchers asked the respondents
Using ESP8266 Module, the tables and figures as to what type of technology they would
below present the various feedback of the suggest in building the E-Box prototype.
respondents with regards to the concept.
Table 2 Introducing the Concept of the Solar-
Powered E-Box For Parcel Delivery
Table 2 above shows that 66 out of 84 Figure 10 above shows that mostly (66.7%)
respondents agree to the idea of developing an prefer SMS technology, 39% prefer WiFi and
8
QR Code Scanner, 23.8 % prefer Video electronic components. The system was well-
Recording, 22.6% prefer Touch Screen programmed and was able to function
Application, 17.9% prefer Bluetooth efficiently. All devices effectively proved to be
technology, 10.7 % prefer Voice Recognition, functional according to how they were
and 1.2% prefer biometric and/or face programmed. The mobile application used in
recognition. Those who disagree are concerned the system as shown in figure 12 below can
with the safety and security of the parcels control the system remotely through WiFi.
especially, and the technology itself is not
viable for the majority of the population.
Although SMS Technology is mostly
suggested, the researchers still focused on WiFi
technology at the moment as a starting point for
this project towards its advancement in the
future.
3.1 Design and Development of the Solar-
Powered E-Box For Parcel Delivery Using
ESP8266 Module
With regards to the output of the design and
development of the solar-powered e-box for
parcel delivery using esp8266 module, the
prototype was well designed and developed
based on the figure shown below (see figure
11).
wherein the system is tested from another (9) tests were successful out of ten (10) for each
network. device, while for the inside camera, eight (8)
tests were successful out of ten (10). The
3.3.1 Testing Scenario 1 Test Results failures were due to some wiring connectivity
For the testing scenario 1, two phases of tests issues; however these issues were addressed
were conducted. The system functionality test and the system again performed efficiently.
was first conducted wherein the functionality of The second phase of the test was the reaction
the system is evaluated as to how functional time test wherein the reaction time for each
each device is when triggered. Ten (10) device’s response when triggered was being
triggering tries were done for each device to recorded. The results of the test are shown in
evaluate its functionality. Two stages of the test Table 5 below. Five tests were conducted for
were conducted in this particular test, (a)when the reaction time when the button of each
all devices are connected to the computer and device is clicked.
(b) when all devices are connected to the
battery through the collar charger controller. Table 5 Testing Scenario 1 – System Reaction
Results of this particular phase of the test are Time In Triggering Each Device
stated below.
Table 3 Testing Scenario 1 – System Functionality
Test Results A
The tables below show the test results when the Table 8 Respondents Evaluation of the System’s
lock was controlled from another network, Feature and Quality
starting from within Iligan City up to other
cities in the Philippines.
Table 6 Testing Scenario 2 – Lock Control Within
Iligan City Test Results
responding to the button click in the mobile In terms of the system's usability and
application, as well as the inside camera which technicality, the overall system proved to be
has 60 respondents confirming its quick user-friendly, functional, and effective at
response, and 62 out of 65 respondents receiving and securing packages. However,
confirmed that the solenoid lock proved to be there is room for improvement.
responding quickly to the mobile application’s
control.
Analyzing the overall data regarding its V. ACKNOWLEDGMENT
reaction time, the figure below presents how We would like to express our deepest gratitude
quick the overall system is in responding to the to the following who gave priceless aid in the
application control. journey of our study, to our adviser, Prof. Joel
I. Miano, MSCA, for helping and guiding us in
how we would come up with this study, to our
panel members, Prof. Maria Fe P. Bahinting,
MIT, and Prof. Stefany Mae V. Caparida,
MSCA for the time you spent in guiding us on
how we are to improve this study, to FABLAB
Mindanao, for welcoming us in their Fabrangay
training for the design and construction of our
system hardware, as well as those who
supported us and helped us in implementing our
system. We extend our thanks to our ever-
Figure 20 System Reaction Time Percentage loving and supportive parents for your
Average unending love and support in our study and to
The same as its functionality, figure 20 above our friends who cheered for us. Above all,
shows that an average of 92.7% respondents praise and glory to the Lord behind us
stated that the system is quick in terms of its throughout this journey.
reaction time, thus, proving that all the devices
of the system are quick in responding to the
control of the mobile application. VI. REFERENCES
Overall, the system, based on the results above,
proved to be functional and quick in responding [1] Turska, S., & Madlenakova, L. (2019).
to the mobile application’s control. This Concept of Smart Postal Mailbox. Science
includes the further suggestions or Direct.
recommendations for the system’s https://www.sciencedirect.com/science/article/
improvement in the future. pii/S2352146519303357
[2] Gupta, P., Ranjan, R., Raman, D. S., Singh,
S., Kharayat, G., & Balaji, D. V. (2019).
IV. CONCLUSION Analysis of Delivery Issues that Customer Face
The researchers have developed a prototype of Upon E Commerce Shopping. Research Gate.
the design and developed system of the solar- https://www.researchgate.net/publication/3338
powered e-box for parcel delivery using 45783_Analysis_of_Deliver
esp8266, addressing the delivery issue of y_Issues_that_Customer_Face_upon_E-
receiving delivered parcels during the absence Commerce_Shopping
of the receiver by remotely unlocking and [3] CEP Market. (2020, August). Philippines
locking the e-box via WiFi using a mobile Courier, Express, and Parcel (CEP) Market -
application. Growth, Trends, and Forecasts (2020 - 2025)-
Based on the results presented in the preceding Product Image. Research and Markets.
section, the parcel security system for this Retrieved March 31, 2022, from
project was found to be effective in ensuring the https://www.researchandmarkets.com/reports/
safety of delivered packages.
15
5119466/philippines-courier express-and-
parcel-cep
[4] Cathelat, B. (2019). Smart cities: shaping
the society of 2030. UNESCO Publishing.
https://unesdoc.unesco.org/ark:/48223/pf0000
367762.locale=fr
[5] Khan, T. (2020, September 15). A Solar-
Powered IoT Connected Physical Mailbox
Interfaced with Smart Devices. MDPI.
Retrieved March 29, 2022, from
https://www.mdpi.com/2624-831X/1/1/8
[6] Tunberg, J., & Barriel, J. (2020). The Smart
Mailbox. Google Scholar.
https://www.kth.se/polopoly_fs/1.987202.158
9830463!/tunbergjacob_52111_2870370_The
%20smart%20mailbox%20100-1.pdf
[7] Sokullu, R., Akin, O., & Aslan, E. (2021,
December 31). Face Recognition Based
Multifunction IoT Smart Mailbox. Journal of
Emerging Computer Technologies, 1(2), 34-37.
https://dergipark.org.tr/en/pub/ject/issue/64442
/980121
[8] Zamree, M. E. A. B. M., Yusni, M. A. S. B.,
Najib, M. L. H. B. M., Hamdan, M. N. B.,
Suhaimi, M. S. Z. B., & Song, S.-I. (2020).
SMART MAILBOX WITH SECURITY
SYSTEM. Google Scholar.
https://ir.uitm.edu.my/id/eprint/66315/
[9] Tonapa, W. R. (2020, May 22). Mengontrol
Solenoid 12V lock door dengan esp8266
berbasis wireless. YouTube. Retrieved October
6, 2022, from
https://www.youtube.com/watch?v=pCftzcUX
MJY&t=115s
[10] Espressif. (2019). News ESP32-CAM and
Other Cool Projects on RNT. Espressif.
Retrieved October 6, 2022, from
https://www.espressif.com/en/news/ESP32_C
AM
[11] MQTT. (2022). MQTT - The Standard for
IoT Messaging. MQTT. Retrieved May 17,
2022, from https://mqtt.org