A Project
A Project
A Project
ON AN
AUTOMATIC TROLLEY
By
Submitted in partial fulfillment of the requirements of Lagos State Polytechnic for the
Of
MR ADESANYA G.E.
May 2021
1
CERTIFICATION
This is to certify that Project Report entitled “AUTOMATIC TROLLEY” that is submitted by
Shittu Habeeb Ayodeji and Adeyemo Ismail Damilare in partial fulfillment of the requirement
ENGINEERING of Lagos State Polytechnic, is a record of the candidates own work carried
out by them under my own supervision. The matter embodies in thesis is original and has not
PROJECT SUPERVISOR
……………………………. …………………………..
…………………………… ……………………………
MR ADISA K. O DATE
…………………………….
……………………………..
2
ABSTRACT
The robot is created to have advantages that are not owned by humans. One of them is
unlimited compatibility. This requires that the robot have a variety of sensor components for
difficult task to do. Therefore, to overcome this problem we are introducing a new idea called
“Automatic trolley”. With the use of these trolley moving fragile goods or objects can be done
safely. Sensor on the trolley will track the remote and keep moving.
3
DECLARATION
We hereby declare that this submission is our own work and that, to the best of our knowledge
and belief, it contains no material previously published or written by another person nor
material which to a substantial extend has been accepted for the award of the award of any
other degree or diploma of the university or other institute of the higher leaning except where
SUPERVISOR
G. E
…………………………….
…………………………….
DATE
NAME OF STUDENT
…………………………….
4
DEDICATION
We dedicate this work to all the lecturers and support staff of the Department of Mechatronics
Engineering, at the Lagos State Polytechnics, for their tireless and selfless efforts they have
5
ACKNOWLEDGEMENT
We would like to thank Mr. Adesanya .G.E & Mr. Adisa .K.O. for their efforts, who were
always ready with a positive and slightly harsh comment, whether it was an off-hand comment
to encourage us or to criticize us
We are deeply indebted to our mentors Mr. Adesanya .G.E, Mr. Odukoya .A, Mr. Kadiri .I,
Miss Obadare .B, Mr. Adisa .K. Eng. Bello S.K & Eng. Balogun.W. Whose inspiration has
been unfailingly available to us at all stages of our training? This has fueled our enthusiasm
even further and encouraged us too boldly and Mindy step into what was totally dark and
In course of present work, it has been our privilege to receive help and assistance of our
I wish to thank our parents for their undivided support and interest who inspired us and
encouraged us to go our own way, without whom we would be unable to complete our project.
I also want to thank my partner for his support and respect throughout our project period. At
last but not the least we want to thank our friends who appreciated us for our work and
motivated us and finally to God who made all the things possible.
6
CHAPTER ONE
1.1 INTRODUCTION
In recent years, robot technology has developed significantly. Most of the traditional robots are
still commonly used for industrial applications, such as in car assembly factories. Most
recently, intelligent robots have become popular in daily life applications. Human friendly
robots are now used for taking care of the elderly. The purpose of a human following robot is
to improve the relationship between people and the robot. For instance, the robot can carry
heavy loads and fragile goods for people in hospitals, airports and shopping centers. The robot
In robotic research, vision-based robots have gained growing interests for navigation; however,
the traditional method of line following navigation still plays an important role in mobile robot
technology. This is because a robot with line following capability requires a lower cost to build
and has a simple design. A non-touching recognition system can tag and send tag data
The main aim of our project is to make transporting of fragile goods more easy and
i. To design and produce a versatile trolley that is user friendly for human and makes their life
easier.
ii. To produce an automatic trolley that can carry a small, light, big and fragile thing to move
7
1.3 SIGNIFICANCE OF THE PROJECT
possible. The progressive home safety and comfort system has improved to the present system
in our day-to-day life. Comfort systems for places like homes, supermarkets, industries etc.
enables the places to be more productive and comfortable to use. The finest way to add comfort
to any places is by using a smart system that also adds more beauty to the working area.
This project is focusing a trolley that can be used in Laboratory to help user to carry fragile
things. The versatile design of this trolley can be transform into three versions.
This Automatic Trolley Human Follower target is general user and laboratory uses. For the
laboratory use, the target point is to help carry fragile or heavy tools to move from one point to
another point. This trolley can thus reduce the labor. The versatile design of trolley can help
workers carry kilograms of things according to its design. The Automatic Trolley Human
Follower was designed using four-wheel trolleys and it is connected to 12-volt dc motor to
The trolley is also design with manually mode by using Remote Control to perform when the
automatic mode is broken. There is joystick to control the movement of the trolley.
8
CHAPTER 2
Before the invention of trolley, bags and basket are used in carrying fragile goods from one
place to another. The invention of trolley has increased comfort and safe delivery of fragile
goods.
In the year, 2019 Husain Bhaldar et al [1] designed a Human Following Trolley using a
raspberry Pi as its microcontroller. The trolley he created avoids obstacles automatically. His
robot also has a small camera, which takes the picture of a unique tag of who it should follow.
If the tag matches it, it follows automatically. His idea was not been used because of the
Sachin Tom et al [2] designed and fabricated a trolley with a line following facility in 2015.
The trolley has an RFID used for billing. The system eradicates queues at the billing counter.
Nevertheless, his idea was not been used because of the billing system.
Denny Irawan et al [3] designed the Design of Human Follower Trolley Robot Based on Object
Tracking (color detection) Method in March 2019. The goal of his design was to move goods
from one place to another. This trolley will detect the color of clothing of humans, that it will
follow by using the camera as the sensor and the camera captured will be processed using C+
by utilizing the open source library in which the image matches with the one on the Arduino, it
then follows.
Amir Hafizul bin ABD Malek [4] from the faculty of Electrical & Computer Engineering,
University of Teknikal Malaysia Maleka on June 2014 designed an Automatic Human Follower
Trolley for general and industrial use, in order to carry heavy things. Which uses a
PIC16F877A microcontroller that can follow the user automatically with integrated circuit of
Ultrasonic & IR sensor and uses a 12V DC motor? Part of his idea was used like DC motor,
ultrasonic sensor.
9
L. S. V Dehigaspege et al [5] designed a Follow me multifunctional Automated Trolley. His
trolley using sensors, motor, motor driver and STM 32 as the motor driver. The system was
designed to be controlled by a remote and was able to follow line and human on rare cases.
From the Department of Electronics & Telecommunications Engineering, Deepali Pandita [7]
fabricated automatic trolley in 2014 using only sensors, DC motors and Batteries. His system
was not very efficient because of power abort and was having a wrong RFID code, which was
Dennis Boamah et al [8] of London South Bank University designed a smart Trolley in 2018.
This system used an Artificial intelligence comprising of camera, GPS, sensors, controllers and
motors.
10
CHAPTER THREE
3.1 METHODOLOGY
Resistor
Capacitor
Wires
DC Motors
Tires
Switch
NRF24L01
RESISTOR
as a circuit element. In electronic circuits, resistors are used to reduce current flow, adjust
signal levels, to divide voltages, bias active elements, and terminate transmission lines, among
other uses.
RESISTOR SPECIFICATIONS
Power dissipation specification
11
Power de-rating specification
Temperature coefficient specification
Maximum temperature specification
CAPACITOR
A capacitor is a device that stores electrical energy in an electric field. It is a passive electronic
SPECIFICATIONS OF A CAPACITOR
Nominal Capacitance, (C) The nominal value of the Capacitance, C of a capacitor is the most
Working Voltage, (WV)...
Polarization. ...
12
Figure 3:1
WIRES
A wire is a single usually cylindrical, flexible strand or rod of metal. Wires are used to bear
various standard sizes, as expressed in terms of a gauge number. The term 'wire' is also used
more loosely to refer to a bundle of such strands, as in "multi stranded wire", which is more
Fig 3.3
DC MOTORS
A DC motor is any of a class of rotary electrical motor that converts direct current electrical
energy into mechanical energy. The most common types rely on the forces produced by
magnetic fields. Nearly all types of DC motors have some internal mechanism, either
motor.
13
SPECIFICATIONS
TIRES
A tire is a ring-shaped component that surrounds a wheel's rim to transfer a vehicle's load from
the axle through the wheel to the ground and to provide traction on the surface over which the
wheel travel.
14
This sensor is a carrier/breakout board for ST’s VL53L0X laser-ranging sensor, which
measures the range to a target object up to 2 m away. The VL53L0X uses time-of-flight
measurements of infrared pulses for ranging, allowing it to give accurate results independent of
the target’s color and surface. Distance measurements can be read through a digital I²C
interface. The board has a 2.8 V linear regulator and integrated level-shifters that allow it to
work over an input voltage range of 2.6 V to 5.5 V, and the 0.1″ pin spacing makes it easy to
use with standard solder less breadboards and 0.1″ per boards.
SPECIFICATION
Varies with configuration, target, and environment. Peak current can reach 40 mA.
Distance measuring range: Up to 2 m (6.6 ft.), see the graph at the right for typical ranging
performance.
The HC-SR04 Ultra01 in addition with Ultrasonic Range Finder provides 2cm - 400cm
15
non-contact measurement function, the ranging accuracy can reach to 3mm. The module
SPECIFICATIONS
Power supply: 5V DC
Resolution: 0.3 cm
that combines a 180 MHz Arm Cortex-M4 STM32F429 microcontroller with 32 MB SDRAM,
16 MB NOR do Flash and an Ethernet PHY buffer on a single board. The SOM interfaces to a
SPECIFICATIONS
16
Compliant with the Restriction of Hazardous Substances (RoHS) directive;
STM32F429 MCU in UFBGA176 package capable of running the system clock at up to 180
MHz;
On-module clocks;
32 Megabytes SDRAM;
All otherwise uncommitted interfaces of the STM32F4 MCU available on the interface
connectors.
17
A passive infrared sensor (PIR sensor) is an electronic sensor that
range. They are most often used in PIR – based motion detectors. They work entirely by
SPECIFICATIONS
SWITCH
In electrical engineering, a switch is an electrical component that can disconnect or connect the
conducting part in an electrical circuit, interrupting the electrical current or diverting it from
18
A Lithium polymer battery, or more correctly Lithium-ion polymer battery (abbreviated as
Lipo, LIP, Li-Poly, Lithium –poly and others) is a rechargeable battery of lithium ion
SPECIFICATIONS
The L298 is an integrated monolithic circuit in a 15- Lead Multiwatt and power S020
packages. It is high voltage, designed to accept standard TTL logic levels and drive inductive
SPECIFICATIONS
19
Fig 3.12: L298 Motor driver
battery (cell or battery pack), such as by protecting the battery from operating outside its safe
operating area [clarification needed], monitoring its state, calculating secondary data, reporting
SPECIFICATIONS
Load :10A
Weight: 42,72g
20
Fig 3.12: BMS Charge controller
The module can use 125 different channels which give a possibility to have a network of 125
independently working modems in one place. Each channel can have up to 6 addresses, or each
unit can communicate with up to 6 other units at the same time. The power consumption of this
module is just around 12mA during transmission, which is even lower than a single LED. The
operating voltage of the module is from 1.9 to 3.6V, but the good thing is that the other pins
tolerate 5V logic, so we can easily connect it to an Arduino without using any logic level
converters.
21
Fig 3.13: NRF24L01 Transceiver Module
The Ultrasonic sensor has the Time of flight sensor (ToF) beside it. The Ultrasonic sensor has
a longer working range that the VL53L0X, but this sensor is more precise with making
decision. It makes use of digital communication called I square C (I² C).VL53L0X was used
because of space. An algorithm carries out the process. The system makes use of a motor driver
that is connected to the micro controller sending 12V to the DC controller to each of the
wheels. The microcontroller produces 15mA. So therefore, the motors cannot be connected
directly to the micro controller because it will blow it up. The controller sends signal to the
driver, which then sends current to the wheels respectively. We also have the DC-DC converter,
which steps down 12V supply from the Lipo battery. The battery has a separate charger, which
is used to charge when the battery is low. A bypass connects 12V directly to the DC-DC
converter to reduce to 9V. When the DC converter sends 9v to the motor driver, it regulates it
to 5V.The STM 32 Microcontroller works on 3.3V, there is a pin that sends the 5V down back
to the controller. Within the microcontroller is a step down that regulates the voltage from 5V
to 3.3V. The 3.3V is been used to communicate with all the modules. There is also a module
present on the board, which is known as Transceiver (It contains a transmitter and a receiver).
The main function of this transceiver is to communicate with the remote. The remote controller
has the following modules; joystick, LCD display, and a switch. The circuit of the remote uses
Battery Sensors Fw Bw
L L
STM 32 22
Motor
Switch CPU Driver
R R
Transceiver Fw Bw
(Transmitter and receiver)
TROLLEY
Transceiver
(Transmitter and receiver)
Joystick
REMOTE
CHAPTER 4
4.0 RESULTS
23
3 Stop press No movement
4.2 DISCUSSION
This project works automatically with a remote control. When the remote control push button
is been pressed to go forward, the trolley moves according to the command been given to it by
the remote control, it goes forward until the button is been stopped from control. If the remote
is been pressed for the trolley to turn left, it turns and move in the left direction. If also the
trolley has been commanded to turn right from its position, it drifts to the side and go right
until it receives a command to stop. Nevertheless, the trolley moves based on the remote
control command.
CHAPTER FIVE
5.1 CONCLUSION
With the aid of automatic line following and a remote control trolley, Supermarkets and
Medicare owners need only to purchase the portable trolley and can easily make use of it in
their own convenient time. Users will enjoy shopping because they do not need to push the
trolley here and there. The line following aspect work successfully to track black line above the
surface. This design is cost-effective, and it reduces human effort. There is some room for
24
further improvement of project. Firstly, the mechanism of the robot should be enhanced and
designed in a simpler way, to ease the installation under a shopping trolley. Secondly, a more
advanced algorithm should be developed so that the shopping trolley is able to move in a
crowded environment and follows the user automatically in any direction. Lastly, an improved
Android application that can remind the users on the items they need to purchase when they are
unintentionally passing by the goods location. In addition, it can also remind the users who
have health problems about the nutrition of products. Besides that, the locations of shopping
trolleys are tracked and can be displayed to allow supermarket staff and users know the
There are many interesting applications in the vast robotic world in different fields like military
or medical. Wireless communication functionality can be added in the robot to make it more
versatile and control from a large distance. Furthermore, a tag which uniquely identifies only a
APPENDIX
25
Appendix 1 Appendix 3
Appendix 2 Appendix 4
Appendix 5
#include "Adafruit_VL53L0X.h"
#define constDistance 50
26
// set the pins to shutdown
VL53L0X_RangingMeasurementData_t measure1;
VL53L0X_RangingMeasurementData_t measure2;
/*
Reset all sensors by setting all of their XSHUT pins low for delay(10), then set all XSHUT
Put all other sensors into shutdown by pulling XSHUT pins low
Initialize sensor #1 with lox.begin(new_i2c_address) Pick any number but 0x29 and it must
Keep sensor #1 awake, and now bring sensor #2 out of reset by setting its XSHUT pin high.
Initialize sensor #2 with lox.begin(new_i2c_address) Pick any number but 0x29 and
*/
void setID() {
pinMode(SHT_LOX1,OUTPUT);
27
pinMode(SHT_LOX2,OUTPUT);
// all reset
digitalWrite(SHT_LOX1, LOW);
digitalWrite(SHT_LOX2, LOW);
delay(10);
// all unreset
digitalWrite(SHT_LOX1, HIGH);
digitalWrite(SHT_LOX2, HIGH);
delay(10);
digitalWrite(SHT_LOX1, HIGH);
digitalWrite(SHT_LOX2, LOW);
// initing LOX1
if(!lox1.begin(LOX1_ADDRESS)) {
while(1);
delay(10);
// activating LOX2
digitalWrite(SHT_LOX2, HIGH);
delay(10);
28
//initing LOX2
if(!lox2.begin(LOX2_ADDRESS)) {
while(1);
int captureDistance1(){
VL53L0X_RangingMeasurementData_t measure;
return measure.RangeMilliMeter;
int captureDistance2(){
VL53L0X_RangingMeasurementData_t measure;
29
return measure.RangeMilliMeter;
void followHuman(){
//ulta(trigger,ultaSensor1);
// delay(50);
//while(1){
Right_Value = captureDistance1();//digitalRead(RIGHT);
Left_Value = captureDistance2();//digitalRead(LEFT);
if(Right_Value==0) Right_Value=8191;
if(Left_Value==0) Left_Value=8191;
Serial.print("distance : ");
Serial.print(distance);
30
Serial.print(" ::: Right_Value : ");
Serial.print(Right_Value);
Serial.println(Left_Value);
//delay(1000); }
distance<=constDistance
Serial.println(F("FORWARD"));
rightSide(LatesetSpeed1,FORWARD);
leftSide(LatesetSpeed2,FORWARD);
else{
if(Right_Value>Left_Value){
rightSide(LatesetSpeed1,BACKWARD);
leftSide(LatesetSpeed2,FORWARD);
else if(Right_Value<Left_Value){
rightSide(LatesetSpeed1,FORWARD);
leftSide(LatesetSpeed2,BACKWARD);
/*
31
rightSide(LatesetSpeed1,BACKWARD);
leftSide(LatesetSpeed2,FORWARD);
rightSide(LatesetSpeed1,FORWARD);
leftSide(LatesetSpeed2,BACKWARD);
else if((Right_Value>=2000)&&(Left_Value>=2000)) {
rightSide(0,3);
leftSide(0,3);
Serial.println("stoped");
rightSide(0,3);
leftSide(0,3);
}*/
Reference
Joshi, S. N., V. K. Patki, P. S. Dixit and H. Bhaldar (2019). "Design and Development of
32
human guided shopping trolley with smart shopping system." Jurnal Teknologi 73(3).
33