Sinister SiddharthLei JiaxiJeshvanthchew kiat
Published

Smart Cashier

This project aims to develop a solution to have an auto cashier that people can use to scan their food/items without the need of a cashier.

IntermediateShowcase (no instructions)3 hours3
Smart Cashier

Things used in this project

Story

Read more

Schematics

capture_jlqC5I5m0u.JPG

Code

Entrance Welcome

Python
When a person passes the TOF sensor (comes to the cashier), a green light flashes to welcome them and indicate to them that they have entered the cashier.
{"components":[{"id":"____screen","createTime":1642736220938,"name":"screen","x":0,"y":0,"width":320,"height":240,"backgroundColor":"#222222","backgroundImage":"","type":"screen"},{"id":"____buttonA","createTime":1642736220938,"name":"ButtonA","buttonIndex":0,"x":35,"y":216,"width":64,"height":24,"text":"ButtonA","visibility":false,"type":"button"},{"id":"____buttonB","createTime":1642736220939,"name":"ButtonB","buttonIndex":1,"x":125,"y":216,"width":64,"height":24,"text":"ButtonB","visibility":false,"type":"button"},{"id":"____buttonC","createTime":1642736220939,"name":"ButtonC","buttonIndex":2,"x":215,"y":216,"width":64,"height":24,"text":"ButtonC","visibility":false,"type":"button"},{"id":"W^SQN6%_5fRFv1aO","createTime":1642736228327,"isCoreTwo":false,"isPaper":false,"name":"label0","x":140,"y":45,"color":"#FFFFFF","text":"Text","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":4}],"type":"fire","versions":"Beta","units":[{"id":"#ddCI&sm94rL@sZA","createTime":1643942024454,"stickNone":"stick","type":"tof","name":"tof0","port":"A","default":["A","E","PAHUB","Custom"],"pb_port":[0,1,2,3,4,5],"new_pb_port":"0","user_port":["21","22"],"icon":"tof.png"}],"hats":[],"blockly":"<variables><variable id=\"oj@WfiEF0w|[2]9{yZ]#\">X</variable></variables><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"50\" y=\"50\"><next><block type=\"basic_on_loop\" id=\")^*!HHQAPRB4XoAotb94\"><statement name=\"LOOP\"><block type=\"variables_set\" id=\"%VsaIVPO2T9dA/yDgZb^\"><field name=\"VAR\" id=\"oj@WfiEF0w|[2]9{yZ]#\">X</field><value name=\"VALUE\"><block type=\"math_number\" id=\")r`=-tq)Z#;gdT`,gd?4\"><field name=\"NUM\">0</field></block></value><next><block type=\"variables_set\" id=\"/Sg|3TMjDd+]e7z=m,7a\"><field name=\"VAR\" id=\"oj@WfiEF0w|[2]9{yZ]#\">X</field><value name=\"VALUE\"><block type=\"unit_tof_state\" id=\"9TxdB5$c9=3`:/]Ru6?e\"><field name=\"TOF\">tof0</field></block></value><next><block type=\"controls_if\" id=\"5W=S*V%i=FOB7!aqI8LU\"><mutation else=\"1\"></mutation><value name=\"IF0\"><block type=\"logic_compare\" id=\"TGlGB8DUrwL:$uXCUW#:\"><field name=\"OP\">LT</field><value name=\"A\"><block type=\"variables_get\" id=\"F0XoIk!gwH]8}vJ;FVj|\"><field name=\"VAR\" id=\"oj@WfiEF0w|[2]9{yZ]#\">X</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"YbVAG}%*_MiX-w2=Nci[\"><field name=\"NUM\">45</field></block></value></block></value><statement name=\"DO0\"><block type=\"speaker_vol\" id=\"b^-Q~x+?}tGpWU`fVt:z\"><value name=\"VOLUME\"><shadow type=\"math_number\" id=\"#NIuzTXHcpSI^PD*`A0V\"><field name=\"NUM\">0.2</field></shadow></value><next><block type=\"speaker_sing\" id=\"cEQ4swtiQWi;u_[jw270\"><field name=\"TONE\">220</field><field name=\"BEAT\">1</field><next><block type=\"rgb_set_all\" id=\"I~,j7ZI%5Q|VfZ^6k%i!\"><field name=\"COLOR\">#33cc00</field><next><block type=\"timer_delay_ms\" id=\"%JYYKR=K,|H.nSb0Oz6}\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"B{n/U@i(IK#.b[`[V9nE\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"label_set_text\" id=\"xO@!d4/wt034up[Y;0x*\"><field name=\"COMPONENT\">label0</field><value name=\"TEXT\"><shadow type=\"text\" id=\"W=03SX=j5Rk#e^_!kNi~\"><field name=\"TEXT\">Welcome to Supermart</field></shadow></value><next><block type=\"label_set_mode\" id=\"O%(Ge)lK@V.}Z[9{1pHP\"><field name=\"COMPONENT\">label0</field><field name=\"MODE\">show</field></block></next></block></next></block></next></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"rgb_set_all\" id=\"[bc7Y1{5xq7}./9)c;a[\"><field name=\"COLOR\">#000000</field><next><block type=\"label_set_mode\" id=\"L_c?{-lMhXPJ8:f]d!8.\"><field name=\"COMPONENT\">label0</field><field name=\"MODE\">hide</field></block></next></block></statement></block></next></block></next></block></statement></block></next></block><block type=\"label_set_mode\" id=\"[PD#j!MmzA(*`GYgYI3{\" disabled=\"true\" x=\"550\" y=\"190\"><field name=\"COMPONENT\">label0</field><field name=\"MODE\">hide</field></block><block type=\"timer_delay\" id=\"0;8W?ySK.4-Y-Fp`2m@u\" disabled=\"true\" x=\"570\" y=\"250\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"IJ5/597I;|oTQYk;s$,g\" disabled=\"true\"><field name=\"NUM\">1</field></shadow></value></block><block type=\"rgb_set_all\" id=\"3)v%coubdbMt0$Fm|n5-\" disabled=\"true\" x=\"850\" y=\"570\"><field name=\"COLOR\">#000000</field></block>","Blockly.Remotes":[],"modules":["rgb"]}

Conveyor Code

Python
Person places their groceries on the conveyor belt. TOF sensor scans it and conveyor belt moves item to the cashier system.
{"components":[{"id":"____screen","createTime":1643338806450,"name":"screen","x":0,"y":0,"width":320,"height":240,"backgroundColor":"#222222","backgroundImage":"","type":"screen"},{"id":"____buttonA","createTime":1643338806450,"name":"ButtonA","buttonIndex":0,"x":35,"y":216,"width":64,"height":24,"text":"ButtonA","visibility":false,"type":"button"},{"id":"____buttonB","createTime":1643338806450,"name":"ButtonB","buttonIndex":1,"x":125,"y":216,"width":64,"height":24,"text":"ButtonB","visibility":false,"type":"button"},{"id":"____buttonC","createTime":1643338806450,"name":"ButtonC","buttonIndex":2,"x":215,"y":216,"width":64,"height":24,"text":"ButtonC","visibility":false,"type":"button"},{"id":"BLzK2Q9&ANMFIv$N","createTime":1643338882930,"isCoreTwo":false,"isPaper":false,"name":"TOFLabel","x":52,"y":53,"color":"#FFFFFF","text":"TOF:","font":"lcd.FONT_DejaVu24","rotation":0,"type":"label","layer":4,"width":null,"height":null,"radius":null},{"id":"Eg4OGXJ*6_wb$uWr","createTime":1643338885386,"isCoreTwo":false,"isPaper":false,"name":"TOFReading","x":134,"y":53,"color":"#FFFFFF","text":"Text","font":"lcd.FONT_DejaVu24","rotation":0,"type":"label","layer":5,"width":null,"height":null,"radius":null},{"id":"@dO=74UwO+BREfb%","createTime":1643338892585,"isCoreTwo":false,"isPaper":false,"name":"Welcome","x":11,"y":128,"color":"#FFFFFF","text":"Place items one by one","font":"lcd.FONT_DejaVu24","rotation":0,"type":"label","layer":7,"width":null,"height":null,"radius":null}],"type":"fire","versions":"Beta","units":[{"id":"4iPCLehAoW`^inz3","createTime":1643339028373,"type":"servo","name":"servo0","port":"B","default":["A","B","E","Custom"],"user_port":["21","22"],"icon":"servo.png"},{"id":"+wCmmu15mdMHTfrz","createTime":1643339039715,"stickNone":"stick","type":"tof","name":"tof0","port":"A","default":["A","E","PAHUB","Custom"],"pb_port":[0,1,2,3,4,5],"new_pb_port":"0","user_port":["21","22"],"icon":"tof.png"}],"hats":[],"blockly":"<block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"50\" y=\"50\"><next><block type=\"basic_on_loop\" id=\"VR.lt_mwDYZX~2Z|8VV(\"><statement name=\"LOOP\"><block type=\"label_set_text\" id=\"Y3YdLVq!dsdkd0j!REvc\"><field name=\"COMPONENT\">TOFReading</field><value name=\"TEXT\"><shadow type=\"text\" id=\"4[!wZqr=Xp025M[(4-s%\" disabled=\"true\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"unit_tof_state\" id=\"@=WW]DZeAr}c4X%1yYMt\"><field name=\"TOF\">tof0</field></block></value><next><block type=\"timer_delay\" id=\"#WBNz(lUJ_D3%~Brn[c`\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"Y#B-}@iEEZcEc(i,j6RF\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"controls_ifelse\" id=\"cXUv_Dpk]jh{u,Woo3]?\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"$2h$Hb1Hox~OID)~g7CF\"><field name=\"OP\">LT</field><value name=\"A\"><block type=\"unit_tof_state\" id=\"kk6qr}ig;h-DXU/I3Wjo\"><field name=\"TOF\">tof0</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"ZNSyzy.l*DyOOtgTn,aB\"><field name=\"NUM\">100</field></block></value></block></value><statement name=\"DO0\"><block type=\"servo_unit_write_angle\" id=\"nFH^hDNYz5vINd]`4h40\"><field name=\"VARNAME\">servo0</field><value name=\"ANGLE\"><shadow type=\"math_number\" id=\"N$jU%JqX9GF;=uG8CP7+\"><field name=\"NUM\">180</field></shadow><block type=\"math_number\" id=\"(e,c~Av9~_QKS~w*CVwU\"><field name=\"NUM\">180</field></block></value><next><block type=\"rgb_set_all\" id=\"pi!OIPSlJX2(dZEOin{5\"><field name=\"COLOR\">#009900</field><next><block type=\"speaker_vol\" id=\"Kj49EI1`JgF-TIMV;`km\"><value name=\"VOLUME\"><shadow type=\"math_number\" id=\"{,D9uo=5`#vw(8Q[0E?W\"><field name=\"NUM\">0.2</field></shadow></value><next><block type=\"speaker_tone\" id=\"Dj@FAH.aX}|X$+TO4#JU\"><value name=\"FREQ\"><shadow type=\"math_number\" id=\"2@KRyuaX,_}ecpPu5%+4\"><field name=\"NUM\">1800</field></shadow></value><value name=\"TIMEOUT\"><shadow type=\"math_number\" id=\"$3oP.{)s5_/6I/@gAW-*\"><field name=\"NUM\">200</field></shadow></value><next><block type=\"timer_delay\" id=\"6X:W/?toCyd8YICfP2+M\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"t}?ZTsCOPkx1h662U{dG\"><field name=\"NUM\">3</field></shadow></value></block></next></block></next></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"rgb_set_all\" id=\"5*oLA!k3,5owTi;wVNT5\"><field name=\"COLOR\">#000000</field><next><block type=\"servo_unit_write_angle\" id=\"IxV`d}oY{icW*),G[kh`\"><field name=\"VARNAME\">servo0</field><value name=\"ANGLE\"><shadow type=\"math_number\"><field name=\"NUM\">180</field></shadow><block type=\"math_number\" id=\"f3Qb+J,)?Y]/ttjcyR51\"><field name=\"NUM\">0</field></block></value></block></next></block></statement></block></next></block></next></block></statement></block></next></block>","Blockly.Remotes":[],"modules":["rgb"]}

Cashier System

Python
When the conveyor belt moves the item, the item will pass the RFID sensor. Each grocery has an RFID tag. When the RFID sensor senses this tag, it will input the item into the system and add up the prices and display everything on the display. It will also output a color (based on color of item like apple=red orange=orange) on the RGB unit. Once the person is done placing all the items, they can see the total prices and items on the display. Then they will check out using their cards on another RFID sensor and then the display will show an exit message.
{"components":[{"id":"____screen","createTime":1639104518296,"name":"screen","x":0,"y":0,"width":320,"height":240,"backgroundColor":"#222222","backgroundImage":"","type":"screen"},{"id":"____buttonA","createTime":1639104518297,"name":"ButtonA","buttonIndex":0,"x":35,"y":216,"width":64,"height":24,"text":"ButtonA","visibility":false,"type":"button"},{"id":"____buttonB","createTime":1639104518297,"name":"ButtonB","buttonIndex":1,"x":125,"y":216,"width":64,"height":24,"text":"ButtonB","visibility":false,"type":"button"},{"id":"____buttonC","createTime":1639104518297,"name":"ButtonC","buttonIndex":2,"x":215,"y":216,"width":64,"height":24,"text":"ButtonC","visibility":false,"type":"button"},{"id":"uxZicr1$4CULLeNd","createTime":1643849577063,"isCoreTwo":false,"isPaper":false,"name":"label0","x":8,"y":15,"color":"#FFFFFF","text":"Please scan your items here","font":"lcd.FONT_DejaVu18","rotation":0,"type":"label","layer":13},{"id":"c11PMJsOmg=r+ug+","createTime":1643849578535,"isCoreTwo":false,"isPaper":false,"name":"label1","x":84,"y":58,"color":"#FFFFFF","text":"Price of items","font":"lcd.FONT_DejaVu18","rotation":0,"type":"label","layer":14},{"id":"ezN1&Gdq3Z@#%%et","createTime":1643849580241,"isCoreTwo":false,"isPaper":false,"name":"label2","x":15,"y":58,"color":"#FFFFFF","text":"Item ","font":"lcd.FONT_DejaVu18","rotation":0,"type":"label","layer":15},{"id":"UO_poeffZdN%t9GL","createTime":1643849711027,"isCoreTwo":false,"isPaper":false,"name":"label3","x":15,"y":86,"color":"#FFFFFF","text":"Apple           $1.00","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":16},{"id":"4w#oVqS*cC2WMehf","createTime":1643849714471,"isCoreTwo":false,"isPaper":false,"name":"label4","x":15,"y":112,"color":"#FFFFFF","text":"Banana        $1.50","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":17},{"id":"CWKS5iA#vvG0rlpM","createTime":1643849717235,"isCoreTwo":false,"isPaper":false,"name":"label5","x":15,"y":136,"color":"#FFFFFF","text":"Milk              $2.50","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":18},{"id":"z=1*%Y6d*y7mq&y`","createTime":1643849832030,"isCoreTwo":false,"isPaper":false,"name":"label6","x":8,"y":165,"color":"#FFFFFF","text":"Text","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":20},{"id":"-DZ6F6jwknFTE*84","createTime":1643849911038,"isCoreTwo":false,"isPaper":false,"name":"label7","x":8,"y":189,"color":"#FFFFFF","text":"Total Cost: $","font":"lcd.FONT_DejaVu18","rotation":0,"type":"label","layer":21},{"id":"YeKGux5Km87CbCr3","createTime":1643849913807,"isCoreTwo":false,"isPaper":false,"name":"label8","x":139,"y":189,"color":"#FFFFFF","text":"Text","font":"lcd.FONT_DejaVu18","rotation":0,"type":"label","layer":22},{"id":"ru6YoeSZllt+6QW@","createTime":1643850699142,"isCoreTwo":false,"isPaper":false,"name":"label9","x":13,"y":219,"color":"#FFFFFF","text":"Please scan your card to pay","font":"lcd.FONT_DejaVu18","rotation":0,"type":"label","layer":24},{"id":"TIR@EZ7hq8Hj0T&h","createTime":1643851033474,"isCoreTwo":false,"isPaper":false,"name":"label10","x":8,"y":37,"color":"#FFFFFF","text":"Total amount of $","font":"lcd.FONT_DejaVu18","rotation":0,"type":"label","layer":26},{"id":"!-&O%ldu#X5uFIu&","createTime":1643867818559,"isCoreTwo":false,"isPaper":false,"name":"label11","x":189,"y":37,"color":"#FFFFFF","text":"Text","font":"lcd.FONT_DejaVu18","rotation":0,"type":"label","layer":39},{"id":"+f0odHEB!dpyW#ML","createTime":1643867838904,"isCoreTwo":false,"isPaper":false,"name":"label12","x":11,"y":57,"color":"#FFFFFF","text":"Has been paid ","font":"lcd.FONT_DejaVu18","rotation":0,"type":"label","layer":40},{"id":"_Q=`FGkEE=ADX-Z8","createTime":1643867856250,"isCoreTwo":false,"isPaper":false,"name":"label13","x":1,"y":106,"color":"#FFFFFF","text":"Thank you and have a nice day","font":"lcd.FONT_DejaVu18","rotation":0,"type":"label","layer":41}],"type":"fire","versions":"Beta","units":[{"id":"3^v4uMV0dG-r3i5=","createTime":1643941612319,"type":"rfid","name":"rfid0","port":"PAHUB","default":["A","E","PAHUB","Custom"],"pb_port":[0,1,2,3,4,5],"new_pb_port":"0","user_port":["21","22"],"icon":"rfid.png"},{"id":"q&9F!=Z2zcb9TTfg","createTime":1643941612319,"type":"pahub","name":"pahub1","port":"A","default":["A","E","Custom"],"user_port":["21","22"],"icon":"pa_hub.png"},{"id":"LQmg2+nZb`$wn#Oy","createTime":1643941612319,"type":"rfid","name":"rfid3","port":"PAHUB","default":["A","E","PAHUB","Custom"],"pb_port":[0,1,2,3,4,5],"new_pb_port":"5","user_port":["21","22"],"icon":"rfid.png"}],"hats":[],"blockly":"<variables><variable id=\"`yfg.vASIate?Wersv=$\">Totalcost</variable></variables><block type=\"button_callback\" id=\"|E/kV_y%mcY~,vt~6tU1\" x=\"610\" y=\"-110\"><field name=\"BUTTON\">A</field><field name=\"EVENT\">wasPressed</field></block><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"238\" y=\"112\"><next><block type=\"variables_set\" id=\":pHAG/#fD6UE-kN5ySYR\"><field name=\"VAR\" id=\"`yfg.vASIate?Wersv=$\">Totalcost</field><value name=\"VALUE\"><block type=\"math_number\" id=\"BK-1rYFKNzBEC?m%R]n|\"><field name=\"NUM\">0</field></block></value><next><block type=\"label_set_mode\" id=\"K83];b;|~/o4N.3,.!]Q\"><field name=\"COMPONENT\">label10</field><field name=\"MODE\">hide</field><next><block type=\"label_set_mode\" id=\"#ehpIV:tk!Vd3CBR;kvo\"><field name=\"COMPONENT\">label11</field><field name=\"MODE\">hide</field><next><block type=\"label_set_mode\" id=\"uZ6|0_Bz,|h#(?}DANw:\"><field name=\"COMPONENT\">label12</field><field name=\"MODE\">hide</field><next><block type=\"label_set_mode\" id=\"Vg`mZZ_jn}uceB-HD{#p\"><field name=\"COMPONENT\">label13</field><field name=\"MODE\">hide</field><next><block type=\"basic_on_loop\" id=\"`E!X0pi)ZdErs+i^*jK8\"><statement name=\"LOOP\"><block type=\"label_set_text\" id=\",9x)(`IWY^my)mLgJ66i\"><field name=\"COMPONENT\">label8</field><value name=\"TEXT\"><shadow type=\"text\" id=\"m_ETWDA#t]hlpE$e]_@S\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"variables_get\" id=\"FcWtBDL5Ub)/F9*/zbT.\"><field name=\"VAR\" id=\"`yfg.vASIate?Wersv=$\">Totalcost</field></block></value><next><block type=\"controls_if\" id=\"9Q(k+T%GY5EUP5hzXrsT\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"vync,iX^;;!K5uXjeWN1\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"rfid_uid\" id=\"7%kH8g^m783Q?!.-!8Z4\"><field name=\"RFID\">rfid0</field></block></value><value name=\"B\"><block type=\"text\" id=\"(wu|eL5{pGA=?XrS2yx3\"><field name=\"TEXT\">779842ec41</field></block></value></block></value><statement name=\"DO0\"><block type=\"label_set_text\" id=\"P{LcsQhTu;YO2x,/v6_8\"><field name=\"COMPONENT\">label6</field><value name=\"TEXT\"><shadow type=\"text\" id=\"6Hr(:bUc*aA~7~qm?}lM\"><field name=\"TEXT\">Apple price:$1.00 Added to the cart</field></shadow></value><next><block type=\"math_change\" id=\")Hl#nQaM$V#jTHjFi`:c\"><field name=\"VAR\" id=\"`yfg.vASIate?Wersv=$\">Totalcost</field><value name=\"DELTA\"><shadow type=\"math_number\" id=\"yhyM|~3.CQg_56a$,:Ta\"><field name=\"NUM\">1</field></shadow></value></block></next></block></statement><next><block type=\"controls_if\" id=\"zRjXm~jFt0N8y~8yP6xg\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"4XR0ddW?Ouuj^*xe?RU$\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"rfid_uid\" id=\"i7I?uQ+;YR1k%$Ozx,Yb\"><field name=\"RFID\">rfid0</field></block></value><value name=\"B\"><block type=\"text\" id=\"q?_XkgDd@[Of_z7.2_*Y\"><field name=\"TEXT\">b0b12aa21</field></block></value></block></value><statement name=\"DO0\"><block type=\"label_set_text\" id=\"/#uX%#zj)1+pmmJAsKfT\"><field name=\"COMPONENT\">label6</field><value name=\"TEXT\"><shadow type=\"text\" id=\"Wz@=Vpa`Nv$5M^Lg*7V0\"><field name=\"TEXT\">Banana price:$1.50 Added to the cart</field></shadow></value><next><block type=\"math_change\" id=\"y1[bn;+jY#wgs}Bx%chs\"><field name=\"VAR\" id=\"`yfg.vASIate?Wersv=$\">Totalcost</field><value name=\"DELTA\"><shadow type=\"math_number\" id=\"NMr{GKzf13^a|D_A#^GH\"><field name=\"NUM\">1.5</field></shadow></value></block></next></block></statement><next><block type=\"controls_if\" id=\"G]4|HUdMKD!#$(]c#Mk3\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"U~0EiENHkV9/g#WolJoZ\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"rfid_uid\" id=\"KA!e]C-21A-O+Zv,i`~?\"><field name=\"RFID\">rfid0</field></block></value><value name=\"B\"><block type=\"text\" id=\"qbeS]BIekBq]P#3pe#{b\"><field name=\"TEXT\">c2ecf011cf</field></block></value></block></value><statement name=\"DO0\"><block type=\"label_set_text\" id=\"Wk|wa}=U9v1DJGhyM[dX\"><field name=\"COMPONENT\">label6</field><value name=\"TEXT\"><shadow type=\"text\" id=\"xO=DQ0lli)D285;]Zt]W\"><field name=\"TEXT\">Milk price:$2.50 Added to the cart</field></shadow></value><next><block type=\"math_change\" id=\"j1+s{d]YW*Wc?qb^7c$W\"><field name=\"VAR\" id=\"`yfg.vASIate?Wersv=$\">Totalcost</field><value name=\"DELTA\"><shadow type=\"math_number\" id=\"+Ps3=1u4L?Sv*e=+Z,S4\"><field name=\"NUM\">2.5</field></shadow></value></block></next></block></statement><next><block type=\"controls_if\" id=\"Fr(Y-paE?r$(iglp$,sb\"><value name=\"IF0\"><block type=\"rfid_cardOn\" id=\"?x98dpsxH#s}(~_zj_vj\"><field name=\"RFID\">rfid3</field></block></value><statement name=\"DO0\"><block type=\"label_set_mode\" id=\"fn{keV4_5inKk`^]T8o~\"><field name=\"COMPONENT\">label0</field><field name=\"MODE\">hide</field><next><block type=\"label_set_mode\" id=\"za?Ei*W9Y]xlfmIzqIi%\"><field name=\"COMPONENT\">label1</field><field name=\"MODE\">hide</field><next><block type=\"label_set_mode\" id=\"Ck|%V*h;9MUBICO%9A@`\"><field name=\"COMPONENT\">label2</field><field name=\"MODE\">hide</field><next><block type=\"label_set_mode\" id=\"Ry*364PiH(vD8?rq!@0a\"><field name=\"COMPONENT\">label3</field><field name=\"MODE\">hide</field><next><block type=\"label_set_mode\" id=\"9I)Rktw#w9R=gordTz(5\"><field name=\"COMPONENT\">label4</field><field name=\"MODE\">hide</field><next><block type=\"label_set_mode\" id=\"dj_l%ZwE+%b:Xos=okNB\"><field name=\"COMPONENT\">label5</field><field name=\"MODE\">hide</field><next><block type=\"label_set_mode\" id=\"y[`%0pL|cLuJgA6V~HX=\"><field name=\"COMPONENT\">label6</field><field name=\"MODE\">hide</field><next><block type=\"label_set_mode\" id=\"kuPV]Y]jmo[B5P6[@%(T\"><field name=\"COMPONENT\">label7</field><field name=\"MODE\">hide</field><next><block type=\"label_set_mode\" id=\"zBlkIsN_rO*([n+Dd{xT\"><field name=\"COMPONENT\">label8</field><field name=\"MODE\">hide</field><next><block type=\"label_set_mode\" id=\"g=yjwY_z:_FJc^.MF(oV\"><field name=\"COMPONENT\">label9</field><field name=\"MODE\">hide</field><next><block type=\"label_set_mode\" id=\"GKkVE~/va~O~#ZncKkGK\"><field name=\"COMPONENT\">label10</field><field name=\"MODE\">show</field><next><block type=\"label_set_text\" id=\"R}mpknEub67O3Y7LxW9x\"><field name=\"COMPONENT\">label11</field><value name=\"TEXT\"><shadow type=\"text\" id=\"NLg!Y(EGIvnx~#:fr@N~\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"variables_get\" id=\"nfH0ZK1FTH-eb:FOYP/!\"><field name=\"VAR\" id=\"`yfg.vASIate?Wersv=$\">Totalcost</field></block></value><next><block type=\"label_set_mode\" id=\"cvAh`:VoYSDx9B%2JUya\"><field name=\"COMPONENT\">label12</field><field name=\"MODE\">show</field><next><block type=\"label_set_mode\" id=\":6Pxdv%r([J(W5y$If96\"><field name=\"COMPONENT\">label13</field><field name=\"MODE\">show</field><next><block type=\"timer_delay\" id=\"?^%6^dwILODXVV1OXAw4\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"$]vj78!K7$J~P+G=2]Ld\"><field name=\"NUM\">5</field></shadow></value><next><block type=\"variables_set\" id=\"ql}[#`}@leHWH_^-z,-s\"><field name=\"VAR\" id=\"`yfg.vASIate?Wersv=$\">Totalcost</field><value name=\"VALUE\"><block type=\"math_number\" id=\"]wNl2cO[}Bc4UQ1NmrtE\"><field name=\"NUM\">0</field></block></value><next><block type=\"label_set_mode\" id=\")y[6}sbu9$NRalqaha4p\"><field name=\"COMPONENT\">label0</field><field name=\"MODE\">show</field><next><block type=\"label_set_mode\" id=\"ul[64Bf6;)7^sek55d*@\"><field name=\"COMPONENT\">label1</field><field name=\"MODE\">show</field><next><block type=\"label_set_mode\" id=\"6l1)*e4-LGK$#uQ9+|!?\"><field name=\"COMPONENT\">label2</field><field name=\"MODE\">show</field><next><block type=\"label_set_mode\" id=\"VQal9Mde4R[I%|Vx.3pa\"><field name=\"COMPONENT\">label3</field><field name=\"MODE\">show</field><next><block type=\"label_set_mode\" id=\"EMbS+1xR])BNG:kwXAe=\"><field name=\"COMPONENT\">label4</field><field name=\"MODE\">show</field><next><block type=\"label_set_mode\" id=\";RW9zAaJxb!Dk9?:+-DN\"><field name=\"COMPONENT\">label5</field><field name=\"MODE\">show</field><next><block type=\"label_set_mode\" id=\"o,60#cvjq3@k^@w+{zX=\"><field name=\"COMPONENT\">label6</field><field name=\"MODE\">show</field><next><block type=\"label_set_mode\" id=\";O46zrB?:zET7qiNG=W(\"><field name=\"COMPONENT\">label7</field><field name=\"MODE\">show</field><next><block type=\"label_set_mode\" id=\"FX/gycU;mL/VO]FdL;g;\"><field name=\"COMPONENT\">label8</field><field name=\"MODE\">show</field><next><block type=\"label_set_mode\" id=\"ahD],DwuQftKU-hv%7.`\"><field name=\"COMPONENT\">label9</field><field name=\"MODE\">show</field><next><block type=\"label_set_mode\" id=\"fs5GmQr:${1~SX#FkYpX\"><field name=\"COMPONENT\">label10</field><field name=\"MODE\">hide</field><next><block type=\"label_set_mode\" id=\"}sw9h.qALDFcDhXQ1Tr`\"><field name=\"COMPONENT\">label11</field><field name=\"MODE\">hide</field><next><block type=\"label_set_mode\" id=\"P64:}NXEhhyWI!VvZ)HR\"><field name=\"COMPONENT\">label12</field><field name=\"MODE\">hide</field><next><block type=\"label_set_mode\" id=\"?*fp{kTXiGT_brXjoDW`\"><field name=\"COMPONENT\">label13</field><field name=\"MODE\">hide</field></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block><block type=\"rfid_cardOn\" id=\"lalrFU)m#f3%S=u~CB}j\" disabled=\"true\" x=\"890\" y=\"170\"><field name=\"RFID\">rfid0</field></block><block type=\"timer_delay\" id=\"brGbw5o}=(z.cVC])+dP\" disabled=\"true\" x=\"810\" y=\"410\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"gLl9ZO`/dV9[,us+o)K+\" disabled=\"true\"><field name=\"NUM\">0.5</field></shadow></value><next><block type=\"timer_delay\" id=\"}s_fLCCDbQEJr.`9i!.2\" disabled=\"true\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"$OMTk77bcnOL,?PR8WaS\" disabled=\"true\"><field name=\"NUM\">0.5</field></shadow></value></block></next></block>","Blockly.Remotes":[],"modules":["rgb"]}

Credits

Sinister Siddharth

Sinister Siddharth

0 projects • 0 followers
I am a great gamer,programmer and I love theme parks
Lei Jiaxi

Lei Jiaxi

0 projects • 0 followers
Jeshvanth

Jeshvanth

0 projects • 0 followers
chew kiat

chew kiat

0 projects • 0 followers

Comments

Add projectSign up / Login