Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

Smart Tracking System for Packaged Product

Using Barcode
1st Joyce Mathews 2nd Vijayashree H P 3rd Akshatha M C
Student, Computer Science and Asst. Professor, Computer Science Student, Computer Science and
Engineering and Engineering Engineering
Vemana Institute of Technology Vemana Institute of Technology Vemana Institute of Technology
Bengaluru, India Bengaluru, India Bengaluru, India
caspermat48@gmail.com vijayashree.hp@vemanait.edu.in mcakshatha1@gmail.com

4th Ankitha B R 5th Karthik V


Student, Computer Science and Student, Computer Science and
Engineering Engineering
Vemana Institute of Technology Vemana Institute of Technology
Bengaluru, India Bengaluru, India
ankithareddy2310@gmail.com vkarthik15.k@gmail.com
Abstract— Smart Tracking System for Packaged Product finds waste due to spoilage, and minimizes the risk of serving expired
out the available stock of items using barcodes such as soaps, food, ultimately safeguarding public health and brand
detergents, snacks packets and other packaged items. Each time reputation. Food banks and donation centers can utilize the
an item is added or removed, the barcode needs to be scanned to system to track donations and identify expiring items before they
update the inventory database. A threshold level is set for the spoil. This allows for efficient distribution of usable food to
count of the items such that when the available stock goes below those in need, maximizing the impact of their efforts and
the threshold the system sends a notification to the user through ensuring that valuable resources reach the intended recipients.
the app. The system waits for the user’s response (via app) on
whether to place an order for that item or not. If the user replies The impact of the Smart Packaged Product Tracking System
‘Yes’, then it places an order for that item to a designated store extends beyond individual businesses. By implementing this
through the app. If the system does not get a command from the system across the entire food supply chain, from farms to
user, restocking for that item is paused. It updates the database
consumers, significant reductions in food waste can be achieved.
for the product only after the item is replenished by the user. The
barcodes with expiry date information are attached on the items. This translates to a more sustainable food system, with reduced
The system can periodically check this information to alert users environmental impact. Food production and disposal are
when items are reaching their expiration dates. The main goal is resource-intensive processes, and minimizing food waste
to avoid the wastage of the products and to keep track of them conserves precious water, land, and energy. Additionally, a more
which helps in easy maintenance of the grocery list. efficient food system with less waste can potentially lead to
Keywords— IoT, AWS Cloud, Tracking, Barcode, Threshold, lower food prices for everyone.
Expiry, Grocery.
The beauty of the Smart Packaged Product Tracking System lies
in its core functionalities – barcode scanning, real-time data, and
I. INTRODUCTION user notifications – which can be adapted to various applications
within the food sector. This scalability positions the system as a
powerful tool for creating a more responsible approach to food
The 21st century food sector faces a significant challenge: food management on a global scale. By leveraging advancements in
spoilage and waste. Traditional inventory management, technology and promoting real-time data management, the Smart
particularly for packaged goods, struggles with inherent Packaged Product Tracking System has the potential to
limitations. Manual processes like counting and record- revolutionize the food industry, fostering a future with less waste,
keeping are error-prone, leading to inaccurate stock levels and greater efficiency, and a more sustainable food system for all.
inefficiencies. Time spent on these tasks slows down
operations, hindering responsiveness. Furthermore, the lack of
real-time data across locations creates blind spots, making it II. RELATED WORK
difficult to optimize inventory and prevent stockouts or costly
overstocking. Accurately forecasting demand is another
[1] IoT based smart inventory management system contains
hurdle, potentially leading to insufficient stock or excessive
Weight sensors to detect the reducing weight of groceries. The
inventory that ties up valuable space and resources. Finally,
sensors are arranged in such a way that, when the compartment
manual systems offer less protection against theft or misplaced
is full the LDRs will get no light from LED and give 000 value
inventory.
and when it is empty it will give 111 values. Order is placed
These limitations highlight the need for a more efficient and directly when quantity is low. It provides high efficiency and
accurate solution for packaged product inventory convenience along with the features of online automatic
management. The Smart Packaged Product Tracking System ordering, expenditure Tracing and order tracing. User is
offers a comprehensive solution for efficient inventory reminded of grocery status so that user can order groceries before
management and waste reduction, not just in households, but finishing the existing groceries. It contains limitations such as
across the entire food supply chain. The system utilizes filling the containers with products each time is time consuming.
barcodes and real-time updates to ensure accurate tracking of [2] This project is an attempt to provide the advantages of online
items. Users receive timely notifications when stock levels fall shopping to customers of a real shop. It helps buying the products
below set thresholds, enabling them to make informed in the shop anywhere through internet by using an android
decisions about restocking and preventing unnecessary waste. device. The main objective is to provide better interaction
The app's user interaction allows for seamless decision- features on grocery websites that could improve sales over the
making for restocking, further minimizing waste. internet. System design has two phases of development, one is
Additionally, the system enhances user convenience by logical design that contains inputs that is sources, outputs that is
automating the ordering process with designated stores, destinations, databases that is data sources and procedures that
streamlining the replenishment of items. The inclusion of are data flows and the last phase is physical design or coding.
expiry date tracking adds another layer of value, proactively The limitation is Quality of the products cannot be ensured with
alerting users to items nearing expiration and minimizing the online shopping.
likelihood of expired products being overlooked.
Comprehensively [3] The Smart Refrigerator contains only three
The real power of the Smart Packaged Product Tracking cameras and minimal wires. The system uses RaspberryPI and
System lies in its scalability and potential to be implemented NodeMCU,uses deep learning to monitor if the number of eggs
across various sectors within the food industry. Grocery stores available is sufficient using image processing and convolutional
and warehouses can employ the system to optimize ordering, network, These contains receiving module, refrigerator, cabinet
minimize spoilage, and reduce out-of-stock situations. Real- such as load cell sensors to measure the weights , and data
time inventory data allows for better planning, leading to storage module. The main objective is to reduce food wastage
happier customers, less waste, and increased profitability. and the system places an automatic online order with the
permission of user to replenish the finished food items when it
Restaurants and food service providers can leverage the system is finished and can be viewed through dedicated web
to track not only packaged goods but also ingredients with application. The main limitation is Camera could be covered
expiry dates. This ensures proper stock rotation, prevents costly with fog due to cooling and Image processing techniques are not
highly accurate. [4] The Grocery management system will Frequency Identification uses SMART Radio Frequency
display all the things whose name starts with the letter selected Identification tags.The RFID tags attached to a bottle using an
by the user. He can select out of those displayed. Admin electronic device. These SMART tags will remove the need for
provides a singular username and password for every worker. a local database, as information is stored onto the physical tag
The system consists of 3 users: Admin who manages employee, ,to upgrade the manufacturing industry to Industry 4.0 standards
category, suppliers, items and view bill whereas employee that is combination of physical technology and cyber technology
searches and adds items to bill as per customer requirement and ,This reduceTime to market (ttm), the drawback is Quality
customer can add the products and the database is updated. The Control Check cannot be done.[10] While adding a new product,
project is based on sales transaction and billing of items in user scans RFID tag if available against RFID scanner. The
grocery stores. The drawback is Admin, Employee, and distance sensor triggers the camera as soon as the door is opened
Customer, cannot use the system simultaneously. or closed by the user. With this, an inside image of fridge is
captured to detect the current list of products using image
[5] Algorithms studied in this paper are Apriori Algorithm recognition mechanism .The details associated with RFID and
helps in finding frequent item sets in а dаtаset and Maxminer the list of detected products is synchronized and communicated
Algorithm helps in finding the frequent mаximаl itemsets and to Google Firebase using wifi connection. The data from load
Support Vector Machine used for Classification of problem, sensors is also shared with Google Firebase’s database on
and Random Forest Algorithm used as Method for subsequent opening and closing of door. Load sensors will keep
Classification and Regression. It’s a simple mobile application track of weight of products remaining in the fridge. As soon as
for creating and tracking the monthly consumption of grocery the product weight goes below the user specified threshold, user
products, engaging а grocery list collaboratively. It gets a notification on mobile phone running an android
Recommends the items based on the user’s previous purchase application. The gas sensor measures the concentration of
history and by analyzing the proper requirement of the ethylene gas released by ripening food. Gas sensor program will
consumer and suggesting the products accordingly is the main keep on running in the background in order to detect and prevent
goal of the paper. The limitation is it provides Unnecessary food spoilage as soon as possible. The current gas concentration
suggestions which can irritate the user. [6] The smart can be checked on mobile device at any given time. The
refrigerator using IoT and android uses it uses GSM SIM 900A drawback is camera may not capture the images properly due to
Module to send the notification to customer and to place order mist in the refrigerator.
for food items and to create an virtual interactive environment
between it and the user and when the items are finished it waits
for response whether to order or not. The Ultrasonic sensor are
used to count the number of eggs these sensors sends out a III. PROPOSED METHODOLOGY
sound wave at a specific frequency and waits for that sound
wave to bounce back for eggs and the Photo Coupler or Opto
Coupler are used to measure the amt of milk. For milk, when
the transmitter emits radiation, a part of the radiation reflects
from the object if it is present within the range specified to the
IR receiver. The drawback is Ultrasonic and infrared sensors
stop working due to extreme temperatures in refrigerators.
Sensors will not work in bottles of different shapes.

Comprehensively [7] Light Dependent Resistors (LDR)


sensors, IR sensor, smoke sensor and pressure sensor are placed
along a counter which can be used to sense the quality and
quantity of contents. These sensors are fitted in Refrigerator
compartments, which sense objects, shelf life and quantity of
objects and if no object is found, they produce “No Object”
signal or “No Quantity” signal which is fed to further stage.
They can be used to detect the milk and soft drinks containers
and to sense the presence of vegetables in the refrigerator.
Whenever the contents inside the refrigerator goes below the
predetermined threshold values are degraded in quality, or if
the product is on the verge of expiry, a trigger is generated
which is being transmitted in the form of message to the user
on the android app. With the permission of the user, an email
will be sent to the vendor regarding the purchase order The
drawback is sensors may stop working due to high cold
temperature. [8] This paper focuses on using RFID for items
tracking and management within smart fridges. Namely the
inventory module contains Search, Scan and Alert features ,
and recommendation module contains order feature and recipe
suggestion feature. This provides users in real time manner a
list of all remaining goods in the refrigerator. Smart Fridge is
able to inform them to take specific food which is good for their
health, Smart Fridge capable of predicting the next shopping Fig. 1:Proposed System Architecture
items list automatically based on several factors and reduce the
electricity bill through exploiting load shifting property. [9] The system architecture methodology as shown in Fig 1 is a
The Wireless SMART Product Tracking using Radio systematic approach crucial for designing the structure and
organization of a system. This process involves breaking down within the system, retrieving product details, updating the user's
the entire system into smaller, more manageable components inventory list, and potentially prompting restocking or expiry
or modules, with each component representing a distinct notifications. In essence, the barcode scanner acts as a translator,
functionality or feature. The objective is to create a bridging the gap between the physical world of packaged goods
comprehensive understanding of the system's internal and the digital world of intelligent inventory management.
workings. The interaction is defined in terms of data flow,
control flow, and communication mechanisms between
components. This specification ensures that the components
work together seamlessly to achieve the system's objectives. It
provides a roadmap for the flow of information and control
throughout the system. The flowchart outlines a detailed
process involving barcode scanning, database interaction,
product management, and user notifications within an app.

Fig 3:Barcode Scanner

B. ARDUINO UNO

The Arduino Uno, as shown in Fig 4, while not the only


microcontroller option for this Smart Packaged Product
Tracking System, offers a familiar and accessible starting point
for those comfortable with its functionalities. It excels in core
tasks like processing barcode data scanned from your groceries.
Fig. 2: Data Flow Diagram However, the Uno's missing Wi-Fi capability means it can't
directly connect to the AWS Cloud for data storage and
As shown in Fig 2 ,the system orchestrates a seamless flow of communication. To bridge this gap, a smartphone app with
data to empower users and optimize inventory management. Bluetooth or USB connectivity. This app would act as an
The journey begins with a user scanning a product's barcode. intermediary, receiving data from the Arduino Uno and then
This information travels to a cloud-based database, where it relaying it to the AWS Cloud for storage and analysis. Despite
unlocks the product's details like expiry date and brand. this additional step, the Arduino Uno's strength lies in its ability
Simultaneously, the user's app retrieves this data, updating the to simplify prototyping and handle essential functionalities
product list and reflecting changes in quantity. User interaction during the initial development stages. It's a great choice for
plays a crucial role here. They can set reorder thresholds and those looking for a familiar and approachable platform to build
opt for expiry notifications. The app analyzes this data and the core functionalities of their smart tracking system.
triggers alerts – a gentle nudge to restock when quantities dip
or a timely warning about nearing expiry dates. Armed with
this information, the user decides on a restocking strategy. The
app offers the convenience of direct in-app ordering from
partnered stores, streamlining the process. Alternatively, users
can choose manual purchase from any store. If they choose the
in-app option, the app transmits the order details to the store,
completing the restocking cycle. This continuous data
exchange empowers users with real-time inventory visibility,
expiry monitoring, and restocking options, ultimately
contributing to a more responsible and sustainable food system.

A. BARCODE SCANNER

The barcode scanner as shown in Fig 3 acts as the system's


entry point, initiating the data flow. It uses a light source, like
a laser, to illuminate the product's barcode. This seemingly
simple black and white pattern is a language the scanner can
understand. By detecting the reflected light patterns, the
scanner translates the barcode into a digital signal. But this isn't Fig 4:Barcode Scanner
gibberish - a built-in decoder interprets the signal based on the
barcode format, converting it into a readable product identifier.
Finally, the scanner transmits this information, along with any
additional details encoded in the barcode, wirelessly to the C. ESP8266 WiFi Sensor
user's app. This seemingly simple scan triggers a chain reaction
.The ESP8266 WiFi sensor shown in Fig 5, this sensor module backend, ensuring secure data storage and seamless
is integrated into the system to enable wireless communication, functionality. The process begins with a user scanning a
allowing data collected from barcode scanner to be transmitted product's barcode. The decoded data, typically a product
to a central processing unit. The ESP8266's low-cost, low- identifier, travels from the scanner to the ESP8266 board. This
power consumption, and built-in WiFi capabilities make it an board acts as a bridge, securely connecting to AWS via Wi-Fi.
ideal choice for IoT applications. The data received from the The product ID is then delivered to a designated entry point
ESP8266 sensor can be analyzed in real-time to assess the within AWS called API Gateway. Here, a pre-programmed
freshness of food products. This integration facilitates early function known as a Lambda function springs into action. This
detection of spoilage or contamination events, enabling timely function retrieves the corresponding product details from your
intervention to maintain food quality and safety standards cloud database, likely Amazon DynamoDB, using the received
throughout the supply chain. Overall, the ESP8266 WiFi sensor ID. Additionally, the Lambda function can update user
enhances the efficiency and effectiveness of freshness inventory or trigger notifications for low stock, or expiring items
detection systems by providing seamless connectivity and real- based on user preferences, all within the secure confines of
time data transmission capabilities. AWS. With the mobile app included, it can also connect to AWS
to access product information, user data, and potentially interact
with Lambda functions for tasks like restocking or managing
preferences. The true strength of AWS Cloud lies in its
scalability – it adapts to a growing user base. It also prioritizes
reliability with robust data security. Finally, serverless options
like Lambda functions simplify development and maintenance.

Fig 5: ESP8266 Wifi Sensor

D. USB HOST

This project can leverage a USB Host shield as shown in Fig


6,connected to the ESP8266 to enable barcode scanner
integration. This shield acts as a translator, allowing the
ESP8266 to communicate with the barcode scanner. When the
user scans a product, the scanner transmits the decoded barcode Fig 7: AWS Cloud
data (typically a product identifier) through a USB cable to the
shield. The USB Host shield then facilitates communication F. USER APP
with the ESP8266, essentially feeding it the scanned
information. The ESP8266 can then process this data, The user application as shown in Fig 8 serves as the central hub
potentially retrieving product details from a cloud database or for managing inventory within the Smart Packaged Product
updating the user's app, ultimately enabling real-time inventory Tracking System. A user-friendly interface featuring a bottom
management even with a wired barcode scanner. This approach navigation bar with clear icons allows for easy access to four
offers flexibility in scanner choice and potentially allows for key functionalities: Home, Inventory, Expiry, and Profile. The
some offline functionality if the ESP8266 has local storage Home page acts as the main dashboard, displaying categorized
capabilities. However, it adds hardware complexity and might product lists based on their expiry: "Good Products" (more than
increase power consumption compared to a purely wireless 30 days to expiry), "Expiring Soon" (less than 15 days), and
solution. "Expiring This Week" (within 8 days). This instant overview
keeps users informed about the overall health of their inventory.
For in-depth management, the Inventory page allows users to
search for unexpired items and displays a comprehensive list
for easy tracking. Similarly, the Expiry page focuses on expired
products, allowing users to search for specific items and view a
complete list.

The Profile page provides user information management


functionalities. It displays user details and group affiliation (if
applicable). Users can view group details and, if they are the
admin (who created the group), they can add new members by
email or phone number, with a maximum of 5 members per
group. New user registration is handled through a dedicated
page, while existing users can simply log in and remain signed
in for convenient access. The app also provides a "Forgot
Password" option for password recovery. In essence, the user
app empowers users with real-time inventory insights through
Fig 6: USB Host Shield
clear categorization, search functionality, and stock alerts. It
fosters collaboration through user groups and promotes a
E. AWS CLOUD
sustainable food system by minimizing food waste through
informed management.
The system leverages AWS Cloud as in Fig 7, as its powerful
Fig 8: User Application

Fig 9: Grocery Application


G. GROCERY APPLICATION

The grocery app as shown in Fig 9, within the system functions IV.EXPERIMENTAL SETUP
as a complete online marketplace for browsing, selecting, and
ordering groceries. The Home page acts as a digital storefront, The experimental setup for this smart packaged product tracking
showcasing popular seasonal items, new arrivals, and special system involves several steps:
promotions to capture user attention and encourage exploration
of the product selection. The Offer page highlights exclusive 1. Hardware Assembly: First, you'll need to physically
deals on popular products, incentivizing users with discounts. connect the various components including the Arduino
Additionally, rotating weekly specials across various Uno microcontroller, ESP8266 Wi-Fi board, barcode
categories encourage frequent visits for new bargains. The New scanner (wired or wireless), and a USB Host Shield (if
Products and Popular Products sections highlight recently using a wired scanner)
added or trending items. Users can view product details for 2. Firmware Development: The ESP8266 needs to be
informed choices, including descriptions, estimated delivery programmed with specific functionalities. This
times, and weights. Importantly, users can directly add desired program will tell the board how to process barcode
items to their shopping cart from these sections for a data, connect to Wi-Fi, and communicate with cloud
streamlined experience. services on AWS.
3. Cloud Configuration: An AWS account needs to be
The Category Page offers a comprehensive overview of all set up. Within this cloud platform, a database table on
available product categories, displayed for easy browsing. The DynamoDB will be created to store information.
number of products within each category gives users a sense of Additionally, Lambda functions will be configured to
the range and variety offered. Users can navigate deeper by handle tasks like retrieving data, updating inventory
clicking on a specific category to view individual products with based on scans, and potentially sending notifications to
the option to add them directly to the cart. The My Order page users.
keeps users informed about past purchases. It displays a list of 4. Mobile App Development: The user interface of the
all previous orders with details like date, order number, mobile app needs to be built. This app will allow users
purchased items, total amount, and status. Users can click on to manage their inventory, see product information,
individual orders for a more detailed view, including itemized and securely communicate with AWS services to
lists, delivery addresses, and payment details. The My Cart connect with their grocery store.
page acts as a virtual shopping basket. It displays a list of all 5. Integration and Testing: Once all the individual
added items, including product names, quantities, and prices. components are built (hardware assembly, firmware,
This allows users to review their selections, adjust quantities, cloud configuration, mobile app), they need to be
or remove unwanted items before checkout. Finally, a clear integrated to function as a whole system. This involves
"Checkout" button allows users to proceed and complete their thorough testing to ensure the entire process works
grocery purchase. By incorporating these functionalities, the smoothly. Barcode scans should be transmitted to the
grocery app offers a user-friendly and feature-rich platform for cloud, data should be retrieved by the app, and any
convenient online grocery shopping. notification functionalities should work as expected.
This setup can be used to evaluate the system's functionality, enhances user convenience by automating the ordering process
efficiency, and user experience before potential real-world with designated stores, streamlining the replenishment of items.
deployment. The inclusion of expiry date tracking adds an additional layer of
value, proactively alerting users to items nearing expiration and
minimizing the likelihood of expired products being
overlooked.
V.RESULTS
Ultimately, the project contributes to the overarching goal of
minimizing product wastage, simplifying grocery list
maintenance, and fostering a more sustainable and organized
approach to household inventory management. The Smart
Packaged Product Tracking System stands as an innovative and
user-friendly solution to address the challenges associated with
product expiration and stock depletion in everyday household
setting.

VII.FUTURE SCOPE

In seamless integration with smart refrigerators or pantry


sensors, providing real-time stock levels and eliminating manual
scanning. Voice assistants could be integrated for hands-free
product addition to shopping lists or inventory updates,
streamlining the grocery shopping experience. Partnering with
Fig 10: Hardware setup
local farmers' markets or promoting organic produce could
enhance the app's appeal to environmentally conscious users.
Arduino UNO, USB Host Shield and ESP8266 WiFi Sensor The grocery app could even connect with food banks or
are connected to each other to the Barcode Scanner as shown composting services to find responsible solutions for soon-to-
in Fig 10. The data can be scanned via the Barcode Scanner expire items. In a recipe recommendation engine that suggests
and the data is sent to the Arduino Uno board. The Wifi Senor delicious meals based on your current inventory. The app could
enable this data to be sent to the cloud. also evolve into a community forum for sharing recipes, meal
planning tips, and creating a collaborative approach to food
management, reducing waste and promoting resourcefulness.
By exploring these advancements, the Smart Packaged Product
Tracking System can transform into a comprehensive platform
for intelligent food management, minimized waste, and a more
sustainable food ecosystem, all while incorporating features like
recipe recommendations to inspire culinary creativity and
reduce food waste even further.

REFERENCES

[1]. IoT Based Smart Inventory Management System for


Kitchen Using Weight Sensors, LDR, LED, Arduino Mega
and NodeMCU (ESP8266) Wi-Fi Module with Website and
App-2022
https://ieeexplore.ieee.org/document/8776761
[2]. Grocery Management System-2022
https://ijsrd.com/Article.php?manuscript=IJSRDV9I40264
Fig 11: Scanning of Barcode [3]. IoT based Grocery Management System: Smart
Refrigerator and Smart Cabinet-2021
Barcode is scanned via the barcode scanner as shown in Fig
https://ieeexplore.ieee.org/document/9028031
11, and this data is uploaded to the user app and the scanned
[4]. Grocery Store Management System with
barcode is seen in the NetBeans output display with #0.
Recommendation Feature-2021
https://ijarcce.com/papers/grocery-store-management-
system-with-recommendation-feature/
VI.CONCLUSION [5]. A Review on Grocery Management System Using
Machine Learning Algorithms-2020
In conclusion, the system offers a comprehensive solution for https://www.ijera.com/papers/vol11no12/Ser-
efficient inventory management and waste reduction in 1/C1112011924.pdf
households. By utilizing barcodes and real-time updates, the [6]. Smart Refrigerator using IoT and Android-2020
system ensures accurate tracking of items, prompting timely https://www.researchgate.net/publication/347515610_Smar
notifications to users when stock levels fall below set t_Refrigerator_using_Internet_of_Things_and_Android
thresholds. The incorporation of user interaction through the [7]. IoT based Refrigerator, Storage Room and FMCG
app enables a seamless decision-making process for restocking, Products Stock Monitoring with Email Alert-2020
IRJET-V7I7854.pdf
preventing unnecessary waste. Furthermore, the system
[8]. Introducing Innovative Item Management Process
Towards Providing Smart Fridges-2019
https://drive.google.com/drive/folders/1ylGTvX-66-
Qyg_n2B6N9fAIhR4_YNxsg
[9]. Wireless SMART Product Tracking using Radio
Frequency Identification-2019
https://drive.google.com/drive/folders/1ylGTvX-66-
Qyg_n2B6N9fAIhR4_YNxsg
[10]. IoT Based Novel Smart Refrigerator to Curb Food
Wastage-2019
https://drive.google.com/drive/folders/1ylGTvX-66-
Qyg_n2B6N9fAIhR4_YNxsg

You might also like