Shravani B - Ecart Project Report
Shravani B - Ecart Project Report
CHAPTER 1
INTRODUCTION
About the Project
The smart trolley shopping cart or the virtual cart project, this project is about smart shopping technique
without wasting much time in the longue ques in the shopping malls dmarts or any kind of shoppings.here
there will be an smart application or device intruded to the shopping trolley which will have an rfid readers
when the customer shops for the products and when he put the products inside the trolley the rfid reader will
read the rfid tags which will be there on the products and bill will be generated and to avoid over budget while
shopping there will be a budget planner as well which will indicate when we exceeds the budget.and there is
an another option for shopping that is if we do not want to push trolley then u can just scan the product’s you
want and the items will be added to the cart in the mobile application Along with this the customers can add
items in to do list and buy those items too And also customer can view the recipe items in the IOT Application
Recipe Handler And payment can be managed according to the customers convenience.
ABSTRACT
RFID tags generally works with all the wireless or partially wireless communications that will allow us for
remote gathering of the information associated with a particular product component or other items as well. In
RFID environments each similar items or products will be tagged with an RFID tags which includes and then
transmits one or more number pieces of information like for example a unique identifier or variable This piece
of information is requested or retrieved from an RFID reader. Common RFID readers are either small tags that
operate in a limited RFID space for example windows out-gates and other non-mobile or fixed sites In
general the rfid tags need to be within four foot distance to work properly if it is more than four foot distance
then it is difficult to catch the sensors signals. Some stationaries or the devices which will give a wide range of
offers with the greater communication distances greater handheld machines In many circumstances this
technology will allows two devices the tag and reader to send and receive the data with each of them while not
maintaining a line of sight in any conditions
Here the rfid tags are used to read the data of the product’s and and enter those data and add the products to
the cart .here we wre using the multiplexing and demultiplexing technique for reading the data and there will
be a rfid reader to read all the data and send it to the server.
The main objective of this proposed project is to show a true time and we can scan the product information
through RFID readers It will identify a product based on its values and the basic features but it will not
authenticate it through the andriod phone and then it decodes and sends it to the server for authentication
purpose .here we are mainly focusing on the time management and customer satisfaction .customer can login
through the given login credentials and continue shopping or through using the cart also he can do shopping .
Once he finish shopping he can go to the payment gate way and an otp will be generated from the admin end to
the registered mobile number .and once the customer enters the card detals payment will be done and the order
will be placed and the person from the shops authority will bring the order and gives it to the customer.
MINDSET IT SOLUTIONS it is a cosmopolitan product company for giving the solutions for the
technology companys around the world incorporating with the proved experience in the technologies and
wast knowledge in the hardware products .At Mindset Technology company . rather than only delivering the
software solutions to the companies we undergo with the clients technology’s as well and help them
understand the business requirements and the current technologies which are on trend and also give required
trainings as well. And understand the advantages or disadvantages of the business.
It was Established in 2001 by a group of software engineers Mindset Technologies private Ltd is a software
helps to restart the working order and also it helps the companys to deploy or manage the business in the
censorious softwares and more effectively by using the two or more of exclusive software technology and a
very special experienced Mindset solutions lmt helps startups or the small scale business startups like it
companys to boost their speed in business and consistency and their services .here we help the companies to
avoid the cost effect and the risks occurred during the development of the project.we take up such products
and try to rectify those errors.
At MINDSET, basically we will be following the hardware methods and the software policy which is mostly
the mixture of the policy’s as well as process. The process here refers to the best practices that are derived
from the hardware and the software companies. This process will be continuously redefined for the ongoing
measurements and it will give improvement for both process and products quality.
Contract Staff Services will provide skill full resources to the clients to meet their requirements and to dismiss
the lengthy selection process by the Consultants Company’s based on the trainee’s performance during the
training period. We recommend the trainees from different fields for particular jobs
1. Budget planning
2. Customers satisfaction
3. MONEY savings
4. Time Efficiency
5. Improvement in the Customer relations.
6. List out specific recipes by recipe handler features
Hardware requirements
Micro controller AT89C5:- AT89S51 Microcontrollers is a lower power but will have more specific
performance with CMOS eight bit microcomputer will have 8000 byte .the Flash program and removable
read only memory PEROM the on chip it will allow the programs storage space to be rephrased by the
systems or by the convenient changeable memory programs.
Features:
PORT IMPLEMENTATIONS
RST Function:- reset input a pin will include a higher value on this pin port for the two machine cycle while
the oscillator’s will work on the reset devices.
ALE or PROG Function: - in this technique address latch will allow the latch function to pulse the output
and also for capturing the lower bytes of the address during the access to the external memory. And here the
pins will also be in the form of programs pulse input PROG while doing the Flash programming process.
PSEN port :-Program Store enable will act as an read gate to external programmable memory it means
when the AT89C52 microprocessor will get execute the code from external memory and PSEN port will get
executed twice for each and every machine cycles other than the activation process and that will be neglected
during the external access to the memory location.
EA AND VP port:-EA that is external access enables here the external enable must be connected to ground in
order to access the data from the output devices and when the code gets executed from the external programed
memory the vpp will be activated twice and it needs to be connected to the Vp port for the inner program
execution as well.
The vpp pin will also receive the twelve volt for program enable voltage from the VP port during the flash
module execution and then the twelve volt will be selected for programming.
XTAL port 1:- Inputs will be turnaround to the oscillator’s amplifier and then it will input to the internal
circuits in clockwise direction.
XTAL port 2:- Outputs the data from turnaround oscillators amplifier
The microcontrollers will have two pins which will be used for sending and receiving data lineally .
These two pins will be called as TxD and RxD respectively and they are the part of the port 3 groups Pin
eleven of 89S52 will be assigned to the TxD port and Pin ten will be assigned as RxD port .this rxd and
TxD pin are ttl compatible so we need to assign line drivers for all the pins . One of such line driver is
MAX232.
This MAX232 line driver converts the rs232voltage levels to the ttl voltage levels and vice versa of it
like it converts rs232 voltage levels to ttl voltage levels as well. One of the main advantages of this max232 is
it always uses 5+v and it is similar to the rs232 voltage line.
This MAX232 will have mainly two group of line drivers for sending and receiving data prom the
external devices as shown in the below diagram. This line drivers which are used for txd ports are called as
t1 and t2 and while the line drivers which are used for the rxd are shown as r1and r2 among so many
applications in the processor only single of them will be implemented that is t1 and r1 or t2 and r2.
If the pcon 7 that is SMOD=1 then the baud rate of the port will be successfully doubled. Therefore the above
sum will become TH1=256-crystal/1
In this instance if at all we want to arrange the serial port numbers to 19200 baud rate and if we use first
equation, then we will get TH1=254
Here if we give the baud rate to 255 then we will have only 14467 baud rate and if we give it to the 256 then
we will get around 28800 baud, which is very high in range.
Hence to achieve this baud rate of 19,200 we should simply set the pcon or the smad=1.we cans
double the baud rate when we do this task completely and also we can use the second equation.
In the current years LCD is finding wide use changing to the LED. This is because of the some
reasons listed below.
Basic reading
This part will deal with the characters based LCD modules which will use Hitachi HD44780
controllers chip and this modules which we are using are not as advanced as the current generations ones like
larger display one or more display but it is used in laptops as well. But the characters based on the lcds are
widely used in trading and business equipment’s .in such places where the displaying requirements are less.
Even if there are limited versions or modules of this types there are several different types of display
systems .different types of crystal displays are used. For Example offers that are improved and there are
specially designed modules where the back lighting are available so that they can be viewed in the dim light
also.
Connections
In this a 14 pin access will be provided with 3 control lines and 3 power lines as well. And this
connection will be set out in the one of the configuration. This is calculated by either the two or more number
of rows on the seven pins or for the single row from the fourteen pins layout. The difference for this are
displayed in the below diagram.
Here the lcds will be connected to microcontrollers by the controller interface medium. Here the
asci value characters that are passed through the LCD modules will be compared by the look up table and then
that value will be displayed to the internal memory.
Role of LCD
The LCD module will be used in the vehicle anti-collision system to display the range of information which
will be calculated by LV Max Sonar-EZ1 and it will also display one of the three zones in which the vehicles
are present. If the distance is displayed above 20 inch it displays safe zone. If the reach is between them is 15
and 19 inches, then it will displays alert zone. If the distance is below 15 inches, then the LCD will display the
stop zone.
16*2 LCD
This LCD is used to display 16 characters in 2 rows and it will have the volume to display all the numerical
values or the characters values and also the graphic designs in the lcd modules.
P2.0
P2.7
8051
MICROCONTROLLER
P3.4
P3.5
P3.6
DO
D1
D2
D3
SOFTWARE REQUIERMENT
The following diagram represents the complete keil vision technology and its methods.
C COMPILER
The files that are sent to the Kiel vision compilers and assemblers will be compiles here and also we can
make changes according to the customer requirements .
LIBRARY MANAGER
The library manager allows you to create a library from the object files and allows us to access the in build
library functions while developing the code .and the library’s will have individually formatted and ordered
programs while we can use in our coding’s
EMBEDDED C:
When designing the software for the embedded systems we use c with the 8051 .it is very usual to create
and place the entire code using the assembly code available with us with the more number of projects we
use this easier approach because the amount of code used in this technique is very less and more easier to
understand and the code must be typically less than 5 kb and it is commonly very simple in nature and is
more effective to use.
The problem with the projects done with the assemble code is that it is very difficult to understand and also
to maintain as well .especially if the code is not well commented with the help notes the division of codes
into the functions will force better structure of the code to be used and better structure from project to
project.
The better language such as c allows us to use better code to write which will resemble a human thought;
the developer can focus more time on the designing and developing of algorithms and pseudo code as well.
By using the c language the developer does not have to intimately familiar with the language or the
architecture of the processer or the project. This means anyone who gets the processer can easily run and
understand the project running process easily.
All of this is not meant that the embedded language is not good to use. But it requires subject knowledge
and in fact the embedded systems run on combination of c and assembly code.
BUFFER CIRCUIT
The BUFFER IC used is IC 4050 which is a voltage amplifier; it’s a non-inverting buffer. A buffer doesn’t
change its state and it also provides extra voltage supply.
This sixteen pin dill package IC 4050acts as an buffer reader and a converter as well. The inputs for this may
be of 2v to 5V the ic here acts as an buffer reader and converters well and here the ic’s will be used to
increase the voltage of the circuit and also It acts as a voltage amplifier as well .
Usually the buffer reader acts as an voltage amplifier and it converts the voltage current having the low
impedance as well and the other circuits will have the high impedance.
1 IC 4050 16
Vcc
2 15
3 14
4 13
5 12
6 11
7 10
8 Vss 9
DRIVER CIRCUIT
The driver circuit is used to increase the current handling capacity in the circuit. its acts as a moving circuit
for the relays. The IC ULN 2004 is used, this IC consist of an array of emitter-follower circuits.in this driver
circuit the basic Darlington pair circuit will plays an important role helps to connect to different devices and
convert the input signals to the server.
RFID TAGS
The main function of the rfid tags is to hold the data for the products and store that data and send that
data to the interrogator when it is requested and verify that data as well.
It contains the electronic chip and an antenna that is stored in the package to form a usable thing and that is
package and stored in an chip.
Figure 3.14
RFID Tag
CUSTOMER LOGIN: when customer opens the application a login page will be displayed the customer
needs to register first if he is not a member and then he can login through the login credentials. A continue his
shopping through the application and make payments.
RFID TAGS: here the rfid tags are used to read the data of the products and and enter those data and add the
products to the cart .here we wre using the multiplexing and demultiplexing technique for reading the data and
there will be a rfid reader to read all the data and send it to the server .
BILLING & PAYMENT: once the scanned products are confirmed the user will checkout from the cart and
that information will be sent to the server and it will be verified by the system admin or the shop database
manager. Once the customer verifies the data he will confirm and then an otp will be generated by using this and
payment gateway will be opened and by entering the card details the customer can pay the bill and buy the
items.
ARCHITECTURE DIAGRAM: The architectural diagram represents the functioning of the project.it shows
the working of the project from starting to ending. The customer enter the shop and login to the application
through the login credentials and can use that application to scan the items and those items will be added to the
cart or else the customer can take the smart shopping trolley and continue his shopping the rfid reader will read
the data from the tags which is present in the products and the bill will be shown on the lcd display which will
be fixed on the shopping cart and make bill payments. Through this technique a huge amount of time will be
saved and shopping experience will be very easy. The admin will login to the admin block and he can view the
orders and also can confirm those orders as well .once he confirms the order the customer can pay the bill and
block the order and then the shop authority people will bring those items and give it to the customer.
Working of an application:
Product Section:
RF Module
Power Supply Unit
Encoders Unit Transmitter
(+5V)
(433.92MHZ)
Trolley Section:
RF Module
Display Unit Transceiver
(4x16) (433.92MHZ)
Microcontroller
Power Supply Encoder/Decoder
Section
Unit Unit
(AT89s51)
Billing Section:
RF Module
Receiver Decoder Micro Level
(433.92MHZ Unit Controller Converter
) Unit
RS-232
Connector
User Authentication
Update bill
More Items?
Yes
SCANNER
no
Reads QR Code
Confirm Order
QR CODE
Displays error go to o
menu. Successful payment
Yes
Refresh the
database
Hardware Architecture
LCD DISPLAY
RFID READER PIC 16F877A
MICRO CONTROLLER
BLUETOOTH
RFID TAG
SMARTPHONE
.
5.2.1 HARDWARE DEMO
CHAPTER 6 –IMPLEMENTATION
Coding
Shopping main.c
xdata unsigned char m;
int k;
xdata unsigned char sum=0;
void Device_Init( void );
void RFID_Tag_Compare( void );
bit flag=1;
unsigned char soap[]="SOAP=10.00*";
unsigned char brush[]="BRUSH=20.00*";
unsigned char paste[]="PASTE=30.00*";
xdata unsigned char bread[]="BREAD=40.00*";
xdata unsigned char pepsi[]="PEPSI=60.00*";
unsigned char sum1[]="TA=000#";
unsigned char sum2[]="BAL=000";
unsigned char tag[]="02511957";
unsigned char tag1[]="06254113";
unsigned char tag2[]="06254168";
xdata unsigned char tag3[]="06254212";
xdata unsigned char tag4[]="06254225";
void main()
{
s1=0;
s2=0;
k=0;
//l=0;
m=0;
buzzer=0;
//n=0;
//v1=1;
//v2=1;
push_button=0;
Device_Init();
Rx_count=0;
CMRIT DEPARTMENT OF MCA 2020-2021
VIRTUAL ECART SHOPPING 33
}
if(o3==1)
{
UART_ST( paste );
// UART_ST( "\r\n" );
MSDelay(500);
// o3=0;
}
if(o4==1)
{
UART_ST( bread );
// UART_ST( "\r\n" );
MSDelay(500);
// o4=0;
}
if(o5==1)
{
UART_ST( pepsi );
// UART_ST( "\r\n" );
MSDelay(500);
//o5=0;
}
ALCD_Message( 0x01, "");
ALCD_Message( 0x80, sum1 );
//zu=0;
MSDelay(1000);
//v2=1;
UART_ST( sum1 );
// UART_ST( "\r\n" );
}
if( Rx_ST_Flag == 1 )
{
MSDelay(100);
Rx_data_arr[8] = '\0';
//MSDelay(1000);
Rx_ST_Flag = 0;
Rx_count=0;
RFID_Tag_Compare( );
}
}
}
bit x=1,y=1,z=1,a=1,b=1;
unsigned char temp=0;
x=strcmp(tag,Rx_data_arr );
if(x==0)
{
if( count==0 )
{
o1=1;
sum =sum+10;
if(sum<=k)
{
count=1;
temp=sum;
ALD_Message( 0x80, soap);
ALCD_Message( 0xc0, sum1);
MSDelay(500);
}
else
{
ALCD_Message( 0x01, "");
ALCD_Message( 0x80, "YOU CROSS THE");
ALCD_Message( 0xC0, "LIMITS");
buzzer=1;
MSDelay(1000);
buzzer=0;
ALCD_Message( 0x01, "");
}
}
else if(count==1)
{ o1=0;
count=0;
}
}
Shopping cart.c
CHAPTER 7- SCREENSHOTS
CHAPTER 8-CONCLUSION
The smart shopping trolley system .in this system the customer enter the shop and login to the application
through the login credentials and can use that application to scan the items and those items will be added to the
cart or else the customer can take the smart shopping trolley and continue his shopping the rfid reader will read
the data from the tags which is present in the product’s and the bill will be shown on the lcd display which will
be fixed on the shopping cart and make bill payments. Through this technique a huge amount of time will be
saved and shopping experience will be very easy. The admin will login to the admin block and he can view the
orders and also can confirm those orders as well.if the customer wants to pic the items it is also possible by
using smart trolley .when the user adds the product to the cart through the rfid tags the rfid reader will read the
product code and add directly to the bill and the customers no need to go to the billing section manually and
make the bill he can show the cart total amount and once the admin verifies he can pay the bill and buy the
items without any delay and time and energy will be saved.
CHAPTER 10-REFERENCES
1-AL-Amaira Almehairi, Tariq Bhatti website The virtual cart shopping:-Using smart phones and QR codes.
3-.microdidilated2.com
4-8052.com website
5- Keil.com website
THANK YOU