Angel Zhanggeraldine5shaayyne_limShen Yao
Published

EGC177_grpC4_Team 3_Guardian of the crops

This product helps supervise and regulate the crops’/plants' health status in urban farms.

BeginnerWork in progress26
EGC177_grpC4_Team 3_Guardian of the crops

Things used in this project

Story

Read more

Schematics

Presentation slides

Circuit Diagram

Block Diagram

Flowchart

Code

The 1st M5Stack

Python
{"components":[{"id":"____screen","createTime":1667527164315,"name":"screen","x":0,"y":0,"width":320,"height":240,"backgroundColor":"#222222","backgroundImage":"","type":"screen"},{"id":"____buttonA","createTime":1667527164315,"name":"ButtonA","buttonIndex":0,"x":35,"y":216,"width":64,"height":24,"text":"ButtonA","visibility":false,"type":"button"},{"id":"____buttonB","createTime":1667527164315,"name":"ButtonB","buttonIndex":1,"x":125,"y":216,"width":64,"height":24,"text":"ButtonB","visibility":false,"type":"button"},{"id":"____buttonC","createTime":1667527164315,"name":"ButtonC","buttonIndex":2,"x":215,"y":216,"width":64,"height":24,"text":"ButtonC","visibility":false,"type":"button"},{"id":"mL29yqrTJwyy-7A`","createTime":1674111835365,"isCoreTwo":false,"isPaper":false,"name":"label0","x":13,"y":188,"color":"#00beff","text":"Temperature:","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":32},{"id":"Gx0eFa3DmTQel=P9","createTime":1674111851144,"isCoreTwo":false,"isPaper":false,"name":"label1","x":13,"y":210,"color":"#ff6b6b","text":"Humidity:","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":33},{"id":"ai!8jaV4U$$=!7DG","createTime":1674111960947,"isCoreTwo":false,"isPaper":false,"name":"label4","x":260,"y":188,"color":"#00beff","text":"Text","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":37},{"id":"!YRPuOnp*NlJGL3J","createTime":1674111963085,"isCoreTwo":false,"isPaper":false,"name":"label5","x":260,"y":210,"color":"#ff6b6b","text":"Text","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":38},{"id":"=Mziz`pZpZ``6ad@","createTime":1674112640446,"isCoreTwo":false,"isCoreInk":false,"isPaper":false,"name":"image1","x":13,"y":26,"imagePath":"coolTemp.png","visibility":true,"imageInvert":false,"imageThreshold":128,"type":"image","layer":45},{"id":"26x0s-4LgGkfVmMB","createTime":1674112779725,"isCoreTwo":false,"isCoreInk":false,"isPaper":false,"name":"image0","x":13,"y":26,"imagePath":"Hightemp.png","visibility":true,"imageInvert":false,"imageThreshold":128,"type":"image","layer":46},{"id":"nnxZKhLG+H6T7bRg","createTime":1674712489669,"isCoreTwo":false,"isCoreInk":false,"isPaper":false,"name":"image2","x":187,"y":13,"imagePath":"intru120px.jpg","visibility":true,"imageInvert":false,"imageThreshold":128,"type":"image","layer":62},{"id":"SZ#M1YV$9wK9i8jQ","createTime":1674712565504,"isCoreTwo":false,"isPaper":false,"name":"label2","x":182,"y":142,"color":"#fffcfc","text":"Intruder Alert !!!","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":63},{"id":"lcSkMNVTw%ioj+aM","createTime":1674789368663,"isCoreTwo":false,"isPaper":false,"name":"label3","x":14,"y":142,"color":"#FFFFFF","text":"Temp too high!","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":36}],"type":"fire","versions":"Beta","units":[{"id":"ExOdwoQWixk`#1Rd","createTime":1675394452524,"hidden":false,"type":"env2","name":"env2_3","port":"A","default":["A","E","PAHUB","Custom"],"pb_port":[0,1,2,3,4,5],"new_pb_port":"3","user_port":["21","22"],"icon":"env2.png"},{"id":"ggAA4bs#jp1P=zxL","createTime":1675394452524,"type":"pir","name":"pir_2","port":"B","default":["A","B","E","Custom"],"user_port":["21","22"],"icon":"pir.png"}],"hats":[],"blockly":"<variables><variable id=\"F@(NK~u/IK3NgxNE3rqz\">Temperature</variable><variable id=\"(NrGcxvZQHuEe:rmyD|C\">MaxAnalogValue</variable><variable id=\"q6X+=/(7LiNNc|Bl*g3U\">MaxDigitalValue</variable></variables><block type=\"basic_on_setup\" id=\"BhEz5eF/2Ai:m*|;_$3:\" disabled=\"true\" deletable=\"false\" x=\"-130\" y=\"10\"></block><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"50\" y=\"50\"><next><block type=\"variables_set\" id=\"-f1THs_mXa{*A+Wl^%|A\"><field name=\"VAR\" id=\"F@(NK~u/IK3NgxNE3rqz\">Temperature</field><value name=\"VALUE\"><block type=\"math_number\" id=\".Fo%=Po?/#peT^)9Q`x=\"><field name=\"NUM\">25</field></block></value><next><block type=\"variables_set\" id=\"|{K*nii)Bc#%0tBNPFAI\"><field name=\"VAR\" id=\"(NrGcxvZQHuEe:rmyD|C\">MaxAnalogValue</field><value name=\"VALUE\"><block type=\"math_number\" id=\"]qt(X|S@#-SGK:axQJ9h\"><field name=\"NUM\">300</field></block></value><next><block type=\"variables_set\" id=\"NrsL_3`2ZSclF!=Aups5\"><field name=\"VAR\" id=\"q6X+=/(7LiNNc|Bl*g3U\">MaxDigitalValue</field><value name=\"VALUE\"><block type=\"math_number\" id=\"Q(#gF1*zt2cvW6X`7fs%\"><field name=\"NUM\">2</field></block></value><next><block type=\"image_set_image\" id=\"PL6+kE1lm3W`cTT`*Z:I\"><field name=\"COMPONENT\">image0</field><field name=\"IMAGE\">Hightemp.png</field><next><block type=\"image_set_image\" id=\"Wj0I7K#Sgj%BA%A+GDQv\"><field name=\"COMPONENT\">image1</field><field name=\"IMAGE\">coolTemp.png</field><next><block type=\"image_set_image\" id=\"a(A1zM+Q}Xn)/Mn%Ady+\"><field name=\"COMPONENT\">image2</field><field name=\"IMAGE\">intru120px.jpg</field><next><block type=\"label_set_text\" id=\"t305D*fga4O7|u]Z%{CT\"><field name=\"COMPONENT\">label4</field><value name=\"TEXT\"><shadow type=\"text\" id=\"Jh8pT5]]`=P{xVTA2JC$\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"dht12_get_temperature\" id=\"@O7*RXp!PkpKRW2c)?%T\"><field name=\"VARNAME\">env2_3</field></block></value><next><block type=\"label_set_text\" id=\"u;K^1[nzO]9iXz8W.Fou\"><field name=\"COMPONENT\">label5</field><value name=\"TEXT\"><shadow type=\"text\" id=\";EXJwX3q[k-Z6|mAGSYA\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"dht12_get_humidity\" id=\"|UdUCc~+KQf*n)CZdY%u\"><field name=\"VARNAME\">env2_3</field></block></value><next><block type=\"label_set_mode\" id=\";1LANeqWhP7fySW!f8Sr\"><field name=\"COMPONENT\">label2</field><field name=\"MODE\">True</field><next><block type=\"image_hide\" id=\"7Z/u$hn7L+dX,k=UyW,~\"><field name=\"COMPONENT\">image2</field><next><block type=\"basic_on_loop\" id=\"J[l{bQV+`(5)Lq-|wY,d\"><statement name=\"LOOP\"><block type=\"controls_ifelse\" id=\"((HgiDCGuTPY)N1s7^c.\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"Kg.I].CD?mJB$vfP*~TO\"><field name=\"OP\">GTE</field><value name=\"A\"><block type=\"dht12_get_temperature\" id=\"!2i/ik1i=3:kIq(]Xh%s\"><field name=\"VARNAME\">env2_3</field></block></value><value name=\"B\"><block type=\"variables_get\" id=\"1eti9AnXpIEP%K4/NQ`;\"><field name=\"VAR\" id=\"F@(NK~u/IK3NgxNE3rqz\">Temperature</field></block></value></block></value><statement name=\"DO0\"><block type=\"label_set_text\" id=\"aFM_i*!*+N6-C;z3E+B2\"><field name=\"COMPONENT\">label4</field><value name=\"TEXT\"><shadow type=\"text\" id=\"^^!*LpbB%j],jooCNqBA\" disabled=\"true\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"dht12_get_temperature\" id=\"8*Y~0t9f4FRVMk`lmMy8\"><field name=\"VARNAME\">env2_3</field></block></value><next><block type=\"rgb_set_all\" id=\"!ZvrK5Q;MVOD$}kS4Zx{\"><field name=\"COLOR\">#ff9900</field><next><block type=\"image_show\" id=\"PsY^SCw~07!iElwR0|BT\"><field name=\"COMPONENT\">image0</field><next><block type=\"image_hide\" id=\"gG/q[A[Yf2+CJ1gY2AH$\"><field name=\"COMPONENT\">image1</field><next><block type=\"image_hide\" id=\"J4CGY#LxXO~2D%qzaOG0\"><field name=\"COMPONENT\">image2</field><next><block type=\"label_set_mode\" id=\"m8r6Ns3r`VA`UMh-uRK{\"><field name=\"COMPONENT\">label2</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"y%X;V~x7w!A=0,5g[c9;\"><field name=\"COMPONENT\">label3</field><field name=\"MODE\">False</field><next><block type=\"speaker_tone\" id=\"PzdY-+[Tny;{@+wLkp:E\"><value name=\"FREQ\"><shadow type=\"math_number\" id=\"QK+xeC4@)B}VyS+}Bgm3\"><field name=\"NUM\">2000</field></shadow></value><value name=\"TIMEOUT\"><shadow type=\"math_number\" id=\"pu3%moAi%@F8e#P/|){8\"><field name=\"NUM\">0</field></shadow></value><next><block type=\"speaker_vol\" id=\"B)DOZ7p1sUO%_s_L[,Mj\"><value name=\"VOLUME\"><shadow type=\"math_number\" id=\"L.v6plYX4T|z2flck?ae\"><field name=\"NUM\">5</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"rgb_set_all\" id=\"g+/D?~_IvW7$;@2_1CN|\"><field name=\"COLOR\">#33ccff</field><next><block type=\"image_show\" id=\"1l%X]-Jjh*todU^ohdXb\"><field name=\"COMPONENT\">image1</field><next><block type=\"image_hide\" id=\"j/`qeNkU)7@9zrzd0@U/\"><field name=\"COMPONENT\">image0</field><next><block type=\"image_hide\" id=\"_Ygh]Ry-_taK%cPg6Qx4\"><field name=\"COMPONENT\">image2</field><next><block type=\"label_set_mode\" id=\"PBQ1dSPmjPY9Z`M;+z0$\"><field name=\"COMPONENT\">label2</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"cv.-D1oTjD)b4KW#g/ym\"><field name=\"COMPONENT\">label3</field><field name=\"MODE\">True</field></block></next></block></next></block></next></block></next></block></next></block></statement><next><block type=\"controls_if\" id=\"n^O~9STdkyb~P{mT{pgV\"><value name=\"IF0\"><block type=\"logic_compare\" id=\".YoSS=JF/5gU]]wIuxYT\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"pir_read\" id=\"/Xi?G8q3d@9#BS?vQBOH\"><field name=\"VARNAME\">pir_2</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"u}cYEf?m;YLI@vxHt3UF\"><field name=\"NUM\">1</field></block></value></block></value><statement name=\"DO0\"><block type=\"label_set_mode\" id=\"=VKUYUp[~{_.1xdD)f|S\"><field name=\"COMPONENT\">label2</field><field name=\"MODE\">False</field><next><block type=\"image_hide\" id=\"~X?CMB?dd@%Q$d%,cD`q\"><field name=\"COMPONENT\">image1</field><next><block type=\"image_hide\" id=\"1f#2uN_iG,8,F4xe|q`K\"><field name=\"COMPONENT\">image0</field><next><block type=\"image_show\" id=\",N}P49BA@DK7n@.I5a?E\"><field name=\"COMPONENT\">image2</field><next><block type=\"rgb_set_all\" id=\"}d!PmW#u~8{j-{`W1j6)\"><field name=\"COLOR\">#ff0000</field><next><block type=\"speaker_tone\" id=\"C)GyR.UX+m%4K:%`l-Ul\"><value name=\"FREQ\"><shadow type=\"math_number\" id=\";P+xJJ4uNGA?w3_?Sf=:\"><field name=\"NUM\">1000</field></shadow></value><value name=\"TIMEOUT\"><shadow type=\"math_number\" id=\"NP3m]w%fa2O2MmrY+CUV\"><field name=\"NUM\">1000</field></shadow></value><next><block type=\"speaker_vol\" id=\"9iTP5P=sUgf0r@UKw9nJ\"><value name=\"VOLUME\"><shadow type=\"math_number\" id=\"Tf;=P.sJD5K1,livnMXZ\"><field name=\"NUM\">1</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block>","Blockly.Remotes":[],"Blockly.RemotePlus":[{"id":"__title","blockId":"","createTime":1675394452524,"name":"M5RemoteTitle","dragAndDrop":false,"resizable":false,"options":{"minWidth":1,"minHeight":1,"maxWidth":6,"maxHeight":10,"defaultWidth":2,"defaultHeight":1},"w":2,"h":1,"bgColor":"#0080FF","color":"#fff","fontsize":"M","label":"M5Remote","interval":3000,"code":"","event":"","dataSource":"none","ezdataToken":"","topic":"","needShadow":false,"type":"title","x":0,"y":0}],"modules":["rgb"],"cbIdList_":[],"eventCBIdList_":[]}

The 2nd M5Stack

Python
{"components":[{"id":"____screen","createTime":1667527164315,"name":"screen","x":0,"y":0,"width":320,"height":240,"backgroundColor":"#222222","backgroundImage":"","type":"screen"},{"id":"____buttonA","createTime":1667527164315,"name":"ButtonA","buttonIndex":0,"x":35,"y":216,"width":64,"height":24,"text":"ButtonA","visibility":false,"type":"button"},{"id":"____buttonB","createTime":1667527164315,"name":"ButtonB","buttonIndex":1,"x":125,"y":216,"width":64,"height":24,"text":"ButtonB","visibility":false,"type":"button"},{"id":"____buttonC","createTime":1667527164315,"name":"ButtonC","buttonIndex":2,"x":215,"y":216,"width":64,"height":24,"text":"ButtonC","visibility":false,"type":"button"},{"id":"%_EdNjcrsmve!xXQ","createTime":1674184796940,"isCoreTwo":false,"isPaper":false,"name":"label4","x":224,"y":96,"color":"#FFFFFF","text":"Text","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":25},{"id":"4%$bk0BcB%51$dk@","createTime":1674184819027,"isCoreTwo":false,"isPaper":false,"name":"label6","x":224,"y":157,"color":"#FFFFFF","text":"Text","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":26},{"id":"1m$5UljR6_YuldHm","createTime":1674186670584,"isCoreTwo":false,"isPaper":false,"name":"label2","x":13,"y":52,"color":"#ff0000","text":"CRITICAL VALUE EXCEEDED!!","font":"lcd.FONT_DejaVu18","rotation":0,"type":"label","layer":28},{"id":"njbJD7^7bOmKi$mR","createTime":1674283995147,"isCoreTwo":false,"isPaper":false,"name":"label3","x":40,"y":96,"color":"#FFFFFF","text":"Analog Value","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":45},{"id":"6%&-cAwzr0OyG!Dh","createTime":1674283998076,"isCoreTwo":false,"isPaper":false,"name":"label5","x":40,"y":157,"color":"#FFFFFF","text":"Digital Value","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":46},{"id":"o19JFRf9LK%1#8sG","createTime":1674284076564,"isCoreTwo":false,"isPaper":false,"name":"label1","x":0,"y":0,"color":"#FFFFFF","text":"Soil Moisture Value:","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":47}],"type":"fire","versions":"Beta","units":[{"id":"0QJTFSwgrUMgZgQ1","createTime":1675994776097,"stickType":"stick","type":"earth","name":"earth_2","port":"B","default":["B","D","Custom"],"user_port":["21","22"],"icon":"earth.png"},{"id":"^$ui`5aFNj7xtWNw","createTime":1675994776097,"type":"servo","name":"servo_7","port":"A","default":["A","B","E","Custom"],"user_port":["21","22"],"icon":"servo.png"}],"hats":[],"blockly":"<variables><variable id=\"(NrGcxvZQHuEe:rmyD|C\">MaxAnalogValue</variable><variable id=\"q6X+=/(7LiNNc|Bl*g3U\">MaxDigitalValue</variable></variables><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"-110\" y=\"230\"><next><block type=\"variables_set\" id=\"|{K*nii)Bc#%0tBNPFAI\"><field name=\"VAR\" id=\"(NrGcxvZQHuEe:rmyD|C\">MaxAnalogValue</field><value name=\"VALUE\"><block type=\"math_number\" id=\"]qt(X|S@#-SGK:axQJ9h\"><field name=\"NUM\">700</field></block></value><next><block type=\"variables_set\" id=\"NrsL_3`2ZSclF!=Aups5\"><field name=\"VAR\" id=\"q6X+=/(7LiNNc|Bl*g3U\">MaxDigitalValue</field><value name=\"VALUE\"><block type=\"math_number\" id=\"Q(#gF1*zt2cvW6X`7fs%\"><field name=\"NUM\">2</field></block></value><next><block type=\"servo_init\" id=\"C`N=,NCBbd;-g3iY5ZRV\"><field name=\"VARNAME\">servo7</field><value name=\"PIN\"><shadow type=\"math_number\" id=\"o9+CAw3e-eov%w$GJf0E\"><field name=\"NUM\">21</field></shadow></value><value name=\"FREQ\"><shadow type=\"math_number\" id=\"e`c?ZdfIVqA4z5=u,RF%\"><field name=\"NUM\">50</field></shadow></value><value name=\"MIN_US\"><shadow type=\"math_number\" id=\".j[8qv8rYFUFd#O(_K14\"><field name=\"NUM\">500</field></shadow></value><value name=\"MAX_US\"><shadow type=\"math_number\" id=\"/gWe:.n98.1IOIlT_@/T\"><field name=\"NUM\">2500</field></shadow></value><value name=\"ANGLE\"><shadow type=\"math_number\" id=\"xDFuoBP,7!Xc*Ny=:QIz\"><field name=\"NUM\">180</field></shadow></value><next><block type=\"servo_unit_write_angle\" id=\"ku@l|t2!*C9y$Rc8+FSh\"><field name=\"VARNAME\">servo_7</field><value name=\"ANGLE\"><shadow type=\"math_number\" id=\"M!52(xDT*.d#R]QgKO@z\"><field name=\"NUM\">0</field></shadow></value><next><block type=\"label_set_text\" id=\"h^3B0{gpo?Lb(}80kPk3\"><field name=\"COMPONENT\">label4</field><value name=\"TEXT\"><shadow type=\"text\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"earth_a_read\" id=\"[]OWUZg8I7s/1X}}irdY\"><field name=\"VARNAME\">earth_2</field></block></value><next><block type=\"label_set_text\" id=\"~BPl}U_t^Sz5iB=WzAY[\"><field name=\"COMPONENT\">label6</field><value name=\"TEXT\"><shadow type=\"text\" id=\"3nGqbh/e^LSvkQS~O+M[\" disabled=\"true\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"earth_d_read\" id=\"GB2aK_S]IG*pdFoeFWj%\"><field name=\"VARNAME\">earth_2</field></block></value><next><block type=\"label_set_mode\" id=\"4qy7;Wf~:lf^;{/^valw\"><field name=\"COMPONENT\">label2</field><field name=\"MODE\">True</field><next><block type=\"basic_on_loop\" id=\"t;c0$gHhnlC=gWKjdWIN\"><statement name=\"LOOP\"><block type=\"controls_if\" id=\"#kd19H$O?Aks6H_bc?M6\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"$He0)Hr^5!QKA-OD9*:X\"><field name=\"OP\">GTE</field><value name=\"A\"><block type=\"earth_a_read\" id=\"@)K%}`4/:wz%L-J+wGK[\"><field name=\"VARNAME\">earth_2</field></block></value><value name=\"B\"><block type=\"variables_get\" id=\"y)5CG?#_@(@5+BMsftdW\"><field name=\"VAR\" id=\"(NrGcxvZQHuEe:rmyD|C\">MaxAnalogValue</field></block></value></block></value><statement name=\"DO0\"><block type=\"label_set_text\" id=\"qHO+9bA7q*Y;@h^E`.iv\"><field name=\"COMPONENT\">label4</field><value name=\"TEXT\"><shadow type=\"text\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"earth_a_read\" id=\"S_t)aOZ)3z:+1KzJY}v?\"><field name=\"VARNAME\">earth_2</field></block></value><next><block type=\"label_set_mode\" id=\"kct5d_,cagLqY$E^jju7\"><field name=\"COMPONENT\">label2</field><field name=\"MODE\">False</field><next><block type=\"speaker_tone\" id=\"Pov_/P=OLM0`|As:`gRp\"><value name=\"FREQ\"><shadow type=\"math_number\" id=\"S2yaw0LUPZ},]Y/f[6Vz\"><field name=\"NUM\">1800</field></shadow></value><value name=\"TIMEOUT\"><shadow type=\"math_number\" id=\"/z=9ba4}gHxi4d}[]3)F\"><field name=\"NUM\">200</field></shadow></value><next><block type=\"speaker_vol\" id=\"K8xH8sMClNeGyGV?!@fJ\"><value name=\"VOLUME\"><shadow type=\"math_number\" id=\"zscv/n$}3yPIEdz^7PH8\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"timer_delay\" id=\"PxymR*)6p%2),A.t(Um#\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"hQvJnvTKNf0|mhCP5AB%\"><field name=\"NUM\">10</field></shadow></value><next><block type=\"servo_init\" id=\"c?T2RdEc1-Tl3Do[+C8[\"><field name=\"VARNAME\">servo7</field><value name=\"PIN\"><shadow type=\"math_number\" id=\"OP_+y@{~*Q;h~R~licmq\"><field name=\"NUM\">21</field></shadow></value><value name=\"FREQ\"><shadow type=\"math_number\" id=\"[Y]2Zy9U[Hwx1l^7~PpP\"><field name=\"NUM\">50</field></shadow></value><value name=\"MIN_US\"><shadow type=\"math_number\" id=\"Fxld9JD)5ZgwqPP+GdKt\"><field name=\"NUM\">500</field></shadow></value><value name=\"MAX_US\"><shadow type=\"math_number\" id=\"fG7o:[mLNEAk-OC{TM}v\"><field name=\"NUM\">2500</field></shadow></value><value name=\"ANGLE\"><shadow type=\"math_number\" id=\"8IJ@OEMrN]rXm8lD/BB.\"><field name=\"NUM\">180</field></shadow></value><next><block type=\"servo_unit_write_angle\" id=\"0:MHj7bRTS:Qpup5oQKt\"><field name=\"VARNAME\">servo_7</field><value name=\"ANGLE\"><shadow type=\"math_number\" id=\"$AE%Htl1lF7vmmZvm^S[\"><field name=\"NUM\">180</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></statement><next><block type=\"controls_if\" id=\"[_3Q%3#erao}dEM9C@Lt\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"ke)]GGin5}JJV$R]ud[B\"><field name=\"OP\">GTE</field><value name=\"A\"><block type=\"earth_d_read\" id=\"X$k0b-UW(.{!m=n*XHab\"><field name=\"VARNAME\">earth_2</field></block></value><value name=\"B\"><block type=\"variables_get\" id=\"9?edy3`x)5`:,rUw$=V~\"><field name=\"VAR\" id=\"q6X+=/(7LiNNc|Bl*g3U\">MaxDigitalValue</field></block></value></block></value><statement name=\"DO0\"><block type=\"label_set_text\" id=\"[!PKJi{MO#u.KexuE/OQ\"><field name=\"COMPONENT\">label6</field><value name=\"TEXT\"><shadow type=\"text\" disabled=\"true\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"earth_d_read\" id=\"Min_}auAT-n|yBT9AlM]\"><field name=\"VARNAME\">earth_2</field></block></value><next><block type=\"label_set_mode\" id=\"P%Y$/gFAi6XMH,x^0~}8\"><field name=\"COMPONENT\">label2</field><field name=\"MODE\">False</field><next><block type=\"speaker_tone\" id=\";L74a9Z02er%$:^gE#JI\"><value name=\"FREQ\"><shadow type=\"math_number\" id=\"vX|X;=7=LB0xy0qF]8Zb\"><field name=\"NUM\">1800</field></shadow></value><value name=\"TIMEOUT\"><shadow type=\"math_number\" id=\"u~/_Pv2kYlYXO^e^#r@K\"><field name=\"NUM\">200</field></shadow></value><next><block type=\"speaker_vol\" id=\"pikpO[k52E^w=aK4-yxX\"><value name=\"VOLUME\"><shadow type=\"math_number\" id=\"e5fk!Q_C).5m_L~uE|CC\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"timer_delay\" id=\"ppdYS!85R#Y#V{Qq84~3\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"XYw+r@FW!nau2u}$I)Vm\"><field name=\"NUM\">10</field></shadow></value><next><block type=\"servo_init\" id=\"+4IP3!+Wwyr{}*R3od!e\"><field name=\"VARNAME\">servo7</field><value name=\"PIN\"><shadow type=\"math_number\" id=\"p|q/G_VV-,g((obXB/cU\"><field name=\"NUM\">21</field></shadow></value><value name=\"FREQ\"><shadow type=\"math_number\" id=\"@z3_*}{1cj#OyS5;dXJq\"><field name=\"NUM\">50</field></shadow></value><value name=\"MIN_US\"><shadow type=\"math_number\" id=\"`OCw2Inc}tg0Rm1jhenY\"><field name=\"NUM\">500</field></shadow></value><value name=\"MAX_US\"><shadow type=\"math_number\" id=\"1e#~#W;+x6HCJieM?2:*\"><field name=\"NUM\">2500</field></shadow></value><value name=\"ANGLE\"><shadow type=\"math_number\" id=\"DXO{:t0^}|P.$V;C%+TQ\"><field name=\"NUM\">180</field></shadow></value><next><block type=\"servo_unit_write_angle\" id=\"Wed4,bwl9Z~:XR_u@H=c\"><field name=\"VARNAME\">servo_7</field><value name=\"ANGLE\"><shadow type=\"math_number\" id=\"kxe/7-xk3.*w50r`w-6Q\"><field name=\"NUM\">180</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block><block type=\"button_callback\" id=\"SULY!wW0adbryROKDOpR\" x=\"690\" y=\"250\"><field name=\"BUTTON\">B</field><field name=\"EVENT\">wasPressed</field><statement name=\"FUNC\"><block type=\"servo_init\" id=\"yx-bPIt9IS|=WTx?vLMz\"><field name=\"VARNAME\">servo7</field><value name=\"PIN\"><shadow type=\"math_number\" id=\"HokS21?;jAbDm)Mthz12\"><field name=\"NUM\">21</field></shadow></value><value name=\"FREQ\"><shadow type=\"math_number\" id=\"vY8A=e+L-`;RZ382qMJ2\"><field name=\"NUM\">50</field></shadow></value><value name=\"MIN_US\"><shadow type=\"math_number\" id=\")9#8TT8gdJCEbXh)qE6v\"><field name=\"NUM\">500</field></shadow></value><value name=\"MAX_US\"><shadow type=\"math_number\" id=\"ieEQHw%GyWFAOldPXY=j\"><field name=\"NUM\">2500</field></shadow></value><value name=\"ANGLE\"><shadow type=\"math_number\" id=\"^t=wA,6^Xwi+r7d8[Ikn\"><field name=\"NUM\">180</field></shadow></value><next><block type=\"servo_unit_write_angle\" id=\"`z9_-urc#]^TRU0/i|`k\"><field name=\"VARNAME\">servo_7</field><value name=\"ANGLE\"><shadow type=\"math_number\" id=\"`HNGD7@XQ,lJe(WYg-hD\"><field name=\"NUM\">0</field></shadow></value></block></next></block></statement></block><block type=\"speaker_vol\" id=\"-7pXH$U38g?2zF)q%#qA\" disabled=\"true\" x=\"1790\" y=\"250\"><value name=\"VOLUME\"><shadow type=\"math_number\" id=\"@;Ky_.4d6m@]b5H%fKIx\" disabled=\"true\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"speaker_sing\" id=\"]nL{N566{7bGUh0v3}}_\" disabled=\"true\"><field name=\"TONE\">262</field><field name=\"BEAT\">1</field><next><block type=\"speaker_sing\" id=\"s1Lx0F7X3bz,Oo:`{/Z5\" disabled=\"true\"><field name=\"TONE\">330</field><field name=\"BEAT\">1</field><next><block type=\"speaker_sing\" id=\"zJ|gvJ:Iqag|-Gln:Lfq\" disabled=\"true\"><field name=\"TONE\">392</field><field name=\"BEAT\">1</field><next><block type=\"speaker_sing\" id=\"yf}+k|3x1(:)l2~aywx#\" disabled=\"true\"><field name=\"TONE\">392</field><field name=\"BEAT\">1</field><next><block type=\"timer_delay\" id=\"I,A1Jf31bo}J8QmsiZYV\" disabled=\"true\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"Q*zYp)]aGOy@aV11Xo0#\" disabled=\"true\"><field name=\"NUM\">0.1</field></shadow></value><next><block type=\"controls_repeat\" id=\"U1q(,7$R-v}o[(bgk.C!\" disabled=\"true\"><field name=\"TIMES\">2</field><statement name=\"DO\"><block type=\"speaker_sing\" id=\"-j-h[x3y%)%c`P1y`%rG\" disabled=\"true\"><field name=\"TONE\">784</field><field name=\"BEAT\">1</field><next><block type=\"timer_delay\" id=\"yL;m)Lt#+0.!}7sSHM[I\" disabled=\"true\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"Hc2:?4Z:|S~`mEh~o%q8\" disabled=\"true\"><field name=\"NUM\">0.07</field></shadow></value></block></next></block></statement><next><block type=\"timer_delay\" id=\"(+[ij9TS!UPXrg5#EoFu\" disabled=\"true\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"_YqVcgVaQDj;)dMtO174\" disabled=\"true\"><field name=\"NUM\">0.1</field></shadow></value><next><block type=\"controls_repeat\" id=\"AbfrXG|?MW;F@UQgx~i5\" disabled=\"true\"><field name=\"TIMES\">2</field><statement name=\"DO\"><block type=\"speaker_sing\" id=\"6l[PSQ;-oIZbNpFX=/R5\" disabled=\"true\"><field name=\"TONE\">659</field><field name=\"BEAT\">1</field><next><block type=\"timer_delay\" id=\"NR~0btliixu-]FL*pD`y\" disabled=\"true\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"5LwEhE:I6DN^)?oD:^rI\" disabled=\"true\"><field name=\"NUM\">0.07</field></shadow></value></block></next></block></statement><next><block type=\"timer_delay\" id=\"(#U|Z,eXKpg)L:9Y^jCu\" disabled=\"true\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"{XZqjpWvL6W;Sj{W-O1m\" disabled=\"true\"><field name=\"NUM\">0.1</field></shadow></value><next><block type=\"speaker_sing\" id=\"g*z#w+{OeO?/mI8fLiYb\" disabled=\"true\"><field name=\"TONE\">262</field><field name=\"BEAT\">1</field><next><block type=\"speaker_sing\" id=\"imN[W`x^::{$BNU5!JMM\" disabled=\"true\"><field name=\"TONE\">262</field><field name=\"BEAT\">1</field><next><block type=\"speaker_sing\" id=\"R7oWMq8xf:v`Jon`k1M8\" disabled=\"true\"><field name=\"TONE\">330</field><field name=\"BEAT\">1</field><next><block type=\"speaker_sing\" id=\"48.*g]*7NTKiz;#kCIa[\" disabled=\"true\"><field name=\"TONE\">392</field><field name=\"BEAT\">1</field><next><block type=\"speaker_sing\" id=\"w)[ap)x^C-t-gvn+$I?B\" disabled=\"true\"><field name=\"TONE\">349</field><field name=\"BEAT\">1</field><next><block type=\"timer_delay\" id=\"./rL7[2SGJ[A_wsVseyp\" disabled=\"true\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"Mmq8~c4WLkX]4h7JU`9:\" disabled=\"true\"><field name=\"NUM\">0.1</field></shadow></value><next><block type=\"controls_repeat\" id=\"a:?Tvr=s+nC%aTv_LMB`\" disabled=\"true\"><field name=\"TIMES\">2</field><statement name=\"DO\"><block type=\"speaker_sing\" id=\"c[2=X9WZGxpJHM2j6.U/\" disabled=\"true\"><field name=\"TONE\">698</field><field name=\"BEAT\">1</field><next><block type=\"timer_delay\" id=\"*w$YV!nYov;xoxCrZ66f\" disabled=\"true\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"ARn6IJ(D.B`Zu6#gVAa;\" disabled=\"true\"><field name=\"NUM\">0.07</field></shadow></value></block></next></block></statement><next><block type=\"timer_delay\" id=\"H9_Bgf0^,eXK*ySyEAsv\" disabled=\"true\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"c2s-bH]*fnO.]$/Z^hdS\" disabled=\"true\"><field name=\"NUM\">0.1</field></shadow></value><next><block type=\"controls_repeat\" id=\"n7QT-w4uUsHbTXJ{@BXB\" disabled=\"true\"><field name=\"TIMES\">2</field><statement name=\"DO\"><block type=\"speaker_sing\" id=\"*}pa$!9uFK^VA_`PBN|8\" disabled=\"true\"><field name=\"TONE\">349</field><field name=\"BEAT\">1</field><next><block type=\"timer_delay\" id=\"xUGrAC|2fgNt{^*aR7y9\" disabled=\"true\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"fQLv7pi*gkuHfcxnODuG\" disabled=\"true\"><field name=\"NUM\">0.07</field></shadow></value></block></next></block></statement><next><block type=\"timer_delay\" id=\"({^@sy@$J7uQ1j=~CCpS\" disabled=\"true\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"u1m)*Ac)P25u_W.D!c@C\" disabled=\"true\"><field name=\"NUM\">0.1</field></shadow></value><next><block type=\"speaker_sing\" id=\",Y*;rtEfF0H@vM1_l,;}\" disabled=\"true\"><field name=\"TONE\">247</field><field name=\"BEAT\">1</field><next><block type=\"speaker_sing\" id=\"T:x}tMcw{ycwINaf/Km3\" disabled=\"true\"><field name=\"TONE\">247</field><field name=\"BEAT\">1</field><next><block type=\"speaker_sing\" id=\"-joEK6BG,ZOC}1HCZ*cW\" disabled=\"true\"><field name=\"TONE\">294</field><field name=\"BEAT\">1</field><next><block type=\"speaker_sing\" id=\"c!L6X;t?~!hX_KX_lA[Q\" disabled=\"true\"><field name=\"TONE\">448</field><field name=\"BEAT\">1</field><next><block type=\"speaker_sing\" id=\"9eqA!%BJRgPzE18@jXc:\" disabled=\"true\"><field name=\"TONE\">448</field><field name=\"BEAT\">1</field><next><block type=\"timer_delay\" id=\"-hf]__^~!l7i=vypBdNh\" disabled=\"true\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"h^)rAH9lJf{)p#c^!2H@\" disabled=\"true\"><field name=\"NUM\">0.1</field></shadow></value><next><block type=\"controls_repeat\" id=\"l5ikl(I]dUOB`ZgKj[jl\" disabled=\"true\"><field name=\"TIMES\">2</field><statement name=\"DO\"><block type=\"speaker_sing\" id=\";N}/!wlj-idQw+O|+lxE\" disabled=\"true\"><field name=\"TONE\">587</field><field name=\"BEAT\">1</field><next><block type=\"timer_delay\" id=\"bST4b/2COR1jLf/c;w98\" disabled=\"true\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"}@!/$0C8]bRj/Y*WS@Pz\" disabled=\"true\"><field name=\"NUM\">0.07</field></shadow></value></block></next></block></statement><next><block type=\"controls_repeat\" id=\"XR=oo8zhp(8[6xDKonp*\" disabled=\"true\"><field name=\"TIMES\">2</field><statement name=\"DO\"><block type=\"speaker_sing\" id=\"+$2aaux=|ZBpRW4mgoU)\" disabled=\"true\"><field name=\"TONE\">392</field><field name=\"BEAT\">1</field><next><block type=\"timer_delay\" id=\"N#^W7R8rOVWbV+OZnZTE\" disabled=\"true\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"jCMRd7X-%/h)/;l_.Qu0\" disabled=\"true\"><field name=\"NUM\">0.07</field></shadow></value></block></next></block></statement><next><block type=\"timer_delay\" id=\"Q(QtMDStP30Zm@Y~a5c(\" disabled=\"true\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"{i@w?e:n4D:{E7oq5`Z)\" disabled=\"true\"><field name=\"NUM\">0.1</field></shadow></value><next><block type=\"speaker_sing\" id=\"POy8,8U++zx(rbbjwS$u\" disabled=\"true\"><field name=\"TONE\">247</field><field name=\"BEAT\">1</field><next><block type=\"speaker_sing\" id=\"gR9(DW2R{}m??Y*hYst5\" disabled=\"true\"><field name=\"TONE\">247</field><field name=\"BEAT\">1</field><next><block type=\"speaker_sing\" id=\"r*}uDLcNi^o:d}bmV?_s\" disabled=\"true\"><field name=\"TONE\">294</field><field name=\"BEAT\">1</field><next><block type=\"speaker_sing\" id=\"}DXw;.|^}tYWg6~[|rX@\" disabled=\"true\"><field name=\"TONE\">448</field><field name=\"BEAT\">1</field><next><block type=\"speaker_sing\" id=\"_W6T:jBwz?h25ZNr`;h5\" disabled=\"true\"><field name=\"TONE\">448</field><field name=\"BEAT\">1</field><next><block type=\"timer_delay\" id=\"4icWcv%c[UHxxeBs5/|9\" disabled=\"true\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"!wy_VkCr-cI:yq@Jk;rY\" disabled=\"true\"><field name=\"NUM\">0.1</field></shadow></value><next><block type=\"controls_repeat\" id=\"@YPLu?_cvG2jE(8Fv1Cc\" disabled=\"true\"><field name=\"TIMES\">2</field><statement name=\"DO\"><block type=\"speaker_sing\" id=\"U3H,CxCorIwB)85R#ZGc\" disabled=\"true\"><field name=\"TONE\">659</field><field name=\"BEAT\">1</field><next><block type=\"timer_delay\" id=\"FwI~YyT.RH.G^|^r0-oe\" disabled=\"true\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\".fdT6bIK`Vht-Lk@p-Lv\" disabled=\"true\"><field name=\"NUM\">0.07</field></shadow></value></block></next></block></statement><next><block type=\"timer_delay\" id=\"LByj*j4(.93L8gU*-?@`\" disabled=\"true\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\":,|jA[.y6QTc4E@H^fta\" disabled=\"true\"><field name=\"NUM\">0.1</field></shadow></value><next><block type=\"controls_repeat\" id=\"lsk4lJiS(^wDNNu6YShr\" disabled=\"true\"><field name=\"TIMES\">2</field><statement name=\"DO\"><block type=\"speaker_sing\" id=\"0)sZKn}XVq:0s/cTiK]@\" disabled=\"true\"><field name=\"TONE\">523</field><field name=\"BEAT\">1</field><next><block type=\"timer_delay\" id=\"sX^F7(*tTdSsLf:2h@M0\" disabled=\"true\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"$mD#WIvoLru~IaE,R4qc\" disabled=\"true\"><field name=\"NUM\">0.07</field></shadow></value></block></next></block></statement></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></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block><block type=\"button_callback\" id=\"4RHk]!fQA]Zcv2[/zP3*\" x=\"690\" y=\"410\"><field name=\"BUTTON\">C</field><field name=\"EVENT\">wasPressed</field><statement name=\"FUNC\"><block type=\"servo_init\" id=\"q6l%_z~Lq%XLLwxnpOdP\"><field name=\"VARNAME\">servo7</field><value name=\"PIN\"><shadow type=\"math_number\" id=\"{d~3-KD_,!EwrK71._AH\"><field name=\"NUM\">21</field></shadow></value><value name=\"FREQ\"><shadow type=\"math_number\" id=\"#YgE*u?6UI$*5pJl,p;o\"><field name=\"NUM\">50</field></shadow></value><value name=\"MIN_US\"><shadow type=\"math_number\" id=\"5RvFfc_on4GiH1*jaN/[\"><field name=\"NUM\">500</field></shadow></value><value name=\"MAX_US\"><shadow type=\"math_number\" id=\"{|Z8.^%A~8?ituspKj#a\"><field name=\"NUM\">2500</field></shadow></value><value name=\"ANGLE\"><shadow type=\"math_number\" id=\"*+]STBt(JVY9r=L2Z|/i\"><field name=\"NUM\">180</field></shadow></value><next><block type=\"servo_unit_write_angle\" id=\"$|/;AnF(^AHE)w!Vw%^+\"><field name=\"VARNAME\">servo_7</field><value name=\"ANGLE\"><shadow type=\"math_number\" id=\"=.k:MaUcS}ShW7zil2:4\"><field name=\"NUM\">180</field></shadow></value></block></next></block></statement></block><block type=\"button_callback\" id=\"/6hF#fSIr},Kq)${}-~p\" x=\"690\" y=\"570\"><field name=\"BUTTON\">A</field><field name=\"EVENT\">wasPressed</field><statement name=\"FUNC\"><block type=\"speaker_vol\" id=\"eP[?O+mCV6D#?qZg/S1I\"><value name=\"VOLUME\"><shadow type=\"math_number\" id=\"-UF)xQ4rW%9XyfoPrV{+\"><field name=\"NUM\">0.2</field></shadow></value><next><block type=\"controls_repeat\" id=\"9brOV;/|VA:LxP%8.B$M\"><field name=\"TIMES\">2</field><statement name=\"DO\"><block type=\"speaker_sing\" id=\"0n!l[W8XZ9(!h2g!o@sN\"><field name=\"TONE\">262</field><field name=\"BEAT\">1</field><next><block type=\"speaker_sing\" id=\"i3-jrb=OL|h:kG7jv58=\"><field name=\"TONE\">294</field><field name=\"BEAT\">1</field><next><block type=\"speaker_sing\" id=\"N3;4_G9XF}g3e+TaYKWK\"><field name=\"TONE\">330</field><field name=\"BEAT\">1</field><next><block type=\"speaker_sing\" id=\"2:$1,[WVk0Sjp..@H(.R\"><field name=\"TONE\">262</field><field name=\"BEAT\">1</field></block></next></block></next></block></next></block></statement><next><block type=\"timer_delay\" id=\"L=%Q)#E[eR/XP_M2U4k{\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"$qWOwQ?WNKzNUZ+dg?{@\"><field name=\"NUM\">0.07</field></shadow></value><next><block type=\"controls_repeat\" id=\"Yl116iW#ag%i15PHx8^A\"><field name=\"TIMES\">2</field><statement name=\"DO\"><block type=\"speaker_sing\" id=\"8aDNoB}~-c!Br/,cNGIv\"><field name=\"TONE\">330</field><field name=\"BEAT\">1</field><next><block type=\"speaker_sing\" id=\"Nc_wIN2JeFh)qL!m05i!\"><field name=\"TONE\">349</field><field name=\"BEAT\">1</field><next><block type=\"speaker_sing\" id=\"i|qyy`5xO;z}HSq{zG@Z\"><field name=\"TONE\">392</field><field name=\"BEAT\">1</field></block></next></block></next></block></statement></block></next></block></next></block></next></block></statement></block>","Blockly.Remotes":[],"Blockly.RemotePlus":[{"id":"__title","blockId":"","createTime":1675994776097,"name":"M5RemoteTitle","dragAndDrop":false,"resizable":false,"options":{"minWidth":1,"minHeight":1,"maxWidth":6,"maxHeight":10,"defaultWidth":2,"defaultHeight":1},"w":2,"h":1,"bgColor":"#0080FF","color":"#fff","fontsize":"M","label":"M5Remote","interval":3000,"code":"","event":"","dataSource":"none","ezdataToken":"","topic":"","needShadow":false,"type":"title","x":0,"y":0}],"modules":["rgb"],"cbIdList_":[],"eventCBIdList_":[]}

Credits

Angel Zhang

Angel Zhang

1 project • 0 followers
geraldine5

geraldine5

1 project • 0 followers
shaayyne_lim

shaayyne_lim

1 project • 0 followers
Shen Yao

Shen Yao

1 project • 0 followers

Comments

Add projectSign up / Login