Beruflich Dokumente
Kultur Dokumente
By
SUPERVISED BY
ENGR. TAIMOOR ZAFAR
1
SBUR: A SMART CART
RIDA ZAFAR
SHAHROZ AHMED
SYED UMAR FAROOQ
SYED MUHAMMAD BILAL
Electrical Engineering
Bahria University, Karachi Campus
YEAR 2013-2017
2
iii
DECLARATION
We hereby declare that this project report is based on our original work except for
citations and quotations which have been duly acknowledged. We also declare that it
has not been previously and concurrently submitted for any other degree or award at
Bahria University or other institutions.
Signature : _________________________
Signature : _________________________
Signature : _________________________
Signature : _________________________
iii
iv
Date : _________________________
We certify that this project report entitled “SBUR: A SMART CART” prepared by
RIDA ZAFAR, SHAHROZ AHMED, SYED UMAR FAROOQ AND SYED
MUHAMMAD BILAL has met the required standard for submission in partial
fulfilment of the requirements for the award of Bachelor of Electrical Engineering
at Bahria University.
Approved by,
Signature : _________________________
Date : _________________________
iv
v
The copyright of this report belongs to the author under the terms of the
copyright Ordinance 1962 as qualified by Intellectual Property Policy of Bahria
University. Due acknowledgement shall always be made of the use of any material
contained in, or derived from, this report.
© 2017, Rida Zafar, Shahroz Ahmed, Syed Umar Farooq, Syed Muhammad
Bilal. All right reserved.
v
vi
Specially dedicated to
my beloved siblings, mother and father
(RIDA ZAFAR)
my beloved grandmother, mother and father
(SHAHROZ AHMED)
my beloved grandmother, mother and father
(SYED UMAR FAROOQ)
my beloved grandmother, mother and father
(SYED MUHAMMAD BILAL)
vi
vii
ACKNOWLEDGEMENTS
We would like to thank everyone who had contributed to the successful completion
of this project. We would like to express my gratitude to my research supervisor,
Engr. Taimoor Zafar for his invaluable advice, guidance and his/her enormous
patience throughout the development of the research.
In addition, we would also like to express our gratitude to our loving parents
and friends who had helped and given us encouragement.
vii
viii
ABSTRACT
An inventive product with societal acceptance is the one that supports the ease,
expediency and productivity in everyday life. In this report we’ve discussed about
“Smart Cart”, developed to help a person in regular shopping by lessening the time
spend while acquiring. The principle idea of this project is to give an advancement
masterminded, insignificant exertion, successfully flexible, and intense system for
helping shopping in person.
To avoid this entire headache of pulling the trolley, waiting in billing queue,
thinking about budget, we’ve designed a smart trolley that would reduce the
customer’s effort and make shopping easier. The smart trolley follows the customer
while purchasing items and it maintains a safe distance between customer and itself.
When a product is kept in the trolley, it automatically calculates the bill. The final
billing will be a lot easier as no separate billing counter will be required. This system
liberates old and handicapped individuals from the weight of pushing shopping
trolley in light of the fact that our proposing shopping trolley is basically a kind of
self-governing portable robots that perceives its proprietor and pursues her.
viii
ix
TABLE OF CONTENTS
DECLARATION iii
APPROVAL FOR SUBMISSION iv
ACKNOWLEDGEMENTS vii
ABSTRACT viii
TABLE OF CONTENTS ix
LIST OF TABLES xiii
LIST OF FIGURES xiiii
LIST OF ABBREVIATIONS xvv
LIST OF APPENDICES xvi
CHAPTER
1 INTRODUCTION 1
1.1 Background 1
1.2 Problem Statements 2
1.3 Aims and Objectives 3
1.4 Scope of Project 3
2 LITERATURE REVIEW 5
2.1 Introduction Error! Bookmark not defined.
2.1.1 The Mini Forklift Robot
Error! Bookmark not defined.
2.1.2 RF based Remote Operated Spy Robot 5
2.1.3 Robot Follower Team and Human Leader 6
2.1.4 IR Sensor based Mobile Robot 7
ix
x
4 IMPLMENTATION 24
4.1 Mechanical Structure Error! Bookmark not defined.
4.1.1 DC Gear Motor Error! Bookmark not
defined.
4.1.2 Wheels 22
4.1.3 Batery Error! Bookmark not defined.
4.1.4 Aduino Mega Error! Bookmark not defined.
4.1.5 Ultrasonic Sensors Error! Bookmark not defined.
4.1.5.1 Ultrasonic Sensors Coding 25
4.1.6 RFID Reader 30
4.1.7 LCD 31
4.1.7.1 LCD Coding 31
4.1.8 Magnetometer 39
REFERENCES 45
APPENDICES 47
xi
xii
LIST OF TABLES
xii
xiii
LIST OF FIGURES
xiv
xv
LIST OF ABBREVIATIONS
AC alternating current
DC direct current
IMU inertial measurement unit
LCD liquid crystal display
PCB printed circuit board
RFID radio-frequency identification
Rx receiver
Tx transmitter
xv
xvi
LIST OF APPENDICES
A LM1578 Datasheet 47
B LM7805 Datasheet 49
D RFID Datasheet 54
xvi
1
CHAPTER 1
1 INTRODUCTION
1.1 Background
The era has come where robots take the control over human labour. Many
customized robots are being used today for modern applications. Then again, the
keen robots have yet turned out to be prominent in day by day life applications. Later
on, a human-accommodating robots will be in need and they can bolster the clients
successfully and proficiently. The explanation behind human going after robotics
technology is to build up the relationship among people and the robot. For event, the
robot can pass on generous weights for people in specialist's offices, air terminals
and strip shopping centres. The robot can give administration to human as a
colleague in various sort of circumstances.
Now a days, every supermarket uses shopping baskets and shopping trolleys
remembering the true objective to aid customers to pick and store the things which
they plan buying. The customers drop everything which they wish to buy in the
shopping basket and thereafter keep on checkout at the cashier counter. The charging
procedure is very tedious and significantly monotonous and has made the
prerequisite for shops to use progressively human resource in the charging area, yet
then holding up time remains stunningly high. In this report, we propose the "Smart
1
2
Cart" which intends to take out the holding up time of consumers and lower the
aggregate work need.
On the other hand, customers worry over a ton of things while taking off to the
shopping centre. For example, most clients worry that the money they brought for
shopping is not enough to buy everything they want until their turn comes at the cash
counter. It will be an inconceivable solace if the customers are kept educated about
their bill.
Moreover, the shopping trolleys are constantly scattered all over the markets. It can
cause the trolley to runaway from its position and harm the general population. A
woman had been killed in China by a rapidly moving runaway trolley when she left
the lift [1]. A lady also lost her life and harmed her significant other in a mall by a
stacked runaway trolley [2].
2
3
ii) To design an automatic trolley that can carry a heavy thing to move
iii) To automate a shopping trolley that can lessen long lasting cash counter lines
This project is mainly designed to carry heavy weights in order to lessen human
labour. So its scope is, everywhere, where there is a need to carry heavy materials.
Basically, we’ve focused on applying this project in supermarkets but after few
For industrial practise, the objective indicated is to help industry that needs
move heavy instruments from one point to another. This trolley can accordingly
diminish the labour. At the point when there is need to convey overwhelming
3
4
instruments, it can be taken care of just by one worker since this trolley would follow
4
5
CHAPTER 2
LITERATURE REVIEW
2.1 Introduction
This segment discusses about data assembled to pick up information and thoughts in
settling the project. The choice to make a smart cart has been produced using a blend
of some moving robots with a manual trolley. There are a few sources that had been
taken as an asset, for example, books, proposition and sites. This part says about a
portion of the comparable items which are actualized with certain framework or
configuration to help customers and retailers and also empower customers to
appreciate shopping. Taking after are a few robots devotees that have a rule to
outline the Smart Cart.
S.Liawatimena et al. presented the design of a forklift robot that can store and get
object from indicated stockpiling opening from/to a based utilizing line follower and
RFID. As of now, in warehouse stockpiling framework are predominantly still done
in a customary way utilizing human administrator to store and pick merchandise into
indicated area [3]. This venture is expected to build a self-sufficient scaled down
forklift robot that utilizing Radio Frequency Identification Device (RFID) innovation
to discover the directions of directed storage slot and products identification.
5
6
T. Krishnan et al. created a RF based Remote Operated SPY Robot. It is a spy robot
circuit which could be wirelessly controlled through a remote. It catches sound and
video insights from ambiances then sends it to a remote station over RF signals [4].
This robot was built to spy and capture audio but the concept of RF Remote
Controller can be used to the Human Following Robot.
6
7
Based Johann Bornstein et al. played out a few examinations, in which the pioneer
supporter group moved along an extremely intriguing way of generally bending
avenues, some of which with soak slants. Each analysis was for around 9-15 minutes.
The devotee utilized it's ready sensor to distinguish and track the pioneer with the
exception of when viewable pathway was quickly hindered after the pioneer pivoted
a corner. The supporter's separation to the pioneer was constantly short, changing
between 0.5-2.0 m. Thus, coordinate line-of - sight blackouts were typically short on
the request of 1-3 seconds [5]. It utilized direct observable pathway based sensor
which are not reasonable when a client is around a corner. This is almost the same
concept of our project but we’ve modified it so that the robot won’t have any
problem when human turn around a corner
7
8
Youg Jen Wen et al. revealed the tangible setup and calculation for target taking after
on the portable robot. The course recognition of the objective is accomplished by the
setup of nine IR recipients which screen the signs from the transmitter mounted on
the objective. But an IR sensor is not precise compare to the ultrasonic
sensor.
8
9
CHAPTER 3
3.1 Methodology
When a person enters the mall and get trolley, the motor driver will drive the
motors and trolley will start following that person using Magnetometer
Ultrasonic sensors will continuously check for obstacles around the trolley
If there is an obstacle then an interrupt will be generated on Arduino mega
and trolley will stop moving
When the obstacle is moved then trolley will start following that person by
tracking the map generated by Magnetometer
If the person wants to buy something he will have to pick up that product,
scan it through RFID reader then simply place it in trolley
When a person scans any product its price will be displayed on LCD
including the total price of all he products scanned
9
10
Initialize trolley
No
Yes
Start following
NO
Visible tag?
Yes
Read data
Stop
10
11
In the project we have used Arduino Mega 2560 as a main microcontroller for the
trolley. All the equipment which we have utilized including ultrasonic sensors,
Bluetooth modules, Magnetometer, RFID reader, LCD, DC gear motor and its driver
are connected to Arduino Mega 2560. RFID reader is used to read RFID tags
attached to different products and display the tag’s data on LCD. Ultrasonic sensors
are used for obstacle avoidance purpose. Magnetometer is used for human following
purpose. Bluetooth modules are used to send the Magnetometer data to Arduino
attached with trolley wirelessly. Motor driver is used to drive dc gear motor. We
introduced a system under trolley containing Arduino, Bluetooth module, motor
driver and 12V dc battery in order to control the shopping trolley. At three different
sides of the cart six ultrasonic sensors have been installed whereas Magnetometer
will be held by the person having that trolley. [6]
System plan for versatile shopping trolley depends on the conservativeness idea. The
instrument is appended under the base of shopping cart. The trolley is implemented
with two generator wheels at the back with two Omni wheels at front. Therefore, it
can move in every direction.
11
12
12
13
Ultrasonic sensor contains 4 pins, which includes 5V, echo, ground and trigger pin.
In this project, we have used six ultrasonic sensors for obstacle avoidance. Front of
the shopping trolley is installed with two ultrasonic sensors. Meanwhile two
ultrasonic sensors are installed on each left and right sides of trolley. These sensors
are connected to the Arduino Mega 2560. Now by continuously monitoring the
readings of these sensors, when any of these sensors detect an obstacle, it can know
the distance of the obstacle from itself. Now on uncovering of obstacle, we will
check the other sensor’s reading. If the obstacle for a sensor is away related to the
obstacle of other sensor, trolley will move in that direction. Thus the trolley keeps a
safe distance from the user and also avoids hitting other trolleys or the racks. While
doing this, trolley follows the person with the help of Magnetometer.
13
14
It is introduced in trolley which scans the products passing through the inlet
and are moved in to the cart. After reading the RFID number corresponding data
about the product gets displayed on the LCD.
14
15
3.2.5 LCD
LCD displays the product’s cost when the product is scanned by the RFID reader. It
also displays total number of products scanned and the total amount of products
scanned. As we put the item its cost will be added to total. Thus the billing will be
done at the trolley itself.
15
16
16
17
Two Bluetooth modules are used in this project which are HC-05 and HC-06.
Sensitivity of HC-06 can reach -80dBm and it has a 2.4GHz digital wireless
transceiver. HC-05 can be used in either Master or Slave mode though HC-06 works
only in Slave mode. In this project we have used HC-05 module in master mode
while HC-06 in slave mode. HC-05 is connected with Magnetometer while HC-06 is
connected with Arduino mega in trolley. The master module will send the data of
Magnetometer to the slave module at trolley. This is how the trolley will follow a
specific person because the slave module will make it to move towards the directions
given by master module.
17
18
3.2.7 Magnetometer
The Honeywell HMC5883L is proposed for low attractive field detecting with a
propelled interface for applications, for instance, minimal effort compassing and
magnetometry. The HMC5883L is a 3.0x3.0x0.9mm surface mount 16-stick leadless
chip bearer (LCC). Its applications fuse Mobile Phones, Netbooks, Consumer
Electronics, Auto Seafaring Theoretical account, and Personal Navigation Twist. The
HMC5883L uses Honeywell's Anisotropic Magnetoresistive (AMR) ontogenesis that
gives purposes of enthusiasm over other attractive sensor headways. Honeywell's
Magnetic Sensors are among the most delicate and tried and true low-field sensors in
the business. The sensor has 3 hub which are X, Y and Z hub [8].
In this project we’ve used X and Z axis for directions. The sensor will be given
to a person to tie it in his thigh. Magnetometer will send its reading via Bluetooth to
the trolley and then trolley will start to move after that person.
18
19
19
20
The Omni wheel is an Omni multi-directional wheel which can either move like an
ordinary wheel or roll horizontally utilizing the wheels along its circumference. The
Omni wheel gives the capacity to move in any course without the need of a
conventional swivel mount. Each wheel demonstrations autonomously to enhance
control and permits you to turn and move sideways in confined spaces. In the
meantime, these wheels permit moving forward/in reverse and pivot without
changing its orientation. In this project we’ve used two Omni wheels in front of
trolley so that trolley can be moved easily in any direction. The Omni wheels used in
this project are of 50mm.
A gear motor is a particular kind of electrical motor that is proposed to deliver high
torque while supporting a low strength, or low speed, engine yield. It has a rigging
course of action in which a worm (an apparatus as a screw) catches with a worm
20
21
21
22
the steps taken by person hence trolley will start to move after that person by
covering the total steps taken.
3.3 3D Designs
22
23
23
24
Chapter 4
3
3
IMPLMENTATION
Mechanical structure of trolley includes changing trolley tires, selecting proper motor
and installing it then placing a proper box to put battery and other components.
Afterwards installing sensors and billing system.
24
25
First we calculated the torque for the motor to be used as the total weight to be
carried by trolley was selected to be 50kg. Total torque was calculated to be
0.635Nm for two motors. A 12V DC gear motor was selected to be used for this
project on the basis of required torque.
4.1.2 Wheels
25
26
requirement. For the back of trolley two generator wheels of 4inch diameter were
selected and for the front portion Omni wheels were selected. Motor shafts were built
and generator wheels were then attached to them. After attaching the wheels to the
motor, motors were assembled in trolley. Afterwards two Omni wheels of 2inch
diameter were assembled at the front side of the trolley.
26
27
4.1.3 Battery
At the bottom of trolley a 12V and 46amp battery is placed inside a proper box. A
power distributor board is attached with battery which supplies suitable voltage to
every component installed on trolley. A single battery is supplying power to whole
trolley. For Arduino mega, main microcontroller interfacing every hardware of
trolley, lm2578 a power distributor circuit of 12V and 3amp dc current is connected
with battery while for ultrasonic sensors there is lm7805 12V and 1amp circuit.
Figure 4.4: Power distributor circuit for Ultrasonic sensors and Arduino Mega
4.1.4 Arduino Mega 2560
Arduino Mega 2560 is placed in a box at the bottom of trolley. It is interfaced with
each hardware component of trolley. It monitors ultrasonic sensor and Magnetometer
readings and then on their evaluation drives the trolley. Every decision which our
27
28
smart cart makes either to move forward or stop or to follow a specific person is
controlled by Arduino.
Six ultrasonic sensors, two at the front side, two on left side and two on right side of
trolley are installed. Each ultrasonic sensor is attached with Arduino Mega 2560
board and they are also being controlled by it.
#define trigPin0 3
#define echoPin0 4
28
29
#define trigPin1 5
#define echoPin1 6
#define trigPin2 7
#define echoPin2 8
#define trigPin3 9
#define echoPin3 10
#define trigPin4 11
#define echoPin4 12
#define trigPin5 13
#define echoPin5 52
#define trigPin6 50
#define echoPin6 54
#define trigPin7 55
#define echoPin7 56
#define in1 14
#define in2 15
#define in3 16
#define in4 17
long cm=0;
long inches=0;
long cm1=0;
long inches1=0;
long duration=0,
29
30
long distance=0,
RightSensor1=0,BackSensor1=0,
FrontSensor1=0,LeftSensor1=0,
RightSensor2=0, BackSensor2=0,
FrontSensor2=0,LeftSensor2=0;
void setup()
{
pinMode(in1,OUTPUT);
pinMode(in2,OUTPUT);
pinMode(in3,OUTPUT);
pinMode(in4,OUTPUT);
pinMode(trigPin0, OUTPUT);
pinMode(echoPin0, INPUT);
pinMode(trigPin1, OUTPUT);
pinMode(echoPin1, INPUT);
pinMode(trigPin2, OUTPUT);
pinMode(echoPin2, INPUT);
pinMode(trigPin3, OUTPUT);
pinMode(echoPin3, INPUT);
pinMode(trigPin4, OUTPUT);
pinMode(echoPin4, INPUT);
pinMode(trigPin5, OUTPUT);
30
31
pinMode(echoPin5, INPUT);
pinMode(trigPin6, OUTPUT);
pinMode(echoPin6, INPUT);
pinMode(trigPin7, OUTPUT);
pinMode(echoPin7, INPUT);
Serial.begin (57600);
void loop()
{
SonarSensor(trigPin0, echoPin0);
LeftSensor1 = distance;
SonarSensor(trigPin1, echoPin1);
FrontSensor1 = distance;
SonarSensor(trigPin2, echoPin2);
FrontSensor2 = distance;
SonarSensor(trigPin3, echoPin3);
RightSensor1 = distance;
SonarSensor(trigPin4, echoPin4);
RightSensor2 = distance;
SonarSensor(trigPin5, echoPin5);
LeftSensor2 = distance;
SonarSensor(trigPin6, echoPin6);
31
32
BackSensor1 = distance;
SonarSensor(trigPin7, echoPin7);
BackSensor2 = distance;
Serial.print("RightSensor1 ");
Serial.print(RightSensor1);
Serial.print(" ");
Serial.print("FrontSensor1 ");
Serial.print(FrontSensor1);
Serial.print(" ");
Serial.print("LeftSensor1 ");
Serial.print(LeftSensor1);
Serial.print(" ");
Serial.print("RightSensor2 ");
Serial.print(RightSensor2);
Serial.print(" ");
Serial.print("FrontSensor2 ");
Serial.print(FrontSensor2);
Serial.print(" ");
Serial.print("LefttSensor2 ");
Serial.print(LeftSensor2);
Serial.print(" ");
Serial.print("BackSensor1 ");
Serial.print(BackSensor1);
32
33
Serial.print(" ");
Serial.print("BackSensor2 ");
Serial.print(BackSensor2);
Serial.print(" ");
Serial.println();
delay (10);
}
void SonarSensor(int trigPin,int echoPin)
{
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
if(LeftSensor1<10&&LeftSensor2<10)
{
right();
}
else if(RightSensor1<10&&RightSensor2<10)
{
left();
}
else if(FrontSensor1<20&&FrontSensor2<20)
{
33
34
forward();
}
else if(FrontSensor1<20&&RightSensor1<10)
{
left();
}
else if(FrontSensor2<20&&RightSensor1<10)
{
left();
}
else if(FrontSensor1<20&&LeftSensor1<10)
{
// right();
}
else if(FrontSensor2<20&&LeftSensor1<10)
{
right();
}
else
{
stop();
}
delay (1000);
}
void forward()
{
digitalWrite(in1,HIGH);
34
35
digitalWrite(in2,LOW);
digitalWrite(in3,HIGH);
digitalWrite(in4,LOW);
}
void left()
{
digitalWrite(in1,LOW);
digitalWrite(in2,LOW);
digitalWrite(in3,LOW);
digitalWrite(in4,HIGH);
}
void right()
{
digitalWrite(in1,LOW);
digitalWrite(in2,LOW);
digitalWrite(in3,HIGH);
digitalWrite(in4,LOW);
}
void stop()
{
digitalWrite(in1,LOW);
digitalWrite(in2,LOW);
digitalWrite(in3,LOW);
digitalWrite(in4,LOW);
}
35
36
RFID reader is attached at the top side of trolley. It has three parts which consists of
a scanning antenna, a transceiver to interpret the data with a decoder and a
transponder i.e. RFID tag which is programmed with product’s information. Each
product that a person picks up and places in trolley is firstly scanned by RFID reader.
It reads the tag attached to each product and displays its price on LCD, interfaced
with it.
36
37
4.1.7 LCD
A 4 rows X 20 columns LCD is attached at the top side of trolley along with RFID
reader. It displays the price of products and the total amount of products bought.
#include <LiquidCrystal.h>
#include <RFID.h>
/*
* Pin layout should be as follows (on Arduino Uno):
* MOSI: Pin 11 / ICSP-4
* MISO: Pin 12 / ICSP-1
* SCK: Pin 13 / ISCP-3
* SS/SDA: Pin 10
* RST: Pin 9
*/
#include <SPI.h>
#include <RFID.h>
#define SS_PIN 10
#define RST_PIN 9
RFID rfid(SS_PIN,RST_PIN);
int self = 7;
int bat = 8;
int s = 6;
int sum = 0;
37
38
int Tot=0;
int sop;
int prod;
int price;
int bz=5;
int serNum[5];
int cards[][5] = {
{42,249,70,213,64}
};
void setup(){
Serial.begin(9600);
lcd.begin(20,4);
SPI.begin();
rfid.init();
pinMode(bz,OUTPUT);
pinMode(self, OUTPUT);
pinMode(bat ,OUTPUT);
pinMode(s,OUTPUT);
// pinMode(led,OUTPUT);
digitalWrite(self, LOW);
digitalWrite(bat , LOW);
38
39
Serial.println(" ");
lcd.setCursor(0,0);
lcd.setCursor(8,1);
lcd.print("SBUR");
//lcd.println(" ");
delay(5000);
lcd.clear();
}
void loop()
{
if(rfid.isCard())
{
if(rfid.readCardSerial())
{
digitalWrite(bz, HIGH);
delay(500);
digitalWrite(bz, LOW);
delay(500);
39
40
//Serial.print(rfid.serNum[0]);
//Serial.println(" ");
/* Serial.print(rfid.serNum[1]);
Serial.print(" ");
Serial.print(rfid.serNum[2]);
Serial.print(" ");
Serial.print(rfid.serNum[3]);
Serial.print(" ");
Serial.print(rfid.serNum[4]);
Serial.println("");*/
if(rfid.serNum[i] == cards[x][i]) {
access = false;
break;
}
else
{
access = true;
}
}
if(access) break;
}
}
40
41
delay(500);
if(access)
{
Serial.println("CARD ACCEPTED");
lcd.setCursor(3,1);
//lcd.println("CARD ACCEPTED");
// delay(500);
lcd.clear();
digitalWrite(bat,HIGH);
digitalWrite(self,HIGH);
delay(500);
digitalWrite(self,LOW);
}
else {
//Serial.println("Not allowed!");
digitalWrite(s,HIGH);
delay(500);
digitalWrite(s,LOW);
digitalWrite(bat,LOW);
}
if(rfid.serNum[0]==65)
{
Serial.println("PRODUCT's PRICE: 100 PKR");
lcd.print("PRODUCT's PRICE:100");
lcd.setCursor(0,1);
lcd.print("Rs");
delay(1500);
lcd.clear();
41
42
price = 100;
prod=1;
}
else if (rfid.serNum[0]==240)
{
Serial.println(" PRODUCT's PRICE: 300 PKR ");
lcd.print("PRODUCT's PRICE:300");
lcd.setCursor(0,1);
lcd.print("Rs");
delay(1500);
lcd.clear();
price = 300;
prod=1;
}
else if (rfid.serNum[0]==16)
{
Serial.println("PRODUCT's PRICE: 500 PKR ");
lcd.print("PRODUCT's PRICE:500");
lcd.setCursor(0,1);
lcd.print("Rs");
delay(1500);
lcd.clear();
price = 500;
prod;
else if (rfid.serNum[0]==248)
{
Serial.println("PRODUCT's PRICE: 800 PKR" );
42
43
lcd.print("PRODUCT's PRICE:800");\
lcd.setCursor(0,1);
lcd.print("Rs");
delay(1500);
lcd.clear();
price = 800;
prod=1;
else if (rfid.serNum[0]==208)
{
Serial.println("PRODUCT's PRICE: 1000 PKR ");
lcd.print("PRODUCT's PRICE:1000");
lcd.setCursor(0,1);
lcd.print("Rs");
delay(1500);
lcd.clear();
price = 1000;
prod=1;
}
else if(rfid.serNum[0]==0)
{
Serial.println("PRODUCT's PRICE: 50 PKR");
lcd.print("PRODUCT's PRICE:50");
lcd.setCursor(0,1);
lcd.print("Rs");
delay(1500);
lcd.clear();
43
44
price = 50;
prod=1;
}
else if(rfid.serNum[0]==48)
{
Serial.println("PRODUCT's PRICE: 700 PKR");
lcd.print("PRODUCT's PRICE:700");
lcd.setCursor(0,1);
lcd.print("Rs");
delay(1500);
lcd.clear();
price = 700;
prod=1;
}
else if(rfid.serNum[0]==192)
{
Serial.println("PRODUCT's PRICE: 250 PKR");
lcd.print("PRODUCT's PRICE:250");
lcd.setCursor(0,1);
lcd.print("Rs");
delay(1500);
lcd.clear();
price = 250;
prod=1;
}
else if(rfid.serNum[0]==224)
44
45
{
Serial.println("PRODUCT's PRICE: 650 PKR");
lcd.print("PRODUCT's PRICE:650");
lcd.setCursor(0,1);
lcd.print("Rs");
delay(1500);
lcd.clear();
price = 650;
prod=1;
}
sum = sum + price;
Serial.print(" TOTAL AMOUNT : ");
Serial.print(sum);
lcd.print("Rs");
Serial.println(" ");
//lcd.println(" ");
sop=sop+prod;
Serial.print("TOTAL PRODUCTS SCANNED:");
Serial.print(sop);
//delay(1000);
lcd.setCursor(0,3);
45
46
delay(1500);
lcd.clear();
}
//rfid.halt();
}
4.1.8 Magnetometer
46
47
47
48
Chapter 5
5.1 Results
The project involves both hardware and software. The microcontroller is connected
to all hardware and it collects data from them. First of all, ultrasonic sensors were
linked with Arduino Mega. Six ultrasonic sensors have been used in this project
whose readings are shown by the figure 5.1.
48
49
At the end billing system was made by using RFID reader, its tags and an
LCD. The result of billing system which includes displaying of product’s cost and
total amount when few products were scanned has been shown in figure 5.2.
49
50
The greater part of the equipment and segments are modified in the
fundamental microcontroller. Six ultrasonic sensors are placed in three distinct sides
of the shopping trolley with a specific end goal to maintain a strategic distance from
hindrances. Magnetometer which acts as a location indicator is set in a little sack
which gets tied up on individual's thigh. The correspondence amongst Magnetometer
and trolley is by means of Bluetooth association. The development of shopping
trolley is controlled by Arduino Mega 2560. The execution of the venture completed
in indoor condition is appeared in figure 5.4.
50
51
Many problems were generated while carrying out the project mostly due to the
software interfacing.
Interfacing six ultrasonic sensors at a same time was a huge task as they were
connected at different positions hence giving different readings at the same time.
There was a delay problem, the microcontroller was monitoring their readings one by
one, not all at a time. Due to which the trolley was taking quite a time to stop due to
obstacles. This problem was solved by making numerous changes in coding.
There are two Bluetooth modules used in this project, HC-05 and HC-06. First
there was a problem of getting these modules in AT Mode, which was resolved by
proper handling their connections and having a proper look at their datasheets.
Then when the modules were paired we were unable to send the Magnetometer
data to other module. It took quite a time to understand the problem. There were
some changes in coding like syntaxes, loops, baud rate and libraries. Then finally
the problem was resolved and we were able to send data from one module to
another.
The trolley was running very fast regardless of heavy weight. We were unable to
make it have a constant speed. Then we made a proper MOSFET speed control
51
52
circuit for it which converted 150rpm into 60rpm and this problem was also
resolved.
Chapter 6
6.1 Conclusion
Innovation is intended to make one's life less demanding. At the point when an issue
is found, engineers meet up to unravel them utilizing innovation. This critical
thinking will propel the innovation for the person, and therefore give them comfort.
The proposed project was intended to finish this provision. The smart shopping
cart could wipe out the obstacle of emptying the things from the trolley; in this
manner, the time spent at the cashier could be diminished. Customers could
appreciate the time spared with doing different things instead of standing inertly to
sit tight for their swing to pay [9].
52
53
6.2 Recommendations
The difficulties here are to make the trolley smart via automation, as well as to deal
with the worries that are raised because of the automation procedure, for example,
likelihood of false alerts, vitality utilization, cost-adequacy, and so forth.
53
54
REFERENCES
[3] https://www.researchgate.net/publication/252022763_A_mini_forklift_robot
[4]. .http://www.academia.edu/6438030/Radio_Frequency_based_Remote_operated
_SPY_Robot
[5]. .https://www.google.com.pk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=
2&ved=0ahUKEwjYkyqgsLTAhVIuBQKHfmJCVYQFggkMAE&url=http%3A%2F%2F
www.dtic.mil%2Fget-tr doc%2Fpdf%3FAD%3DADA538163&usg=AFQjCNGh4Wp -
GzFjSDBmP32IXAxFmgNY6w&cad=rja
[6] http://www.jurnalteknologi.utm.my/index.php/jurnalteknologi/article/view/4246
[7] https://www.arduino.cc/en/Main/arduinoBoardMega2560
54
55
[8]…https://www.google.com.pk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&
cad=rja&uact=8&ved=0ahUKEwjl15K4gsrTAhVBWhQKHfj1CCEQFggfMAA&url
=https%3A%2F%2Fcdn-shop.adafruit.com%2Fdatasheets%2FHMC5883L_3-
Axis_Digital_Compass_IC.pdf&usg=AFQjCNHvrLeVoBdrXbV4gABsJjWhuxTl0Q
[9]https://www.google.com.pk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad
=rja&uact=8&sqi=2&ved=0ahUKEwi6t_q2mdHTAhXGYlAKHQJTD2oQFggfMA
A&url=http%3A%2F%2Fwww.ele.uri.edu%2Ffaculty%2Fhe%2FSeniorDWebsite%
2Fsmartshoppingcart%2Finformation%2FProject_proposal.pdf&usg=AFQjCNFEwI
XY7IabW5cCHUUAyS0F34QPYw
55
56
APPENDICES
APPENDIX A
Datasheet of LM1578
56
57
57
58
Appendix B
Datasheet of LM87805
58
59
59
60
60
61
61
62
Appendix C
62
63
63
64
Appendix D
64
65
65
66
66
67
Plagiarism Report
67