Smart Trolley Using Arduino And RFID Module | Add and Remove item anytime

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
so before start the actual project explanation I request you please subscribe my channel so you can see on the screen up till now I have uploaded more than 66 video on Raspberry Pi the Raspberry Pi with iot that is all this video then Al also iot with ardino all these video are 26 and recently we started the new series on the pck My Controller before that I also cover the project on the python web application so if you want to Learn Python iot Raspberry Pi ardino P from the scratch and from freely then pleasee subscribe my Channel please support me and the most important part is whatever the code I have explained whatever the project I have created on this YouTube channel all this project are freely available you no need to pay anything for this project so just if only point is you should watch complete video and you should follow my process so if you want to learn something from the scratch and freely then support me and please subscri my channel and please click on like button hello friend in today's session we will learn how we can design and develop a smart trly System project by using ardino and RFID model so you can see on the screen we have the RFID model we have the ardino Uno and we have the LCD then buzzer uh then buzzer and some switch so before start the next part I would like tell you the code of this project is completely free no need to pay any single rupees for that code you can download you can download the code from my website link the website link you in the description in this video I will explain how to connect all this Hardware with your ardino I will also explain the program part so that you can design and develop this project by yourself okay before start the next part I would like tell you what will be the flow of this project so when we give the power it will show start purchasing your item that mean it is asking to scan the this RFI tag so let's say any customer enter into the shopping M he will scan the tag for the item so once he scan the tag then item get purchases then it will show here the item name and also price for that item and total billing of the customer so let's say if the customer purchase two item then it will show here two item name then price of that item and total billing of that item okay then after that also when he scan his tag then B will turn on so that it it indicate that customer like you have scanned the tag or you have purchased the item in this uh like in this video I have added the three tag you can see three tag I have RFI three tag and at the end of the video I will also show I will also tell you how to add the Four tag so let's say if in future if you want to add the five tag or six tag or any number of tag in your code you can easily add and remove the tag so please watch this complete video to understand the complete process so let's say customer purchase all the item and customer want to remove some item from the bucket so what he will do he will he will press the first switch so once it press the first switch then on the LCD it will show please remove the item from the trolley so again customer has to scan the tag so once he scan the tag then item gets removed from its billing so again it will show the pending Bing after remove the item so likewise he can remove the number of item at the one time then again if you want if he want to add some new item then again he can press the second switch okay then again the adding process get started and the third switch it is used to reset the trolley so let's say if the customer has completed his billing and he uh go out from the mall so admin can press the third switch and this system get res reset and it will show the total bilding zero and start purchasing the new item so this is for the new customer so this is the complete idea behind this project I hope you understand the complete flow of this project now first we will see the Practical demonstration of this project then we will see the program part and then we will see the hardware connection so please watch this complete video okay now we will the Practical demonstration of this project so what I will do I will first remove the power so you can see there is no power on the Ardo so once I give the power then it will show the start smart rolly system building System project name and then start purchasing your item so this is the initial step of the project now we we will scan one by one item so there are three item you can assume so let's say first item scan you can see item number milk powder total billing 100 rupees okay then again again second item borita 100 rupes total billing 200 rupes then third item Tata salt 100 rupees total billing 300 rupees okay so at at at this time customer has purchased a three three item now let's say customer want to remove the one item from the bucket so what customer will do customer will press this first switch okay now you can see you can remove your item so again I will scan this B remove you can see total being now 200 because one item remove let's say now customer want to add again two more item so again he will he will press the this switch second switch you can add your item now again he want to purchase new item so you can t salt again added and again total biding is 300 rupe again milk powder added total billing is 100 rupees again bore me added total billing is 500 rupe again he wants to remove some item so again he will press the first switch then you can remove the item so milk powder remove you can see one milk powder remove total billing is 400 again boret remove total billing is 300 so likewise you can remove as many as item once you press this switch you can add as many as item once you press this switch now again uh he want to to add some item then he can press the second switch you can add the item so let's say if I want add then tataa salt again added then total billing is 400 rupes now let's say customer has purchased all the item and he wants to uh billing has been done now you can press the third switch to reset the trolley so if I press the third switch here you can see resetting the trolley start purchasing the item so likewise this is the complete item be this project now let's say new customer again come then again he will scan and again you can see tataa holds 100 rupees and total being 100 rupees because trol is reset and it is for the new customer so I hope you understand the complete idea behind this project practical demonstration demonstration of the project also done uh we will see the hardware connection of this project and then we will see the program part of this project you have one question in your mind like each item having only 100 rupees uh price it it is fixed price or it is variable price so for this demonstration I have given 100 rupees for the each item so that you can easily add and uh subtract the number for demonstration in the program you can give any number to any like any number for the any item like say if you want to add 50 rupees or War meet also you can easily update that price for that Bor from the program so please watch this complete video to understand the complete process of this project so there is no limitation like you can give only 100 rupees or 200 rupees each item having separate price separate number and separate name so how to add that one that I will explain in the program so please watch this complete video okay now what I have done I have updated the code and in which I have given the Bor meta in which I have given the Bor price as 20 and milk powder price as milk p powder prices 50 rupe so that you should not have any single doubt about this project now again we start the purchasing the item so let's say first item purchase T salt 100 rupees okay milk powder 50 rupees now now you can see total billing is 150 Bor 170 because 20 rup added again I will add borita borita again I added 190 rupees okay now I will remove The Bard meter so I again I will PR this switch and I will remove any one item let's say this item Bor remove 170 rupe again I will add the item let's say third item I added 170 plus 50 rupe that is 220 so this project is completely working you can see right now in live I have updated the code I show I have shown you like price is there is no there is no any burden about the price and the number you can EAS easily update from the code so please watch this complete video definitely I will cover that [Music] part okay now we will see the hardware connection so first you can see I'm using already you know you can easily purchase this on from Amazon each a have pin number you can Define here you can see pin number here and you can see pin number here so we will use that pin number okay so first we will connect the RFID model so when you purchase this RFID model you can easily identify the pin name given here at the bottom you can see there is a pin name miso SK SDA 3.3 then rstd then ground so whatever the pin name I am uh taking you have to just add that pin pin number to the ardino okay first start with the this RFID model so you you need this male to male male to female wires also you can also purchase this from the Amazon or the from the flip card easily available okay so okay so let's one by one connect all the hardware so first connect RFID model so RFID model you can see uh first we have to connect the SD pin so SDA pin it should connect the 10 number all the pin number I have already given in the program uh during program explanation I will tell you where you can find that PIN number so SDA pin should be connected to 10 number of ardino so 8 9 10 of the Ardo then after that s pin so pin should be connected to 13 number pin of ardino so 8 9 10 11 12 13 okay then moso m o SI I pin so moso pin should be conected to 11 number 10 and [Music] 11 okay then after that misin so misop pin should be connected to 12 number okay then after that you have to connect the ground pin so for the ground what you have to do uh I have taken this circuit like this is very simple circuit you can e easily use a braid board also if you don't have the zero PCV so it's like common Point VCC point and Common Ground point just should I have shoulder I did the shouldering you can see common points are there so easily I can take the VCC from here and ground from here so what I have done from the ardino ground so this is the ardino ground I have taken here to already know this common VCC and then 5 Vol pin from here I can takeen from here so whenever I require the 5 volt I will take from here whenever I require the ground I will take from here okay so ground pin should be connected to ground so this ground pin should be connected to ground so ground is already here so I will take from here so it's Common Ground then after that uh there is a r s pin so rst pin should be connected to n number pin of ardino okay and then 3.3 voltage pin of this RFID model this RFID model require 3.3 voltage and already already have a 3.3 so connect that PIN to the 3.3 voltage so this is the basic connection of RFID with the ardino okay so this is very basic now we will see the i2c display how to connect so again I display you can see at the back end there is a ground VCC sdn SCA pin again you can purchase this from the Amazon I purchase from the Amazon only so what you have to do okay you can place like this then after that what you have to do first connect the uh ground pin so ground pin from this display so ground pin whenever I need ground pin I will take from the common ground so ground pin from there here okay then after that VCC pin VCC from this LCD should be connected to 5 Vol pin of ardino so it will take from here common VCC pin okay then after that you can see s pin so pin should be connected to sorry uh then after that H pin should be connected to AR know last pin so last pin is here this last pin I'm talking so last pin should be connected to okay [Music] and SDA pin from this model so model having and sdl so SD pin should be connected to second last pin of ardino if you really want to understand the complete deep knowledge of of this i2c display then please watch watch my separate video on i2c with ardino uh thumbnail you can see on the screen in that video I explain the ITC display in detail okay so we have connected the ITC display we have connected the RFID model okay next we connect one circuit you can see this circuit so how I design this circuit I will explain here on this paper so basically when you when you have this switch each switch having four pins you can see there are four pins on each switch you can see clearly four pins on each switch then we use the registor you can use 1 kilm 1 ohm 1 kilm resistor or 500 oh resistor also no issue and then we require some Buck strip for soering uh to connect the wire like this so I will show you the circuit what exactly so basically you can see each switch having four pin low like this 1 2 3 and four let's consider this is the let's consider this is the first your first switch now this pin switch uh this this is the here 1 2 3 and four so four pin we have so from the fourth number pin we have taken one register you can see this is the register we have taken and then the resistor next point we have connected to the ground so this is the common ground ground so this is the one part now spin this first number pin consider the first number not second not third exactly this cross connection first number pin it is connected to 5 Vol here you can see this is the 5 Vol okay so this is the one pin uh connection uh one switch connection now with the same repeat we have another switch another switch connected here like this then again 1 2 3 4 number of this switch then from the fourth again we have taken register 1 kilm resistor or 500 Ohm resistor now this pin is connected direct to directly to the common you can see common here Common Ground ultimately it's connected to ground then this pin we have to connect it to the VCC so ultimately we have shorted this like this indirectly it is connected to the VCC okay again we have the third switch here then third switch again having the four pin 1 2 3 4 same way the from the fourth pin we have taken one register and shorted here okay and then from the one pin we have connected like this common VCC so all this uh all these three pins are connected to Common VC all these register three pins are connect to Common Ground okay now in between fourth number pin and the register point in between fourth number pin register point in between fourth number pin and register point of each switch there is one point out here you can see in between this this one point then there is second point and then the third third point so this point is nothing but the ardino two number uh three uh already know four number five number and six number so from from this point we have taken uh one connection which is connected to AR four number orino five number and Oro six number so I hope you understand this circuit you can see this circuit like this and very easy circuit you can easily develop on breadboard if you want to develop on breadboard please watch my previous video in that video I have developed this circuit on the breadboard okay now this is the the final output of this switch of this circuit you can see same connection each pin having common VCC you can see this is the common VCC point then this is the common ground point and in between pin uh switch pin and the resistor one pin out one pin out one pin out which is connected to the ardino that's simple okay so after you design this switch circuit what you have to do you have to just connect the first VCC pin from this switch circuit so VCC pin is this one that should be connected to 5V pin of common 5V pin so common 5V pin is here okay then after that ground pin from this switch circuit so common ground pin is here okay okay so this is very simple then after that you can connect the first switch pin to the two number pin of ardino so first switch to the two number pin of ardino then second switch should be connected to three number pin of ardino and third switch pin should be connected to four number pin of ardino so 2 3 4 so switch model connection is done it is very simple then after that buzzer so buzzer you can see buzzer having two pin one positive and one negative so positive pin you you have to connect to five number pin of Ardo and negative pin should be connected to ground so first connect ground pin to the ground Common Ground pin and then positive pin should be connected to five number pin of hard so in this way the hardware connection is completed uh now how to give the power so already know having this USB port you can see D type USB port this pin you have to use and second pin you have to connect to your laptop so from the laptop we can give the power so just connect the PIN to here here okay now I will give the power so once I go the power you can see it is displaying smart rolly system and make sure your Hardware connection should be correct uh this switch connection you can say VCC should be connected to VCC or ground if it if you swap V ground then it is at the start it is showing start purchasing if I swap the V and ground from the switch you can see if I swap this [Music] okay then again if I give the power then here it will it will show you can remove the item so make sure your VC pin should be connected to VCC and your ground should be connected to [Applause] ground and then I can give the power now you can see our project start working you can purchasing the item but also work uh milk powder showing switch also you can remove the item also work you can add the item also work and resetting so all the hardware connection is correct if you follow the video definitely you can easily connect this Hardware by yourself now we will see the program part of this [Music] project okay let's understand the programing part of this project so very important point is first you should have a software in your laptop please download that software from ardino website so once you have that software then second is the second point you should have this folder this file in your laptop uh this is the ardino code where you can find this file you can find this file from my uh web page link the web page link you in the description download from there this file okay then you have to go to the ardino software you can double click on ardino software okay once ardino software open just go to the file click on open Button then uh go to that file so let's say like you have to create this type of folder like you you have to create this uh smart trolley folder like this you can see here smart trolley folder system folder inside that there should be this file and then open that file so once you open you will find the code so here at the starting you can see all the hardware connection is mentioned here RFID connection then LCD connection then buzzer pin connection then button connection all the connection are mentioned there then after that you can see there are some Library Mr F uh MFR c52 that is RFID modu library and liquid Crystal Library uh so how to install that Library you have to just go to the tool sorry go to the sketch then include library then after that you you have to click the manage Library okay so once you click on that manage Library it will open the library window so wait for some second again okay so once you open that manage Library folder then here you can type the library uh like name I have already installed uh you can see here Mr uh mfrc 52 SPI art Library I already installed so this Library you can search and install in your Raspberry Pi here you will find the install button like this just click on install button and once you click on install then Library get install in your uh Raspberry Pi uh sorry in your uh laptop so first library is that one mrf this and uh second Library you have to install so this two Library Liquid Crystal i2c library that is already installed and the M MFR c52 Library it is already installing in my laptop in my ordino so you have to install this just click on install button and that will install in your uh ardino so here you can type that Library so in this way you can install that Library very easily so once you install that Library you can see we have added that library at the starting then uh Liquid Crystal I2 C CD we are using that Define here then remove button uh is two then add button is three and reset button is four like remove button is it is used for to remove the item add button means to add the item and reset button means to reset the trolley data so 2 3 4 we have connected the button pins so here you can see button connection is given here instead of button one button two I will give here let's say button is remove remove button and here is ADD button so connection is 2 3 and then sorry then you can see reset button okay 2 3 4 we have the connection and F number you can see buzzer pin is connected so 2 3 4 three buttons bz buzzer is connected to five number and uh those are the uh our uh mrf RFID pins that is defined here then you can see we have the structure the structure having item name item number and item price So currently we have number of item is three because I have given the three RFID Card how to conect four that I will tell you later so here you can see tataa salt having this RFID number with price this then milk powder having this RFI number Price this then Bor having RFI number and price this likewise you have to define the uh your item with price and with RFID number then after that billing amount then our remove button State add button State those are some variable so in white setup we have to set up all the inputs like remove button is input reset button is input so all the pins which are consider as input that we have defined as input then buzzer pin also input here I have to one button that I will add here that is the add button okay so remove reset and add button those are the inputs then buzzer is output pins so three pins Define as input one pin Define as output then serial communication we are using 9C SPI communication we are any abling then uh our enabling the RFID uh module then on serial we we are printing uh proximate your card to read uh once you tap the card then it will show the number that I will show you later then initially we have to turn off the buzzer that's why buzzer turn off here then LCD initialization LCD black light turn on then LCD clear it will paint on the LCD smart Trolley bilding system then LCD again clear again print on the system start purchasing your item then after that we are taking the input from the button so remove button add button and the reset button so here we are taking the input from the button so once the button press respective variable for that button is getting respective variable for that button getting value true so if value is true let's say for example first we don't consider this Loop directly we jump to here uh here can the card after we can scanning the card we are getting one card number so where we getting the card number here you can see content card so this is the card number so here you can see there is a for Loop for Loop start with zero to item list so item list nothing but the three item what we added right now so 0 to three whatever the card is swap that swap number we are getting here inside this string and later we are comp comparing here currently string is available inside my data uh data set or not so the data set is nothing but our structure you can see this one item list so whenever you swipe the card then this incoming number compared with our in inbu data set if that number is match then we are adding add flag so because at the starting we have to give the uh at the starting the uh item should be add automatically no need to press any button that's why add flag initial value is one then billing amount is nothing but whatever your current billing let's say starting with the zero your billing amount is zero then you you swap the card then item list first uh item list do item price this is a structure uh we are calling so item list of item price so from here again we are fing the price for that particular RF id card so our billing is 0 plus let's say 100 so 0 plus 100 billing amount is 100 So currently billing amount value having 100 then after that uh we are turning on the buzzer turning off the buzzer then we are printing on the LCD item name again it is coming from the list it is again coming from the list from here you can see tataa salt is item name because here you can see item name it is structure like basic structure then item name then after that item price plus RS we have to print on the LC that is printing by using this Loop so whenever the project is start it will start scanning the card and it adding the uh billing amount so let's say currently billing amount is 100 let's say if you SW the second card then again second card is compared here and when the second card is compared here if it match if the second card is match then your current billing amount is 100 plus second amount whatever let's say 50 so 100 + 50 150 so 150 is Bing amount so at the end this if if flop is work and at the end you can see we are printing total billing your bill price like this is the addition at the starting so let's say if the uh customer want to remove the item so what he will press remove button he will press the remove button so once the remove button press you can see this button gets activated then add flag you can say you can see here it is set as zero and remove flag set as one then on LCD it will print you can now remove your item okay then after that again it will waiting for swap the card so once the card is swap then here add flag getting value zero now remove flag getting value one so it will come inside this Loop it is checking whether being Al amount is greater than zero or not that means whether there is item inside the bucket or not if it's item is not there then it will not uh iterate this Lo okay so it will check with whether his billing is greater than zero or not yes it is zero then whatever the billing amount minus item amount so let's say 150 minus 50 so that gets 50 remove from here and again billing amount buzzer will on off then it will print on the LCD which item is removed from this you can see item name item removed and this is the item name print print on LCD and at the starting it will again show total billing okay uh then if you press the add switch button again okay then again here you can see add switch it gets activated then again add item flag get one remove item flag get zero on the LC it will print you can now add your item then again it is waiting from the RF id message like RF tag so once you press the tag again it will iterate the for Loop and then it will go inside this Loop because right now this is one and this is zero so it will again start adding and start showing the billing amount okay then after that you can see here reset so if you press the reset button then it will go inside this reset button it will print on the LCD resetting trolley data and you can see start purchasing item and final billing count is reset to zero that means our data is reset from for that uh trolley so this is very easy and simple code I hope you understand the code logic and the code uh then how to run this code so just you have to just click on this verify button first so it will take some time to verify the code if there is no error it will show compilation done okay so you can see here it is showing the compilation done now you have to plug your ardino with your laptop so once it plug then go to the tools select from the board here it should select the ardino youo then comport from for the ardino you can see comport five and just click on this upload button okay so it's uploaded and my side Pro start working I can see on the LCD start purchasing the item again I will check whether it is working or not so it's buzzing Bor added uh then uh remove item switch press then B remove billing is zero then again I press the item second button then again Bor added and again I press the third switch reset trolley data so it is working perfectly at my end now I can show you how to add the fourth card like if you want to add new card into your system then what you have to do you have to just click on this serial monitor okay now we will see how to add the card so you can click on this serial monitor button so once you click here you can check boate should be 0 and this setting both NL and C then after that you can scan your new card let's say this is my new card I will scan so once it scan B should not ring because it is new card uh the data is is not present inside our database that should that mean buz buz should not ring okay then you can copy this number then here you can see uh uh first you copy this complete data as it is paste here okay here before this one like before this line you can paste the data here so this is your start and this is your end of database between that you have to paste that data okay then after that you can copy the number this number and you can paste here and then you can see I will change the name as a let's say ballpen okay then this is the number this is the name of item this is the number of item and this is the price let's say 10 Rupees is the price okay then after that compile again so here you can see it is giving too many isation the error is why because number of item here I am giving three so I have added the item so it should be four right now so again save and again run compile the code okay then after that you can click on upload button and then I can see when I swap this card like new card then it buzzer should ring and it should show ballpen with price 10 so it's ring and I can see ballpen with price CH that means it is working perfectly so right likewise you can uh add as many as card uh with this process I hope you understand the complete flow of this project complete idea complete Hardware complete programming part and how to add the new card also okay uh so if you like my content please click on like button please subscribe my Channel please support me thanks for watching this video
Info
Channel: Rahul Jadhav
Views: 951
Rating: undefined out of 5
Keywords: smart trolley system for automated billing using rfid and iot, smart trolley system, smart shopping trolley with automated billing using arduino, smart shopping trolley, smart shopping trolley robot that follows customer, smart shopping trolley using rfid, smart shopping trolley using arduino, smart shopping trolley with automated billing, smart shopping trolley with automated billing using arduino uno, smart trolley using arduino, smart trolley using arduino uno
Id: DZPfo-ZMzv8
Channel Id: undefined
Length: 36min 59sec (2219 seconds)
Published: Sun Apr 14 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.