This project aims to develop a fire alarm system that will allow the fire fighter to reset the fire alarm system using RFID sensor, so that it will reduce the time they spent on travelling to the Fire Alarm control room to reset the fire alarm.
Youtube link : https://youtu.be/StzNTo34Tx0
Done By: Teng Yong, Lisun, Glynis and Naufal
{"components":[{"id":"____screen","createTime":1636870593608,"name":"screen","x":0,"y":0,"width":320,"height":240,"backgroundColor":"#fff9f9","backgroundImage":"","type":"screen"},{"id":"____buttonA","createTime":1636870593608,"name":"ButtonA","buttonIndex":0,"x":35,"y":216,"width":64,"height":24,"text":"ButtonA","visibility":false,"type":"button"},{"id":"____buttonB","createTime":1636870593608,"name":"ButtonB","buttonIndex":1,"x":125,"y":216,"width":64,"height":24,"text":"ButtonB","visibility":false,"type":"button"},{"id":"____buttonC","createTime":1636870593608,"name":"ButtonC","buttonIndex":2,"x":215,"y":216,"width":64,"height":24,"text":"ButtonC","visibility":false,"type":"button"},{"id":"pD3450MUqbg1TbbI","createTime":1642733006855,"isCoreTwo":false,"isPaper":false,"name":"Deactivate","x":87,"y":40,"color":"#ff0000","text":"Text","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":7},{"id":"&vNB5$3cl55W+CuL","createTime":1642735726200,"isCoreTwo":false,"isCoreInk":false,"isPaper":false,"name":"fire","x":100,"y":60,"imagePath":"images.jpg","visibility":true,"imageInvert":false,"imageThreshold":128,"type":"image","layer":16},{"id":"h*QsPXu8Qvgbrbpg","createTime":1643336915399,"isCoreTwo":false,"isPaper":false,"name":"label1","x":134,"y":195,"color":"#454444","text":"-","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":7},{"id":"wP6xV!ILnVS17@mz","createTime":1643941400480,"isCoreTwo":false,"isPaper":false,"name":"firealert","x":98,"y":8,"color":"#ff8e00","text":"Text","font":"lcd.FONT_Ubuntu","rotation":0,"type":"label","layer":7},{"id":"VZ4a@q`M77nr0^7g","createTime":1643946948900,"isCoreTwo":false,"isPaper":false,"name":"DEACTIVATED","x":75,"y":107,"color":"#56d418","text":"Text","font":"lcd.FONT_DejaVu24","rotation":0,"type":"label","layer":9},{"id":"ey-lhMa%DXx#$Rmk","createTime":1644546692393,"isCoreTwo":false,"isCoreInk":false,"isPaper":false,"name":"Cool","x":118,"y":80,"imagePath":"CoolTemp.png","visibility":true,"imageInvert":false,"imageThreshold":128,"type":"image","layer":9,"width":null,"height":null,"radius":null}],"type":"fire","versions":"Beta","units":[{"id":"#LjbOxJu+G*ORWKM","createTime":1644545918925,"type":"rgb","name":"rgb0","port":"B","default":["A","B","E","Custom"],"user_port":["21","22"],"icon":"rgb.png"},{"id":"EAYd!=3Bmc%-a8K_","createTime":1644545918925,"hidden":false,"type":"env2","name":"env21","port":"PAHUB","default":["A","E","PAHUB","Custom"],"pb_port":[0,1,2,3,4,5],"new_pb_port":"1","user_port":["21","22"],"icon":"env2.png","new_port":"PAHUB","new_default":["A","E","PAHUB","Custom"]},{"id":"9oaR*Z&fTZtMjZhA","createTime":1644545918926,"type":"rfid","name":"rfid1","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","new_port":"PAHUB","new_default":["A","E","PAHUB","Custom"]},{"id":"yOlCOpJeJ18qQ6us","createTime":1644545918926,"type":"pahub","name":"pahub0","port":"A","default":["A","E","Custom"],"user_port":["21","22"],"icon":"pa_hub.png","new_port":"A","new_default":["A","E","Custom"]}],"hats":[],"blockly":"<block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"-110\" y=\"-10\"><next><block type=\"basic_on_loop\" id=\"PG=BBdoBgF:?hC|Y(`Yp\"><statement name=\"LOOP\"><block type=\"controls_if\" id=\"4wBxLhucZA5n!)Z~E]W7\"><mutation else=\"1\"></mutation><value name=\"IF0\"><block type=\"logic_compare\" id=\"qqAQW9:/7z/8iF;@OgdD\"><field name=\"OP\">GTE</field><value name=\"A\"><block type=\"dht12_get_temperature\" id=\"*mzz+sHtFZDW_5|)Tz~L\"><field name=\"VARNAME\">env21</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"wAD0i0NkCNd$Gu@(tlry\"><field name=\"NUM\">10</field></block></value></block></value><statement name=\"DO0\"><block type=\"label_set_text\" id=\"Dj*P@#`{b%hcFE39b?),\"><field name=\"COMPONENT\">firealert</field><value name=\"TEXT\"><shadow type=\"text\" id=\"I:tT(VewEI}H/a]*{lLF\"><field name=\"TEXT\">FIRE DETECTED!</field></shadow></value><next><block type=\"label_set_text\" id=\"^H05.?ZV(X4^BIHK}mko\"><field name=\"COMPONENT\">Deactivate</field><value name=\"TEXT\"><shadow type=\"text\" id=\"kbxodJ,wg-T}?0uzq%9F\"><field name=\"TEXT\">[SCAN TO DEACTIVATE]</field></shadow></value><next><block type=\"label_set_mode\" id=\"+6O5wyz./..nYHswQXK8\"><field name=\"COMPONENT\">DEACTIVATED</field><field name=\"MODE\">hide</field><next><block type=\"label_set_mode\" id=\"HHCK*3{rahYrES*,y;QW\"><field name=\"COMPONENT\">Deactivate</field><field name=\"MODE\">show</field><next><block type=\"image_show\" id=\"TtlEZQ!:7XfkAB_30Uyn\"><field name=\"COMPONENT\">fire</field><next><block type=\"rgb_unit_set_color_all\" id=\"JX1cOP0aJ/9V]U=sb[4%\"><field name=\"VARNAME\">rgb0</field><field name=\"COLOR\">#ff0000</field><next><block type=\"rgb_unit_set_color_all\" id=\"8U=~hIp,xd%EG?,}U]K9\"><field name=\"VARNAME\">rgb0</field><field name=\"COLOR\">#ff0000</field><next><block type=\"rgb_set_all\" id=\"!.2JAry/NstMUq*rKS+-\"><field name=\"COLOR\">#ff0000</field><next><block type=\"rgb_set_all\" id=\"BEbkV,%M7HlU?U8}.5Rf\"><field name=\"COLOR\">#ff0000</field></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"label_set_text\" id=\".=vdD.3606ddxYW+6SK_\"><field name=\"COMPONENT\">firealert</field><value name=\"TEXT\"><shadow type=\"text\" id=\"S`O2jC!zn#{SE:)Xzi~h\"><field name=\"TEXT\">NO FIRE DETECTED</field></shadow></value><next><block type=\"label_set_mode\" id=\"(g:r^79uB%B@WX@J1~rq\"><field name=\"COMPONENT\">DEACTIVATED</field><field name=\"MODE\">hide</field><next><block type=\"label_set_mode\" id=\"?AayGkJpmd5P8SyNJZ9x\"><field name=\"COMPONENT\">Deactivate</field><field name=\"MODE\">hide</field><next><block type=\"image_hide\" id=\"F%XY{j)SnFXW^oTp1-Ka\"><field name=\"COMPONENT\">fire</field><next><block type=\"image_show\" id=\"WG[nag3mz#lDHM}2rtcF\"><field name=\"COMPONENT\">Cool</field><next><block type=\"rgb_unit_set_color_all\" id=\"Fy}QFpis@j/VNQR12SRN\"><field name=\"VARNAME\">rgb0</field><field name=\"COLOR\">#66ffff</field><next><block type=\"rgb_unit_set_color_all\" id=\"{sStdd(us^H4h!=ye0ko\"><field name=\"VARNAME\">rgb0</field><field name=\"COLOR\">#66ffff</field><next><block type=\"rgb_set_all\" id=\":Hax-8~:,@?VAcC=s.58\"><field name=\"COLOR\">#66ffff</field><next><block type=\"rgb_set_all\" id=\"_K*:~5R50ov{oz$cVqQg\"><field name=\"COLOR\">#66ffff</field></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement><next><block type=\"basic_on_loop\" id=\"#F2RPqaCCPTE9`6M1rIF\"><statement name=\"LOOP\"><block type=\"controls_if\" id=\"3idX~fkKK.Pz*vO]7JTI\"><value name=\"IF0\"><block type=\"rfid_cardOn\" id=\"}d5PJ:fh,63nk#XeP9`n\"><field name=\"RFID\">rfid1</field></block></value><statement name=\"DO0\"><block type=\"label_set_mode\" id=\"~e@CYD+LLonJ^|4VD4aW\"><field name=\"COMPONENT\">Deactivate</field><field name=\"MODE\">hide</field><next><block type=\"image_hide\" id=\"Sxu+Sp@ZQ3.u9R==JHnp\"><field name=\"COMPONENT\">fire</field><next><block type=\"label_set_text\" id=\"c$G|}U#1MEiCC/JlA8R$\"><field name=\"COMPONENT\">DEACTIVATED</field><value name=\"TEXT\"><shadow type=\"text\" id=\")n|_:5k|/=~DsSe(WUgR\"><field name=\"TEXT\">DEACTIVATED</field></shadow></value><next><block type=\"label_set_mode\" id=\")g`Vmy$nix]W7s1EDIz8\"><field name=\"COMPONENT\">DEACTIVATED</field><field name=\"MODE\">show</field><next><block type=\"label_set_mode\" id=\"w)kY2yLC}x?Sj,()69c`\"><field name=\"COMPONENT\">firealert</field><field name=\"MODE\">hide</field><next><block type=\"rgb_unit_set_color_all\" id=\"i=}a|stvCi33JUK_PE)l\"><field name=\"VARNAME\">rgb0</field><field name=\"COLOR\">#33ff33</field><next><block type=\"rgb_set_all\" id=\"RFzeHvI3ZbKo?h6]~gI{\"><field name=\"COLOR\">#33ff33</field></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></statement></block></next></block></statement></block></next></block><block type=\"button_callback\" id=\"nM{5gFmT*u~?ogL!d})N\" x=\"370\" y=\"190\"><field name=\"BUTTON\">A</field><field name=\"EVENT\">wasPressed</field><statement name=\"FUNC\"><block type=\"label_set_text\" id=\"MR|v31k]|IVuLFEprrtQ\"><field name=\"COMPONENT\">firealert</field><value name=\"TEXT\"><shadow type=\"text\" id=\"AR=ckcuude^It,BN~49p\"><field name=\"TEXT\">NO FIRE DETECTED</field></shadow></value><next><block type=\"label_set_text\" id=\"c|HV;iGkt@-GF+]=+qpx\"><field name=\"COMPONENT\">Deactivate</field><value name=\"TEXT\"><shadow type=\"text\" id=\"yV+isrt@jwmt_aS**FW.\"><field name=\"TEXT\">[SCAN TO DEACTIVATE]</field></shadow></value><next><block type=\"label_set_mode\" id=\"IBRl10ECxx?KHOY/Lpm-\"><field name=\"COMPONENT\">DEACTIVATED</field><field name=\"MODE\">hide</field><next><block type=\"label_set_mode\" id=\"Z)I2bn7F5HF=1YgLU]3%\"><field name=\"COMPONENT\">firealert</field><field name=\"MODE\">show</field><next><block type=\"label_set_mode\" id=\"zCKy^Zp5*O9)eOYW0O$V\"><field name=\"COMPONENT\">Deactivate</field><field name=\"MODE\">hide</field><next><block type=\"image_show\" id=\"G=abu;QeGDT1^P/ri~tf\"><field name=\"COMPONENT\">Cool</field><next><block type=\"image_hide\" id=\"FjtK+7A?;?vRuM}T1*yV\"><field name=\"COMPONENT\">fire</field><next><block type=\"rgb_unit_set_color_all\" id=\"M0dClGa;v2WE$Gbe-:lu\"><field name=\"VARNAME\">rgb0</field><field name=\"COLOR\">#66ffff</field><next><block type=\"rgb_unit_set_color_all\" id=\"w31hzUdcmU,ar`RJl+*T\"><field name=\"VARNAME\">rgb0</field><field name=\"COLOR\">#66ffff</field><next><block type=\"rgb_set_all\" id=\"F]MgcRo^Ao2{DBQ7RFuZ\"><field name=\"COLOR\">#66ffff</field><next><block type=\"rgb_set_all\" id=\"ir$iS/Rug:COLZOSYKcu\"><field name=\"COLOR\">#66ffff</field></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block>","Blockly.Remotes":[],"modules":["rgb"]}
Comments
Please log in or sign up to comment.