shang xian leeYu Feiyang
Published

Sustainable technology in urban farming

We are creating a device to track the status of crops and plants as there are a lack of farmers to irrigate the crops and plants in farming.

BeginnerWork in progress9 hours15
Sustainable technology in urban farming

Things used in this project

Story

Read more

Schematics

m5stack setup

flowchart

Code

Automate irrigation device

Python
{"components":[{"id":"____screen","createTime":1706183022662,"name":"screen","x":0,"y":0,"width":320,"height":240,"backgroundColor":"#222222","backgroundImage":"","type":"screen"},{"id":"____buttonA","createTime":1706183022662,"name":"ButtonA","buttonIndex":0,"x":35,"y":216,"width":64,"height":24,"text":"ButtonA","visibility":false,"type":"button"},{"id":"____buttonB","createTime":1706183022662,"name":"ButtonB","buttonIndex":1,"x":125,"y":216,"width":64,"height":24,"text":"ButtonB","visibility":false,"type":"button"},{"id":"____buttonC","createTime":1706183022662,"name":"ButtonC","buttonIndex":2,"x":215,"y":216,"width":64,"height":24,"text":"ButtonC","visibility":false,"type":"button"},{"id":"5ao^GVlK1YibW9^c","createTime":1706183779432,"isCoreTwo":false,"isPaper":false,"name":"label0","x":20,"y":204,"color":"#FFFFFF","text":"Text","font":"lcd.FONT_DejaVu24","rotation":0,"type":"label","layer":4},{"id":"RspI$b2Ah9df!C^A","createTime":1706183779432,"isCoreTwo":false,"isPaper":false,"name":"label1","x":20,"y":0,"color":"#ff0000","text":"Plant id:","font":"lcd.FONT_DejaVu40","rotation":0,"type":"label","layer":5},{"id":"NmeP$u+VpI*-EDEW","createTime":1707226908437,"isCoreTwo":false,"isPaper":false,"name":"label2","x":208,"y":204,"color":"#ff7800","text":"Distance","font":"lcd.FONT_DejaVu24","rotation":0,"type":"label","layer":8,"width":null,"height":null,"radius":null}],"type":"core","versions":"Beta","units":[{"id":"W8lAs2lus*O^SH6`","createTime":1707224910479,"type":"servo","name":"servo_3","port":"B","default":["A","B","C","E","Custom"],"user_port":["21","22"],"icon":"servo.png"},{"id":"-rEH2npPy1XUlNUM","createTime":1707224910479,"type":"pahub","name":"pahub_1","port":"A","default":["A","E","Custom"],"user_port":["21","22"],"icon":"pa_hub.png","new_port":"A","new_default":["A","E","Custom"]},{"id":"sg7lVdN6t-U^=j1A","createTime":1707224910479,"type":"rfid","name":"rfid_5","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":"sN++^yfdmACP-NJx","createTime":1707225799003,"type":"pbhub","name":"pbhub_1","port":"PAHUB","default":["A","E","PAHUB","Custom"],"pb_port":[0,1,2,3,4,5],"new_pb_port":"3","user_port":["21","22"],"icon":"pb_hub.png","new_port":"PAHUB","new_default":["A","E","PAHUB","Custom"]},{"id":"2c-%$bXLRDgb#5k$","createTime":1707227311796,"stickNone":"stick","type":"tof","name":"tof_1","port":"PAHUB","default":["A","E","PAHUB","Custom"],"pb_port":[0,1,2,3,4,5],"new_pb_port":"1","user_port":["21","22"],"icon":"tof.png"}],"hats":[],"blockly":"<variables><variable id=\"Zs(ml*2:2+%GFI5Y[8a|\">distance</variable></variables><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"112\" y=\"82\"><next><block type=\"basic_on_loop\" id=\"x-D#1]lP4=lgl|dA[cFS\"><statement name=\"LOOP\"><block type=\"variables_set\" id=\"CKl%_?p?k0oH]-JCXu3E\"><field name=\"VAR\" id=\"Zs(ml*2:2+%GFI5Y[8a|\">distance</field><value name=\"VALUE\"><block type=\"unit_tof_state\" id=\"7x~`_OSPoYQ]FdL{8%H0\"><field name=\"TOF\">tof_5</field></block></value><next><block type=\"label_set_text\" id=\"rgiy8[9T70zh7z#.e-tQ\"><field name=\"COMPONENT\">label0</field><value name=\"TEXT\"><shadow type=\"text\" id=\"Xt?gqsuc}rBqG;FIOl#B\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"pbhub_analogRead\" id=\"GQ/#m+OmFFb+SmIM%yS?\"><field name=\"VARNAME\">pbhub_1</field><value name=\"num\"><shadow type=\"math_number\" id=\"=0=^x^$KYb//j?9T6Wsw\"><field name=\"NUM\">0</field></shadow></value></block></value><next><block type=\"label_set_text\" id=\"2`x^Soe*R-Pz:*{hHi#n\"><field name=\"COMPONENT\">label1</field><value name=\"TEXT\"><shadow type=\"text\" id=\"I@tn#SV_$ld+4KnVbEKM\" disabled=\"true\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"rfid_uid\" id=\"+t?bFD}[H^]JagX2Y53z\"><field name=\"RFID\">rfid_5</field></block></value><next><block type=\"label_set_text\" id=\"xW*xti^!q`rHNHIY;7gQ\"><field name=\"COMPONENT\">label2</field><value name=\"TEXT\"><shadow type=\"text\" id=\"9+d`ycW0,~F0zRlppW?)\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"unit_tof_state\" id=\"|J.#K2r2;BCZfbRX*TDv\"><field name=\"TOF\">tof_5</field></block></value><next><block type=\"controls_if\" id=\"]thvV))UWZ[+p#-:8IWr\"><mutation elseif=\"2\"></mutation><value name=\"IF0\"><block type=\"logic_compare\" id=\"N6XVlp-.VOpZEbE6).XB\"><field name=\"OP\">GTE</field><value name=\"A\"><block type=\"pbhub_analogRead\" id=\"*mwQB|iufQLM{aAJj%!K\"><field name=\"VARNAME\">pbhub_1</field><value name=\"num\"><shadow type=\"math_number\" id=\"Obn$}NnO-zZ@]K1In2YM\"><field name=\"NUM\">0</field></shadow></value></block></value><value name=\"B\"><block type=\"math_number\" id=\"TQlKPUVd/kyC5Ebn7jEM\"><field name=\"NUM\">700</field></block></value></block></value><statement name=\"DO0\"><block type=\"emoji_show\" id=\"o7NL2$tJTx0@D234#,xa\"><field name=\"COLOR\">#ff0000</field><field name=\"MAP_0_0\">FALSE</field><field name=\"MAP_0_1\">FALSE</field><field name=\"MAP_0_2\">FALSE</field><field name=\"MAP_0_3\">FALSE</field><field name=\"MAP_0_4\">FALSE</field><field name=\"MAP_0_5\">FALSE</field><field name=\"MAP_0_6\">FALSE</field><field name=\"MAP_1_0\">FALSE</field><field name=\"MAP_1_1\">FALSE</field><field name=\"MAP_1_2\">TRUE</field><field name=\"MAP_1_3\">FALSE</field><field name=\"MAP_1_4\">TRUE</field><field name=\"MAP_1_5\">FALSE</field><field name=\"MAP_1_6\">FALSE</field><field name=\"MAP_2_0\">FALSE</field><field name=\"MAP_2_1\">FALSE</field><field name=\"MAP_2_2\">FALSE</field><field name=\"MAP_2_3\">FALSE</field><field name=\"MAP_2_4\">FALSE</field><field name=\"MAP_2_5\">FALSE</field><field name=\"MAP_2_6\">FALSE</field><field name=\"MAP_3_0\">FALSE</field><field name=\"MAP_3_1\">FALSE</field><field name=\"MAP_3_2\">TRUE</field><field name=\"MAP_3_3\">TRUE</field><field name=\"MAP_3_4\">TRUE</field><field name=\"MAP_3_5\">FALSE</field><field name=\"MAP_3_6\">FALSE</field><field name=\"MAP_4_0\">FALSE</field><field name=\"MAP_4_1\">TRUE</field><field name=\"MAP_4_2\">FALSE</field><field name=\"MAP_4_3\">FALSE</field><field name=\"MAP_4_4\">FALSE</field><field name=\"MAP_4_5\">TRUE</field><field name=\"MAP_4_6\">FALSE</field><field name=\"MAP_5_0\">TRUE</field><field name=\"MAP_5_1\">FALSE</field><field name=\"MAP_5_2\">FALSE</field><field name=\"MAP_5_3\">FALSE</field><field name=\"MAP_5_4\">FALSE</field><field name=\"MAP_5_5\">FALSE</field><field name=\"MAP_5_6\">TRUE</field><field name=\"MAP_6_0\">FALSE</field><field name=\"MAP_6_1\">FALSE</field><field name=\"MAP_6_2\">FALSE</field><field name=\"MAP_6_3\">FALSE</field><field name=\"MAP_6_4\">FALSE</field><field name=\"MAP_6_5\">FALSE</field><field name=\"MAP_6_6\">FALSE</field><next><block type=\"rgb_set_dir\" id=\"=:=!gI}c}]G}tajDjwUy\"><field name=\"DIR\">left</field><field name=\"COLOR\">#ff0000</field><next><block type=\"timer_delay_ms\" id=\"xI3!qwN+-%=6f11?,=o7\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\",#;xT6qmE2Thy|*MpU*p\"><field name=\"NUM\">200</field></shadow></value><next><block type=\"rgb_set_dir\" id=\"hu-}OL0.~0II(83T)k=_\"><field name=\"DIR\">right</field><field name=\"COLOR\">#ff0000</field><next><block type=\"rgb_set_dir\" id=\"u%CG{wcu=?)V_A[7p=q,\"><field name=\"DIR\">left</field><field name=\"COLOR\">#000000</field><next><block type=\"timer_delay_ms\" id=\"nz-7btYupAS9{#QaG/)/\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"15of;bk#PJG$B2eUVBx~\"><field name=\"NUM\">200</field></shadow></value><next><block type=\"rgb_set_dir\" id=\"=^F(l(bGN=nwCFB{J%6`\"><field name=\"DIR\">right</field><field name=\"COLOR\">#000000</field><next><block type=\"speaker_sing\" id=\"X.t-Mf@n`;U-F*1m{Ff,\"><field name=\"TONE\">523</field><field name=\"BEAT\">1</field><next><block type=\"speaker_sing\" id=\"V+L`8z3[VW6G.m~3D_T+\"><field name=\"TONE\">415</field><field name=\"BEAT\">1</field></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement><value name=\"IF1\"><block type=\"logic_operation\" id=\"mq%X6%e{fY)e-C@-ifvz\"><field name=\"OP\">AND</field><value name=\"A\"><block type=\"logic_compare\" id=\"wPo7O+#q[MVV{ef;h4ND\"><field name=\"OP\">GTE</field><value name=\"A\"><block type=\"pbhub_analogRead\" id=\"GLB?PRPr4_##EYBD$ee^\"><field name=\"VARNAME\">pbhub_1</field><value name=\"num\"><shadow type=\"math_number\" id=\"O9g{|b/!2XX.{k(L{fuI\"><field name=\"NUM\">0</field></shadow></value></block></value><value name=\"B\"><block type=\"math_number\" id=\"/A0[(FK}QR]Tk/^C)~aw\"><field name=\"NUM\">400</field></block></value></block></value><value name=\"B\"><block type=\"logic_compare\" id=\"B|%K+$=oc*nJcuS-4:u%\"><field name=\"OP\">LT</field><value name=\"A\"><block type=\"pbhub_analogRead\" id=\"nhj0pp;*DJi=50K{a%ag\"><field name=\"VARNAME\">pbhub_1</field><value name=\"num\"><shadow type=\"math_number\" id=\"|F@#f]EZ{?^F7G.$n^WW\"><field name=\"NUM\">0</field></shadow></value></block></value><value name=\"B\"><block type=\"math_number\" id=\",=A4C+VU~#vL;YEWi-D+\"><field name=\"NUM\">700</field></block></value></block></value></block></value><statement name=\"DO1\"><block type=\"emoji_show\" id=\"ntC!.Bt:)pM^(=;{!hBr\"><field name=\"COLOR\">#ffff00</field><field name=\"MAP_0_0\">FALSE</field><field name=\"MAP_0_1\">FALSE</field><field name=\"MAP_0_2\">FALSE</field><field name=\"MAP_0_3\">FALSE</field><field name=\"MAP_0_4\">FALSE</field><field name=\"MAP_0_5\">FALSE</field><field name=\"MAP_0_6\">FALSE</field><field name=\"MAP_1_0\">FALSE</field><field name=\"MAP_1_1\">FALSE</field><field name=\"MAP_1_2\">TRUE</field><field name=\"MAP_1_3\">FALSE</field><field name=\"MAP_1_4\">TRUE</field><field name=\"MAP_1_5\">FALSE</field><field name=\"MAP_1_6\">FALSE</field><field name=\"MAP_2_0\">FALSE</field><field name=\"MAP_2_1\">FALSE</field><field name=\"MAP_2_2\">FALSE</field><field name=\"MAP_2_3\">FALSE</field><field name=\"MAP_2_4\">FALSE</field><field name=\"MAP_2_5\">FALSE</field><field name=\"MAP_2_6\">FALSE</field><field name=\"MAP_3_0\">FALSE</field><field name=\"MAP_3_1\">FALSE</field><field name=\"MAP_3_2\">FALSE</field><field name=\"MAP_3_3\">FALSE</field><field name=\"MAP_3_4\">FALSE</field><field name=\"MAP_3_5\">FALSE</field><field name=\"MAP_3_6\">FALSE</field><field name=\"MAP_4_0\">FALSE</field><field name=\"MAP_4_1\">TRUE</field><field name=\"MAP_4_2\">TRUE</field><field name=\"MAP_4_3\">TRUE</field><field name=\"MAP_4_4\">TRUE</field><field name=\"MAP_4_5\">TRUE</field><field name=\"MAP_4_6\">FALSE</field><field name=\"MAP_5_0\">FALSE</field><field name=\"MAP_5_1\">FALSE</field><field name=\"MAP_5_2\">FALSE</field><field name=\"MAP_5_3\">FALSE</field><field name=\"MAP_5_4\">FALSE</field><field name=\"MAP_5_5\">FALSE</field><field name=\"MAP_5_6\">FALSE</field><field name=\"MAP_6_0\">FALSE</field><field name=\"MAP_6_1\">FALSE</field><field name=\"MAP_6_2\">FALSE</field><field name=\"MAP_6_3\">FALSE</field><field name=\"MAP_6_4\">FALSE</field><field name=\"MAP_6_5\">FALSE</field><field name=\"MAP_6_6\">FALSE</field><next><block type=\"rgb_set_dir\" id=\"~s/_mt|~+F287HYk}EXR\"><field name=\"DIR\">left</field><field name=\"COLOR\">#ffff00</field><next><block type=\"timer_delay_ms\" id=\"b8{]%UXHGYRJuh1-}b^[\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"6rRk@#WrJ:60w(|5,_Gt\"><field name=\"NUM\">200</field></shadow></value><next><block type=\"rgb_set_dir\" id=\"ZBLY3GQla8{mb3,Y~GK2\"><field name=\"DIR\">right</field><field name=\"COLOR\">#ffff00</field><next><block type=\"rgb_set_dir\" id=\"k(r@~$(MIatw/:+lh*uI\"><field name=\"DIR\">left</field><field name=\"COLOR\">#000000</field><next><block type=\"timer_delay_ms\" id=\"2%W{6|B~,!Y8!44.IT9`\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"73/[K@}27`xKiFBfzQlW\"><field name=\"NUM\">200</field></shadow></value><next><block type=\"rgb_set_dir\" id=\"~H(EqQ+#u5uo8V[%xc{V\"><field name=\"DIR\">right</field><field name=\"COLOR\">#000000</field></block></next></block></next></block></next></block></next></block></next></block></next></block></statement><value name=\"IF2\"><block type=\"logic_compare\" id=\"MPG2*7Mff_o~0M?`Rr=n\"><field name=\"OP\">LTE</field><value name=\"A\"><block type=\"pbhub_analogRead\" id=\"+@LO/pgKy4gj1)PwHWFd\"><field name=\"VARNAME\">pbhub_1</field><value name=\"num\"><shadow type=\"math_number\" id=\"3;(UptU4H-,znxk#R5G9\"><field name=\"NUM\">0</field></shadow></value></block></value><value name=\"B\"><block type=\"math_number\" id=\"u,bL,(_HbJpp_4[U]Xcs\"><field name=\"NUM\">380</field></block></value></block></value><statement name=\"DO2\"><block type=\"emoji_show\" id=\"R;H}8N|]AC5UokT-0xxE\"><field name=\"COLOR\">#33ff33</field><field name=\"MAP_0_0\">FALSE</field><field name=\"MAP_0_1\">FALSE</field><field name=\"MAP_0_2\">FALSE</field><field name=\"MAP_0_3\">FALSE</field><field name=\"MAP_0_4\">FALSE</field><field name=\"MAP_0_5\">FALSE</field><field name=\"MAP_0_6\">FALSE</field><field name=\"MAP_1_0\">FALSE</field><field name=\"MAP_1_1\">FALSE</field><field name=\"MAP_1_2\">TRUE</field><field name=\"MAP_1_3\">FALSE</field><field name=\"MAP_1_4\">TRUE</field><field name=\"MAP_1_5\">FALSE</field><field name=\"MAP_1_6\">FALSE</field><field name=\"MAP_2_0\">FALSE</field><field name=\"MAP_2_1\">FALSE</field><field name=\"MAP_2_2\">FALSE</field><field name=\"MAP_2_3\">FALSE</field><field name=\"MAP_2_4\">FALSE</field><field name=\"MAP_2_5\">FALSE</field><field name=\"MAP_2_6\">FALSE</field><field name=\"MAP_3_0\">TRUE</field><field name=\"MAP_3_1\">FALSE</field><field name=\"MAP_3_2\">FALSE</field><field name=\"MAP_3_3\">FALSE</field><field name=\"MAP_3_4\">FALSE</field><field name=\"MAP_3_5\">FALSE</field><field name=\"MAP_3_6\">TRUE</field><field name=\"MAP_4_0\">FALSE</field><field name=\"MAP_4_1\">TRUE</field><field name=\"MAP_4_2\">FALSE</field><field name=\"MAP_4_3\">FALSE</field><field name=\"MAP_4_4\">FALSE</field><field name=\"MAP_4_5\">TRUE</field><field name=\"MAP_4_6\">FALSE</field><field name=\"MAP_5_0\">FALSE</field><field name=\"MAP_5_1\">FALSE</field><field name=\"MAP_5_2\">TRUE</field><field name=\"MAP_5_3\">TRUE</field><field name=\"MAP_5_4\">TRUE</field><field name=\"MAP_5_5\">FALSE</field><field name=\"MAP_5_6\">FALSE</field><field name=\"MAP_6_0\">FALSE</field><field name=\"MAP_6_1\">FALSE</field><field name=\"MAP_6_2\">FALSE</field><field name=\"MAP_6_3\">FALSE</field><field name=\"MAP_6_4\">FALSE</field><field name=\"MAP_6_5\">FALSE</field><field name=\"MAP_6_6\">FALSE</field><next><block type=\"rgb_set_all\" id=\"?^~.{WLM1K!Q60sh3M^.\"><field name=\"COLOR\">#33ff33</field></block></next></block></statement></block></next></block></next></block></next></block></next></block></statement></block></next></block><block type=\"button_callback\" id=\"**E(?E*^O%iord2#rq}_\" x=\"590\" y=\"890\"><field name=\"BUTTON\">A</field><field name=\"EVENT\">wasPressed</field><statement name=\"FUNC\"><block type=\"controls_whileUntil\" id=\"$LMEj8xPvmIT*aMVbGY1\"><field name=\"MODE\">UNTIL</field><value name=\"BOOL\"><block type=\"logic_operation\" id=\"Ykg0khxYOdXLPu%zR.hR\"><field name=\"OP\">OR</field><value name=\"A\"><block type=\"logic_compare\" id=\"5PW[9,.`=c*oDcB+#5tD\"><field name=\"OP\">LTE</field><value name=\"A\"><block type=\"pbhub_analogRead\" id=\"c`EK2-+D4(*hanRnU0t%\"><field name=\"VARNAME\">pbhub_1</field><value name=\"num\"><shadow type=\"math_number\" id=\"w;9#~lJ`qlYNiJrd,^GN\"><field name=\"NUM\">0</field></shadow></value></block></value><value name=\"B\"><block type=\"math_number\" id=\"CR,K~M=G;0smw(Lt1@(:\"><field name=\"NUM\">380</field></block></value></block></value><value name=\"B\"><block type=\"logic_compare\" id=\"u2N`@=4iDPm^CL*?PGL(\"><field name=\"OP\">LTE</field><value name=\"A\"><block type=\"variables_get\" id=\"0(]]7x3*eiJs!a5t.=ik\"><field name=\"VAR\" id=\"Zs(ml*2:2+%GFI5Y[8a|\">distance</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"xsQU8?rVFmFTqiA~0VJ:\"><field name=\"NUM\">500</field></block></value></block></value></block></value><statement name=\"DO\"><block type=\"servo_unit_write_angle\" id=\"3(z{lBLl1qO4*?U]L?K`\"><field name=\"VARNAME\">servo_3</field><value name=\"ANGLE\"><shadow type=\"math_number\" id=\"9)ms}(jY})),,~f9xppG\"><field name=\"NUM\">0</field></shadow></value><next><block type=\"timer_delay\" id=\"wK{hXbfUT(wF%sB9r$5I\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"!*yU1:DHnD_V.u9HM-}N\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"servo_unit_write_angle\" id=\"[3P9ka_*MxPnY7[OnYz*\"><field name=\"VARNAME\">servo_3</field><value name=\"ANGLE\"><shadow type=\"math_number\" id=\"Aq_/q,SiF0MG$l@s%`%T\"><field name=\"NUM\">90</field></shadow></value><next><block type=\"timer_delay\" id=\"LLTvLXHLI3pI2_;Xr~8#\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"]z^)%K%=VIO|wWb]2c@%\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"servo_unit_write_angle\" id=\"FN7X0y@t.iE=+bg^|gTZ\"><field name=\"VARNAME\">servo_3</field><value name=\"ANGLE\"><shadow type=\"math_number\" id=\";8a-WyIpFm){(k;_2F!=\"><field name=\"NUM\">180</field></shadow></value><next><block type=\"timer_delay\" id=\"e!dpEIrs`CE/^`RYe(4~\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"52Z1HCQ5mp-Z@hB_MaG!\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"servo_unit_write_angle\" id=\"$[2L=eL-!8gk35TnX$|b\"><field name=\"VARNAME\">servo_3</field><value name=\"ANGLE\"><shadow type=\"math_number\" id=\"0tSU~xw).Z)-p=JaO7g4\"><field name=\"NUM\">90</field></shadow></value><next><block type=\"timer_delay\" id=\"1#d8@Z9oVq_0XkQVL/o~\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"YFmm.pM)khK#xTede2@.\"><field name=\"NUM\">1</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></statement></block><block type=\"button_callback\" id=\"2PL0-q5js-|(z`CuPn.h\" x=\"590\" y=\"1430\"><field name=\"BUTTON\">B</field><field name=\"EVENT\">wasPressed</field><statement name=\"FUNC\"><block type=\"controls_whileUntil\" id=\"~O)Mw9WEN7,M$iN`wk6,\"><field name=\"MODE\">UNTIL</field><value name=\"BOOL\"><block type=\"logic_compare\" id=\"IG,C3ZNp85P!T:S}*?Nc\"><field name=\"OP\">LTE</field><value name=\"A\"><block type=\"pbhub_analogRead\" id=\"5`0H0C,rG7RR/)v^Q]zq\"><field name=\"VARNAME\">pbhub_1</field><value name=\"num\"><shadow type=\"math_number\" id=\"A}-87ksTA`Nh5(!$yrVE\"><field name=\"NUM\">0</field></shadow></value></block></value><value name=\"B\"><block type=\"math_number\" id=\"L{IzoE%Ml2x)y(!L2K+^\"><field name=\"NUM\">380</field></block></value></block></value><statement name=\"DO\"><block type=\"servo_unit_write_angle\" id=\"{q^:V{|Rk(A-hGhHN{$2\"><field name=\"VARNAME\">servo_3</field><value name=\"ANGLE\"><shadow type=\"math_number\" id=\"+PCtw~`/V^U5JfPS!cK.\"><field name=\"NUM\">0</field></shadow></value><next><block type=\"controls_flow_statements\" id=\"%gTonh2=`*]+2t]aq/6z\"><field name=\"FLOW\">BREAK</field></block></next></block></statement></block></statement></block>","Blockly.Remotes":[],"Blockly.RemotePlus":[{"id":"__title","blockId":"","createTime":1707224910480,"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","machine"],"cbIdList_":[],"eventCBIdList_":[]}

Credits

shang xian lee

shang xian lee

0 projects • 0 followers
Yu Feiyang

Yu Feiyang

0 projects • 0 followers

Comments