1 00:00:06,520 --> 00:00:09,590 [Music] 2 00:00:23,680 --> 00:00:29,929 [Music] 3 00:00:38,280 --> 00:00:40,879 hello and welcome to our BBC microbic 4 00:00:40,879 --> 00:00:44,440 Global codal my name is Giles and my 5 00:00:44,440 --> 00:00:46,239 name is blaed and we are part of the 6 00:00:46,239 --> 00:00:48,399 Education team here at the microbit 7 00:00:48,399 --> 00:00:51,440 Educational Foundation now does anyone 8 00:00:51,440 --> 00:00:55,079 know the theme of today's Cod along here 9 00:00:55,079 --> 00:00:57,920 are a few 10 00:00:58,120 --> 00:01:01,719 Clues there a butterfly 11 00:01:01,719 --> 00:01:06,400 F uh oh okay that looks like some 12 00:01:06,400 --> 00:01:10,400 flowers well that's definitely a 13 00:01:11,320 --> 00:01:15,159 tree oh my goodness a very large Robin a 14 00:01:15,159 --> 00:01:17,200 very large 15 00:01:17,200 --> 00:01:20,479 bird so well done anyone watching if you 16 00:01:20,479 --> 00:01:23,079 have shouted out the theme is 17 00:01:23,079 --> 00:01:25,600 biodiversity happy International Day for 18 00:01:25,600 --> 00:01:29,280 biological diversity um or International 19 00:01:29,280 --> 00:01:31,040 Day for bio biodiversity as it can be 20 00:01:31,040 --> 00:01:34,720 shortened to the United Nations theme uh 21 00:01:34,720 --> 00:01:37,439 this year is all about building back 22 00:01:37,439 --> 00:01:40,240 biodiversity because we all depend on a 23 00:01:40,240 --> 00:01:46,040 wide variety of plants and animals and 24 00:01:46,040 --> 00:01:48,880 microorganisms to keep us all healthy 25 00:01:48,880 --> 00:01:52,360 and thriving so in today's codal along 26 00:01:52,360 --> 00:01:54,600 you are going to be doing your bit as 27 00:01:54,600 --> 00:01:56,039 well because you are going to be 28 00:01:56,039 --> 00:01:58,960 building back bio biodiversity too by 29 00:01:58,960 --> 00:02:01,680 creating a bi biodiversity counter that 30 00:02:01,680 --> 00:02:03,920 can be used in your school playground or 31 00:02:03,920 --> 00:02:06,320 any other outdoor area you have near 32 00:02:06,320 --> 00:02:09,520 your school and as today is UN day for 33 00:02:09,520 --> 00:02:12,599 biodiversity the plan is to create uh 34 00:02:12,599 --> 00:02:15,720 the project in the make code editor but 35 00:02:15,720 --> 00:02:17,640 then to transfer the code onto the 36 00:02:17,640 --> 00:02:20,239 microbit and use them outside to count 37 00:02:20,239 --> 00:02:22,000 the number of species of animals and 38 00:02:22,000 --> 00:02:24,640 species of plants that you can spot you 39 00:02:24,640 --> 00:02:26,560 don't need a microbit to take part in 40 00:02:26,560 --> 00:02:28,519 this session as we will be making good 41 00:02:28,519 --> 00:02:30,480 use of the simulator on make code 42 00:02:30,480 --> 00:02:33,040 website but if you do have microbits 43 00:02:33,040 --> 00:02:34,599 then make sure you have them out ready 44 00:02:34,599 --> 00:02:36,720 to put the code on at the end of the 45 00:02:36,720 --> 00:02:39,120 session and in today's session we're 46 00:02:39,120 --> 00:02:41,560 going to be coding along together make 47 00:02:41,560 --> 00:02:44,159 sure that you pause the video whenever 48 00:02:44,159 --> 00:02:46,480 you need to and you can replay parts 49 00:02:46,480 --> 00:02:49,640 that you need to hear over again I'm 50 00:02:49,640 --> 00:02:51,200 really excited that we're coding the 51 00:02:51,200 --> 00:02:53,440 biodiversity cter together so students 52 00:02:53,440 --> 00:02:55,200 all over the world can see what their 53 00:02:55,200 --> 00:02:58,519 local biodiversity is like if you have a 54 00:02:58,519 --> 00:03:01,080 school Twitter or X account then make 55 00:03:01,080 --> 00:03:05,040 sure you share how you get on you can 56 00:03:05,040 --> 00:03:10,239 tag us we are at microbit uncore edu 57 00:03:10,239 --> 00:03:14,319 that's microbit uncore edu on Twitter or 58 00:03:14,319 --> 00:03:17,519 X that's a really good idea J it will be 59 00:03:17,519 --> 00:03:19,720 lovely to see how different classes and 60 00:03:19,720 --> 00:03:22,599 schools get on in their environments so 61 00:03:22,599 --> 00:03:25,280 I think we're ready to get started Giles 62 00:03:25,280 --> 00:03:26,640 can you think of anything else we need 63 00:03:26,640 --> 00:03:29,360 to mention before we start coding I 64 00:03:29,360 --> 00:03:31,799 think as we're making a species counter 65 00:03:31,799 --> 00:03:33,319 I think it would be really good just to 66 00:03:33,319 --> 00:03:35,319 make sure that everyone knows exactly 67 00:03:35,319 --> 00:03:39,200 what a species is great call Giles okay 68 00:03:39,200 --> 00:03:42,159 so a species is a set of animals or 69 00:03:42,159 --> 00:03:45,040 plants who have similar characteristics 70 00:03:45,040 --> 00:03:46,959 to each other so they all look similar 71 00:03:46,959 --> 00:03:48,319 to each other and they have similar 72 00:03:48,319 --> 00:03:50,680 characteristics so for 73 00:03:50,680 --> 00:03:53,400 example let's look at these pictures 74 00:03:53,400 --> 00:03:56,280 here so let me just remove this so that 75 00:03:56,280 --> 00:04:00,239 you can see it better there we go so so 76 00:04:00,239 --> 00:04:02,920 um in the in the slide here we've got 77 00:04:02,920 --> 00:04:05,599 lots of different animals but how many 78 00:04:05,599 --> 00:04:08,319 species have we got Giles oh that's a 79 00:04:08,319 --> 00:04:09,920 really interesting question it's quite 80 00:04:09,920 --> 00:04:11,720 tricky actually um I'm going to start 81 00:04:11,720 --> 00:04:13,879 with the ones that all look the same so 82 00:04:13,879 --> 00:04:17,199 I can see some snails there um some in 83 00:04:17,199 --> 00:04:19,639 their shells some out of their shells so 84 00:04:19,639 --> 00:04:21,759 I think the three pictures of snails 85 00:04:21,759 --> 00:04:23,479 that's one 86 00:04:23,479 --> 00:04:27,199 species um I can see Robin again a bird 87 00:04:27,199 --> 00:04:28,800 and I don't see any other birds on there 88 00:04:28,800 --> 00:04:31,160 so I think that's probably another 89 00:04:31,160 --> 00:04:35,840 species um we've got oh two butterflies 90 00:04:35,840 --> 00:04:38,960 so I think two butterflies uh probably 91 00:04:38,960 --> 00:04:43,199 one more species and then I can see a 92 00:04:43,199 --> 00:04:47,000 fly and I can see a worms so I think 93 00:04:47,000 --> 00:04:49,759 have we got five species there blonded 94 00:04:49,759 --> 00:04:53,360 well done yes I think that is spot on 95 00:04:53,360 --> 00:04:54,840 and that means that everyone is very 96 00:04:54,840 --> 00:04:56,759 clear and everyone can be super accurate 97 00:04:56,759 --> 00:04:58,320 when they go out and they start logging 98 00:04:58,320 --> 00:05:01,560 their species later thanks chares so 99 00:05:01,560 --> 00:05:05,720 let's get coding um so the what we're 100 00:05:05,720 --> 00:05:07,160 going to do is we're going to bring you 101 00:05:07,160 --> 00:05:09,720 to the makecode editor 102 00:05:09,720 --> 00:05:13,000 website so um you'll find that you can 103 00:05:13,000 --> 00:05:15,320 see it on the banner now at make code. 104 00:05:15,320 --> 00:05:18,080 microbit 105 00:05:29,720 --> 00:05:31,520 you can get started with right away 106 00:05:31,520 --> 00:05:34,520 without needing any logins or passwords 107 00:05:34,520 --> 00:05:36,280 and so on so there is a sign-in button 108 00:05:36,280 --> 00:05:37,800 on the top right so schools with 109 00:05:37,800 --> 00:05:39,960 Microsoft or Google logins can use that 110 00:05:39,960 --> 00:05:41,680 but we don't need to we can jump 111 00:05:41,680 --> 00:05:44,160 straight in um now I've got some 112 00:05:44,160 --> 00:05:46,199 projects showing here because I've used 113 00:05:46,199 --> 00:05:48,039 it before if it's your first time you 114 00:05:48,039 --> 00:05:50,440 might not have that but you will have 115 00:05:50,440 --> 00:05:52,479 new project the new project button and 116 00:05:52,479 --> 00:05:53,800 that's what we're going to jump straight 117 00:05:53,800 --> 00:05:56,759 into also in the settings on make code 118 00:05:56,759 --> 00:05:58,560 in the top right there's a little Cog 119 00:05:58,560 --> 00:06:00,720 here next to the sign-in button that's 120 00:06:00,720 --> 00:06:02,560 where you'll find different languages if 121 00:06:02,560 --> 00:06:04,680 you want to change the language to to 122 00:06:04,680 --> 00:06:09,400 your local language so click on new 123 00:06:09,400 --> 00:06:11,680 project and the first thing it does is 124 00:06:11,680 --> 00:06:14,120 asks me to give it a name so if you're 125 00:06:14,120 --> 00:06:16,680 doing the same project as the CL it's a 126 00:06:16,680 --> 00:06:19,120 really good idea to make sure that your 127 00:06:19,120 --> 00:06:21,400 name or your student name is is is 128 00:06:21,400 --> 00:06:24,360 included in the project name and today 129 00:06:24,360 --> 00:06:28,000 we're making a biodiversity counter so 130 00:06:28,000 --> 00:06:29,840 I'm going to name my project blana 131 00:06:29,840 --> 00:06:33,800 biodiversity counter and click on 132 00:06:33,800 --> 00:06:36,520 create okay so this has opened up the 133 00:06:36,520 --> 00:06:39,800 make code editor so we can see that 134 00:06:39,800 --> 00:06:41,759 there's some blocks of code already in 135 00:06:41,759 --> 00:06:43,400 the workspace here on the right now I'm 136 00:06:43,400 --> 00:06:45,120 going to make that a little bit bigger 137 00:06:45,120 --> 00:06:47,120 by using this plus sign in the bottom 138 00:06:47,120 --> 00:06:49,240 right hand side going to zoom in on my 139 00:06:49,240 --> 00:06:51,800 blocks of code a little bit do you think 140 00:06:51,800 --> 00:06:53,720 that's large enough Giles I think so I 141 00:06:53,720 --> 00:06:55,000 can see that really clearly thank you 142 00:06:55,000 --> 00:06:58,080 blet okay brilliant so um this is the 143 00:06:58,080 --> 00:06:59,599 workspace this is where you can draw 144 00:06:59,599 --> 00:07:01,639 drag blocks of codee around and you drag 145 00:07:01,639 --> 00:07:03,680 them in from the toolbox over here and 146 00:07:03,680 --> 00:07:06,199 you build your code in this space now we 147 00:07:06,199 --> 00:07:08,160 won't need the forever block for our 148 00:07:08,160 --> 00:07:09,560 project today so I'm actually going to 149 00:07:09,560 --> 00:07:11,160 show you how to delete the blocks as 150 00:07:11,160 --> 00:07:14,919 well by dragging them onto the uh the 151 00:07:14,919 --> 00:07:17,080 the menu here or the toolbox and then 152 00:07:17,080 --> 00:07:19,080 just letting go and it will delete a 153 00:07:19,080 --> 00:07:22,400 block um when you have a look inside 154 00:07:22,400 --> 00:07:24,120 this menu you can see that there's lots 155 00:07:24,120 --> 00:07:27,080 of pre-prepared blocks of code ready to 156 00:07:27,080 --> 00:07:29,720 go you don't need to have to know what 157 00:07:29,720 --> 00:07:32,160 to type like you would in a text based 158 00:07:32,160 --> 00:07:34,800 um editor you can just take the blocks 159 00:07:34,800 --> 00:07:36,639 and you can drag and drop them onto the 160 00:07:36,639 --> 00:07:38,520 workspace as you need 161 00:07:38,520 --> 00:07:41,360 them um on the left hand side here we've 162 00:07:41,360 --> 00:07:44,319 also got the simulator so we'll be using 163 00:07:44,319 --> 00:07:46,240 this today to check that everything is 164 00:07:46,240 --> 00:07:48,840 working before we put our code on our 165 00:07:48,840 --> 00:07:51,919 microbit and take them outside to do our 166 00:07:51,919 --> 00:07:55,720 biodiversity logging um we'll also be 167 00:07:55,720 --> 00:07:58,360 using the download button we just take 168 00:07:58,360 --> 00:08:00,039 off the banner for a second perfect 169 00:08:00,039 --> 00:08:02,360 thank you Giles so the download button 170 00:08:02,360 --> 00:08:04,120 here bottom left that will be used at 171 00:08:04,120 --> 00:08:07,159 the end of the session so that we uh can 172 00:08:07,159 --> 00:08:10,840 put our code onto our microbit so we 173 00:08:10,840 --> 00:08:12,919 will if I just show you on my screen let 174 00:08:12,919 --> 00:08:17,479 me get a view of me on the screen 175 00:08:17,560 --> 00:08:20,840 second so on the microbit here we will 176 00:08:20,840 --> 00:08:23,159 use the USB lead we will plug that into 177 00:08:23,159 --> 00:08:25,000 our computer and we'll plug the other 178 00:08:25,000 --> 00:08:26,960 end into our microbit and we will press 179 00:08:26,960 --> 00:08:28,560 download and we will put the code on the 180 00:08:28,560 --> 00:08:30,720 microbit and then attach the battery 181 00:08:30,720 --> 00:08:32,560 pack so that we can bring it outside 182 00:08:32,560 --> 00:08:36,320 into the environment and uh code and use 183 00:08:36,320 --> 00:08:40,279 the code we have created that way okay 184 00:08:40,279 --> 00:08:42,800 so coming back to our project that we're 185 00:08:42,800 --> 00:08:45,839 going to create today um I'm going to 186 00:08:45,839 --> 00:08:48,399 stop here and have a little think about 187 00:08:48,399 --> 00:08:51,480 what my program is going to do I want to 188 00:08:51,480 --> 00:08:54,560 use my microbit in the playground ler to 189 00:08:54,560 --> 00:08:57,279 count two different things the number of 190 00:08:57,279 --> 00:08:59,200 animal species and the number of plant 191 00:08:59,200 --> 00:09:01,560 species species I want the microbit to 192 00:09:01,560 --> 00:09:03,880 count for me and remember how many of 193 00:09:03,880 --> 00:09:05,200 these species I spotted because there's 194 00:09:05,200 --> 00:09:06,800 absolutely no way I'm going to keep all 195 00:09:06,800 --> 00:09:09,680 that information in my head so I want 196 00:09:09,680 --> 00:09:11,640 the microbit to remember the information 197 00:09:11,640 --> 00:09:14,079 or the data so that means I need to 198 00:09:14,079 --> 00:09:17,800 create two different variables so in the 199 00:09:17,800 --> 00:09:21,160 toolbox here we've got variables as a 200 00:09:21,160 --> 00:09:24,320 red menu section of the menu so if I 201 00:09:24,320 --> 00:09:26,680 click on variables you'll see it gives 202 00:09:26,680 --> 00:09:28,720 me one option right now and that is to 203 00:09:28,720 --> 00:09:31,240 make a variable able so variables are 204 00:09:31,240 --> 00:09:33,000 like containers they will hold different 205 00:09:33,000 --> 00:09:34,680 pieces of information and they will keep 206 00:09:34,680 --> 00:09:37,160 updating as we use the microbit and add 207 00:09:37,160 --> 00:09:38,120 more 208 00:09:38,120 --> 00:09:41,240 information so the two uh variables I 209 00:09:41,240 --> 00:09:44,120 want to create today are I click on make 210 00:09:44,120 --> 00:09:45,640 a variable and then I name them so I'm 211 00:09:45,640 --> 00:09:48,200 going to call my first one animal 212 00:09:48,200 --> 00:09:51,399 species and click okay and then I'm 213 00:09:51,399 --> 00:09:53,519 going to oh you see straight away some 214 00:09:53,519 --> 00:09:56,079 Co some blocks of code have appeared 215 00:09:56,079 --> 00:09:57,519 because I've created this variable so 216 00:09:57,519 --> 00:09:58,880 we've got some other blocks of code here 217 00:09:58,880 --> 00:10:02,160 we can use later and then I click on 218 00:10:02,160 --> 00:10:03,920 make a variable again and I'm going to 219 00:10:03,920 --> 00:10:05,880 call this plant 220 00:10:05,880 --> 00:10:09,880 species and click on okay so now I've 221 00:10:09,880 --> 00:10:14,000 got options to use these blocks of code 222 00:10:14,000 --> 00:10:17,640 to change it from animal to plant when I 223 00:10:17,640 --> 00:10:20,320 need it and I've made my two variables 224 00:10:20,320 --> 00:10:21,959 if I go back into variables here I can 225 00:10:21,959 --> 00:10:23,800 see them sitting here animal species and 226 00:10:23,800 --> 00:10:24,880 plant 227 00:10:24,880 --> 00:10:28,000 species okay so let me just delete that 228 00:10:28,000 --> 00:10:31,040 properly there we go 229 00:10:31,040 --> 00:10:34,240 so everyone approaches coding a little 230 00:10:34,240 --> 00:10:35,959 bit differently and sometimes there are 231 00:10:35,959 --> 00:10:37,440 different ways to achieve the same 232 00:10:37,440 --> 00:10:39,920 things so Giles what would you do next 233 00:10:39,920 --> 00:10:41,880 now that we've created the variables 234 00:10:41,880 --> 00:10:43,320 well I was just thinking about that when 235 00:10:43,320 --> 00:10:45,800 I turn on my mic a bit and the program 236 00:10:45,800 --> 00:10:49,320 starts I won't have counted any Vari I 237 00:10:49,320 --> 00:10:51,200 won't have counted any animal species or 238 00:10:51,200 --> 00:10:53,920 plant species yet so I'm thinking 239 00:10:53,920 --> 00:10:56,760 whether it's a good idea to set both 240 00:10:56,760 --> 00:11:00,240 variables to zero so what I might do is 241 00:11:00,240 --> 00:11:03,320 I might go into the variables 242 00:11:03,320 --> 00:11:07,560 menu and take set plant species to zero 243 00:11:07,560 --> 00:11:11,079 and drag that into the on block anything 244 00:11:11,079 --> 00:11:13,760 you put in the onstart block will um the 245 00:11:13,760 --> 00:11:15,880 microbit will carry out that instruction 246 00:11:15,880 --> 00:11:17,639 when the program starts running so it's 247 00:11:17,639 --> 00:11:20,320 going to set the zero uh set the plant 248 00:11:20,320 --> 00:11:22,480 species to zero at the start of the 249 00:11:22,480 --> 00:11:25,959 program then I drag the same block again 250 00:11:25,959 --> 00:11:29,040 so I go back into variables and drag out 251 00:11:29,040 --> 00:11:31,360 set plant species to zero again but I'm 252 00:11:31,360 --> 00:11:35,040 going to change maybe plant species to 253 00:11:35,040 --> 00:11:36,120 animal 254 00:11:36,120 --> 00:11:39,480 species so we have plant species and 255 00:11:39,480 --> 00:11:41,720 animal species both set to zero at the 256 00:11:41,720 --> 00:11:43,320 start of the program do you think that's 257 00:11:43,320 --> 00:11:46,600 a good idea blet yes definitely I would 258 00:11:46,600 --> 00:11:48,160 I would have done the same thing at this 259 00:11:48,160 --> 00:11:50,000 point for sure to make sure that the 260 00:11:50,000 --> 00:11:51,920 microbit knows to start counting from 261 00:11:51,920 --> 00:11:54,519 zero for each of those variables there's 262 00:11:54,519 --> 00:11:56,760 one other thing I do as well um there's 263 00:11:56,760 --> 00:11:58,720 nothing on the screen of the microbit 264 00:11:58,720 --> 00:12:00,680 when you turn on at the moment and I 265 00:12:00,680 --> 00:12:02,639 think it would be useful to also show a 266 00:12:02,639 --> 00:12:04,959 zero on the screen so I'm going to add 267 00:12:04,959 --> 00:12:07,519 in that instruction I'm going to go into 268 00:12:07,519 --> 00:12:10,600 the basic menu so the menus are all 269 00:12:10,600 --> 00:12:13,279 colorcoded and blue blocks are from the 270 00:12:13,279 --> 00:12:15,399 basic menu I'm going to take the first 271 00:12:15,399 --> 00:12:17,720 one here show number and I'm going to 272 00:12:17,720 --> 00:12:20,800 drag that in to the onart block here 273 00:12:20,800 --> 00:12:23,000 it's already got the number zero in it 274 00:12:23,000 --> 00:12:25,120 and now you can see the simulator has 275 00:12:25,120 --> 00:12:27,720 updated and when my mic bit starts it 276 00:12:27,720 --> 00:12:31,600 will show a zero on the screen as well 277 00:12:31,600 --> 00:12:34,040 okay so let's have a quick recap to to 278 00:12:34,040 --> 00:12:35,680 make sure that everyone is keeping up 279 00:12:35,680 --> 00:12:37,560 when they're coding along in their 280 00:12:37,560 --> 00:12:40,000 classrooms so have you made your 281 00:12:40,000 --> 00:12:41,920 variables remember we went into 282 00:12:41,920 --> 00:12:44,320 variables we clicked make a variable and 283 00:12:44,320 --> 00:12:46,720 we made two one called animal species 284 00:12:46,720 --> 00:12:50,120 and one called plant species okay have 285 00:12:50,120 --> 00:12:52,800 you set your variables to zero we took 286 00:12:52,800 --> 00:12:55,600 out this one set plant species to zero 287 00:12:55,600 --> 00:12:56,959 and we used it 288 00:12:56,959 --> 00:12:59,480 twice but we changed it using the drop 289 00:12:59,480 --> 00:13:01,399 down menu from plant species to animal 290 00:13:01,399 --> 00:13:04,920 species and we popped that into the 291 00:13:04,920 --> 00:13:07,880 onstart block and then we added a zero 292 00:13:07,880 --> 00:13:09,959 through using the show Number Block here 293 00:13:09,959 --> 00:13:14,720 in the basic menu as well okay 294 00:13:14,720 --> 00:13:16,639 so that 295 00:13:16,639 --> 00:13:20,519 means we have got started but there's 296 00:13:20,519 --> 00:13:23,440 two very important things that we need 297 00:13:23,440 --> 00:13:25,920 to do next and they're both to do with 298 00:13:25,920 --> 00:13:28,079 using the buttons on the microbit 299 00:13:28,079 --> 00:13:29,480 because we're going to be using both 300 00:13:29,480 --> 00:13:33,079 button a and button B uh that are on the 301 00:13:33,079 --> 00:13:35,600 front of the microbit so we're going to 302 00:13:35,600 --> 00:13:37,880 use one button to log data about animal 303 00:13:37,880 --> 00:13:39,760 species and we're going to use another 304 00:13:39,760 --> 00:13:41,680 button to log the data about plant 305 00:13:41,680 --> 00:13:45,959 species so let's start with button a 306 00:13:45,959 --> 00:13:48,079 here are a few 307 00:13:48,079 --> 00:13:52,160 clues for what we're going to 308 00:13:52,160 --> 00:13:54,880 use button a for any 309 00:13:54,880 --> 00:13:59,880 ideas well um let me see we had uh a 310 00:13:59,880 --> 00:14:03,040 butterfly we've had uh a bird and a 311 00:14:03,040 --> 00:14:07,040 snail so I think a is going to be for 312 00:14:07,040 --> 00:14:10,560 Animals correct yes A is for Animals is 313 00:14:10,560 --> 00:14:13,360 animals that's easy to remember yes so 314 00:14:13,360 --> 00:14:15,480 all the pictures are animals so button a 315 00:14:15,480 --> 00:14:18,240 is going to lck the animal species so to 316 00:14:18,240 --> 00:14:19,800 make something happen on the micob bit 317 00:14:19,800 --> 00:14:22,240 when we press button a we will need the 318 00:14:22,240 --> 00:14:24,680 on button a press block so you'll find 319 00:14:24,680 --> 00:14:26,959 this in a new menu the the purple 320 00:14:26,959 --> 00:14:29,839 purpley pink menu here called 321 00:14:29,839 --> 00:14:32,600 if I go into that menu the very first 322 00:14:32,600 --> 00:14:35,040 block is on button a press so let's pull 323 00:14:35,040 --> 00:14:37,360 that out and put that into the 324 00:14:37,360 --> 00:14:41,040 workspace okay so we want the animal 325 00:14:41,040 --> 00:14:44,320 species uh variable to update by one 326 00:14:44,320 --> 00:14:47,480 each time we press button a so that 327 00:14:47,480 --> 00:14:49,000 means I need to go back into my 328 00:14:49,000 --> 00:14:52,759 variables menu in here and I I'm looking 329 00:14:52,759 --> 00:14:55,160 at the second block here I want to 330 00:14:55,160 --> 00:14:57,639 change something by one when I press 331 00:14:57,639 --> 00:15:00,920 button a now when I pull this out just 332 00:15:00,920 --> 00:15:02,920 pop it there for a moment it it goes 333 00:15:02,920 --> 00:15:04,240 this strange color because it's not 334 00:15:04,240 --> 00:15:07,079 inside uh a working block at the moment 335 00:15:07,079 --> 00:15:09,000 but I can still manipulate it here I can 336 00:15:09,000 --> 00:15:10,720 still change it to what I want so I 337 00:15:10,720 --> 00:15:12,600 actually want to change the animal 338 00:15:12,600 --> 00:15:14,839 species on but a so I'm going to switch 339 00:15:14,839 --> 00:15:17,759 that to animal species and I pop it 340 00:15:17,759 --> 00:15:22,240 inside the on button a pressed block so 341 00:15:22,240 --> 00:15:25,040 that means that the microbit will update 342 00:15:25,040 --> 00:15:27,079 the total number of animal 343 00:15:27,079 --> 00:15:31,720 species each time we press button a uh 344 00:15:31,720 --> 00:15:34,720 on the micro bit 345 00:15:34,759 --> 00:15:37,959 itself okay Planet I I got a question 346 00:15:37,959 --> 00:15:40,000 here I I've been following along I've 347 00:15:40,000 --> 00:15:41,880 got the same blocks as you but when I 348 00:15:41,880 --> 00:15:45,560 press button a I just get zero on the 349 00:15:45,560 --> 00:15:47,839 screen even though I keep pressing 350 00:15:47,839 --> 00:15:50,639 button a have I done something wrong not 351 00:15:50,639 --> 00:15:53,680 at all Giles um 352 00:15:53,680 --> 00:15:56,560 I I have the same thing happening on my 353 00:15:56,560 --> 00:16:00,440 mic bit on here so I might be pressing 354 00:16:00,440 --> 00:16:02,519 on my simulator I might press butt a a 355 00:16:02,519 --> 00:16:04,240 couple of times but my screen has not 356 00:16:04,240 --> 00:16:06,639 changed so you have not done anything 357 00:16:06,639 --> 00:16:09,839 wrong you just have not given the 358 00:16:09,839 --> 00:16:12,120 microbit the instructions to do that 359 00:16:12,120 --> 00:16:15,560 part yet okay the micr will only do what 360 00:16:15,560 --> 00:16:18,160 you ask it to do if we want to see the 361 00:16:18,160 --> 00:16:20,839 total on the LED display then we need to 362 00:16:20,839 --> 00:16:22,360 put those instructions in and ask the 363 00:16:22,360 --> 00:16:24,120 microbit to show it to us so let's add a 364 00:16:24,120 --> 00:16:26,000 few more blocks to make that 365 00:16:26,000 --> 00:16:30,880 happen so if we go into to um what are 366 00:16:30,880 --> 00:16:32,440 we going to go we're going to go into 367 00:16:32,440 --> 00:16:35,519 into basic first of all and we're going 368 00:16:35,519 --> 00:16:39,399 to scroll down to the show icon block 369 00:16:39,399 --> 00:16:42,319 okay so this will help us know that when 370 00:16:42,319 --> 00:16:44,600 it shows us data on the LED display it's 371 00:16:44,600 --> 00:16:48,839 talking about animal species data so I'm 372 00:16:48,839 --> 00:16:51,440 going to pop that in here and I'm going 373 00:16:51,440 --> 00:16:53,639 to change the icon from a heart to 374 00:16:53,639 --> 00:16:55,480 something that resembles an animal 375 00:16:55,480 --> 00:16:57,920 species so let's have a look got lots of 376 00:16:57,920 --> 00:17:00,240 pre-prepared icons here right I'm going 377 00:17:00,240 --> 00:17:02,680 to choose the duck so we've got a little 378 00:17:02,680 --> 00:17:06,559 duck icon to to stand for our animal 379 00:17:06,559 --> 00:17:09,640 species right um the next thing I'm 380 00:17:09,640 --> 00:17:11,360 going to do is I'm going to go back into 381 00:17:11,360 --> 00:17:13,280 basic and I'm going to take the show 382 00:17:13,280 --> 00:17:15,439 number block again and I'm going to pop 383 00:17:15,439 --> 00:17:18,400 it in below now this time I don't want 384 00:17:18,400 --> 00:17:21,160 to the show Number Block to show us zero 385 00:17:21,160 --> 00:17:23,199 I want it to show the total number of 386 00:17:23,199 --> 00:17:25,880 animal species on the LED display so 387 00:17:25,880 --> 00:17:29,039 I've got to go back into variables and 388 00:17:29,039 --> 00:17:31,520 find my animal species block the small 389 00:17:31,520 --> 00:17:34,440 one here so I take this out and you can 390 00:17:34,440 --> 00:17:37,720 see how it can slot in over the zero and 391 00:17:37,720 --> 00:17:41,280 replace it so we do that and then our 392 00:17:41,280 --> 00:17:43,039 code will 393 00:17:43,039 --> 00:17:46,520 update okay so now if we test if it's 394 00:17:46,520 --> 00:17:48,679 working on the simulator it should work 395 00:17:48,679 --> 00:17:51,000 this time but actually I've got an idea 396 00:17:51,000 --> 00:17:53,880 to test that Giles so do you remember 397 00:17:53,880 --> 00:17:57,000 this this slide that we looked at 398 00:17:57,000 --> 00:18:01,320 earlier oh yeah was it again how many 399 00:18:01,320 --> 00:18:03,559 times I press a if these were the 400 00:18:03,559 --> 00:18:06,080 animals I'd seen outside oh gosh right 401 00:18:06,080 --> 00:18:07,960 I'm trying to remember again we had 402 00:18:07,960 --> 00:18:11,320 snails and uh that was one species and 403 00:18:11,320 --> 00:18:12,919 then we had two butterflies but that's 404 00:18:12,919 --> 00:18:14,520 only one more species because they're 405 00:18:14,520 --> 00:18:17,000 both both the same species so that's one 406 00:18:17,000 --> 00:18:21,240 more uh we had a bird and we've got a 407 00:18:21,240 --> 00:18:23,440 fly and I've got a worm so I think it 408 00:18:23,440 --> 00:18:26,159 was five different animal species that 409 00:18:26,159 --> 00:18:29,840 we have there correct well done J yes so 410 00:18:29,840 --> 00:18:33,159 on my simulator now I am going to press 411 00:18:33,159 --> 00:18:35,400 a five times and let's see if we can see 412 00:18:35,400 --> 00:18:38,039 something happening and 413 00:18:38,039 --> 00:18:44,120 see yes there we go one two 3 414 00:18:44,120 --> 00:18:47,039 4 five so we've now given the correct 415 00:18:47,039 --> 00:18:49,080 instructions yeah so we can see now that 416 00:18:49,080 --> 00:18:50,919 when we log one it will give us some 417 00:18:50,919 --> 00:18:52,960 feedback on the LED display to know that 418 00:18:52,960 --> 00:18:56,919 it's happened um so if everyone has got 419 00:18:56,919 --> 00:19:00,799 this part coded then that means we are 420 00:19:00,799 --> 00:19:04,360 halfway there 421 00:19:05,480 --> 00:19:07,280 yay 422 00:19:07,280 --> 00:19:10,360 fantastic fantastic so we're halfway 423 00:19:10,360 --> 00:19:12,799 there um and we've told the microb bit 424 00:19:12,799 --> 00:19:14,400 what to do when we press button a when 425 00:19:14,400 --> 00:19:17,480 we're counting animal species but we 426 00:19:17,480 --> 00:19:20,600 haven't yet told it what to do when we 427 00:19:20,600 --> 00:19:24,320 press button B now I wonder if anyone 428 00:19:24,320 --> 00:19:27,600 can remember what are we going to count 429 00:19:27,600 --> 00:19:30,000 when we press but button B can anyone 430 00:19:30,000 --> 00:19:31,760 remember that 431 00:19:31,760 --> 00:19:36,360 I ah right so we've got uh some flowers 432 00:19:36,360 --> 00:19:37,840 we've got a 433 00:19:37,840 --> 00:19:43,640 tree um oh and some more plants oh is it 434 00:19:43,640 --> 00:19:45,159 plant species 435 00:19:45,159 --> 00:19:48,000 Jiles might be plant species that we're 436 00:19:48,000 --> 00:19:49,640 getting when we press button 437 00:19:49,640 --> 00:19:52,240 D so what we want to do is we want to 438 00:19:52,240 --> 00:19:55,640 use button B to to log plant species so 439 00:19:55,640 --> 00:19:59,840 what we can do now is we can dup at or 440 00:19:59,840 --> 00:20:02,960 copy the blocks that we have for button 441 00:20:02,960 --> 00:20:04,880 a I wonder bled could you show us how to 442 00:20:04,880 --> 00:20:05,960 do 443 00:20:05,960 --> 00:20:07,960 that what do you can you just tell us 444 00:20:07,960 --> 00:20:09,640 what you're doing there to get that that 445 00:20:09,640 --> 00:20:12,240 menu to pop up yeah so I've put my 446 00:20:12,240 --> 00:20:15,360 cursor over the entire block on button a 447 00:20:15,360 --> 00:20:17,520 pressed and then I've right clicked and 448 00:20:17,520 --> 00:20:19,520 then I get the menu at duplicate at the 449 00:20:19,520 --> 00:20:21,240 top so you can duplicate that's one way 450 00:20:21,240 --> 00:20:22,919 of doing it or you can just fetch the 451 00:20:22,919 --> 00:20:25,360 blocks again uh from the toolbox in the 452 00:20:25,360 --> 00:20:27,000 middle but just because it's quicker and 453 00:20:27,000 --> 00:20:28,840 easier we're going to show you uh how to 454 00:20:28,840 --> 00:20:30,600 duplicate so if you click on that and 455 00:20:30,600 --> 00:20:32,720 duplicate the block you'll see again 456 00:20:32,720 --> 00:20:34,440 like a bit like it did before the blocks 457 00:20:34,440 --> 00:20:36,559 have gone a funny color uh and that's 458 00:20:36,559 --> 00:20:39,520 because we've got two on button a press 459 00:20:39,520 --> 00:20:41,919 blocks and we can only have one uh set 460 00:20:41,919 --> 00:20:43,960 of instructions for what to do when you 461 00:20:43,960 --> 00:20:45,679 press button a otherwise the microbit 462 00:20:45,679 --> 00:20:48,159 will get really confused so first thing 463 00:20:48,159 --> 00:20:51,360 we need to do is to change button a to 464 00:20:51,360 --> 00:20:55,919 button B okay and then because we're not 465 00:20:55,919 --> 00:20:57,720 counting animal species anymore we need 466 00:20:57,720 --> 00:21:01,159 to change animal species to plant 467 00:21:01,159 --> 00:21:03,080 species and I think it would be a good 468 00:21:03,080 --> 00:21:05,280 idea to show a different picture at this 469 00:21:05,280 --> 00:21:07,480 point not a duck so we'll pick something 470 00:21:07,480 --> 00:21:09,760 else so if you click on that have a look 471 00:21:09,760 --> 00:21:11,760 and pick something there is I think 472 00:21:11,760 --> 00:21:13,960 there's a fork icon that looks a little 473 00:21:13,960 --> 00:21:17,279 bit like a tree that's it that one we 474 00:21:17,279 --> 00:21:19,919 can pick that you can also draw your own 475 00:21:19,919 --> 00:21:21,640 plant icon as well if you like you can 476 00:21:21,640 --> 00:21:24,360 use the show LEDs Block in the basic 477 00:21:24,360 --> 00:21:25,840 category and you can draw your own 478 00:21:25,840 --> 00:21:27,880 picture of an animal or a plant but 479 00:21:27,880 --> 00:21:29,480 we're just going to pick the the fork 480 00:21:29,480 --> 00:21:32,039 icon because it looks a bit like a tree 481 00:21:32,039 --> 00:21:33,799 uh and then I think there's one more 482 00:21:33,799 --> 00:21:35,440 thing we need to change yeah well 483 00:21:35,440 --> 00:21:37,240 spotted bled because at the moment the 484 00:21:37,240 --> 00:21:39,159 code is going to show the animal species 485 00:21:39,159 --> 00:21:40,720 number when we press button B and that 486 00:21:40,720 --> 00:21:42,600 would be wrong so we need to click on 487 00:21:42,600 --> 00:21:45,640 the little arrow on that and change that 488 00:21:45,640 --> 00:21:48,120 to plant 489 00:21:48,120 --> 00:21:49,640 species 490 00:21:49,640 --> 00:21:52,039 perfect thank you Giles I think that's 491 00:21:52,039 --> 00:21:53,520 looking like it should work really well 492 00:21:53,520 --> 00:21:55,320 and we should be able to test out button 493 00:21:55,320 --> 00:22:00,679 B on the simulator now as well um so if 494 00:22:00,679 --> 00:22:04,159 I was outside and these were all the 495 00:22:04,159 --> 00:22:06,159 plants I saw while I was in my 496 00:22:06,159 --> 00:22:09,240 playground how many plant species would 497 00:22:09,240 --> 00:22:12,120 I log how many times do I press button B 498 00:22:12,120 --> 00:22:13,600 oh that's a good question because I can 499 00:22:13,600 --> 00:22:15,400 see lots of flowers there so I might 500 00:22:15,400 --> 00:22:18,200 want to keep clicking uh and click lots 501 00:22:18,200 --> 00:22:19,799 of flowers but I need to think I need to 502 00:22:19,799 --> 00:22:22,240 be really careful about this I think 503 00:22:22,240 --> 00:22:24,480 there are only two species here because 504 00:22:24,480 --> 00:22:26,960 I've got flowers like daisies they look 505 00:22:26,960 --> 00:22:28,520 the same so although there's lots of FL 506 00:22:28,520 --> 00:22:31,159 flowers there that's only one species 507 00:22:31,159 --> 00:22:33,120 that I've spotted and then there's some 508 00:22:33,120 --> 00:22:35,240 Ivy some leaves growing in the middle so 509 00:22:35,240 --> 00:22:37,720 I think here if I saw that when I went 510 00:22:37,720 --> 00:22:40,720 outside I would log two plant species I 511 00:22:40,720 --> 00:22:44,279 would press button B twice fantastic 512 00:22:44,279 --> 00:22:46,559 that is very accurate and correct so I'm 513 00:22:46,559 --> 00:22:51,679 going to do button B twice now on my 514 00:22:51,679 --> 00:22:54,000 simulator and there we go we can see the 515 00:22:54,000 --> 00:22:56,240 plant icon came up and the number came 516 00:22:56,240 --> 00:22:57,919 up each time as well which is exactly 517 00:22:57,919 --> 00:23:00,919 what we've asked it to do using the code 518 00:23:00,919 --> 00:23:03,360 so that's that's fantastic Planet that's 519 00:23:03,360 --> 00:23:05,600 really good but the number just flashes 520 00:23:05,600 --> 00:23:10,440 up what if I can't remember the number 521 00:23:10,440 --> 00:23:13,240 of animal species and plant species is 522 00:23:13,240 --> 00:23:15,559 there a way we can get to see the the 523 00:23:15,559 --> 00:23:18,039 sort of running total without having to 524 00:23:18,039 --> 00:23:20,720 add a new one each time yeah that's a 525 00:23:20,720 --> 00:23:21,960 really good point because I can't 526 00:23:21,960 --> 00:23:23,559 remember now even how many animal 527 00:23:23,559 --> 00:23:25,120 species we'd already logged a few 528 00:23:25,120 --> 00:23:28,159 minutes ago so we definitely need to to 529 00:23:28,159 --> 00:23:30,039 to add that in because we don't want to 530 00:23:30,039 --> 00:23:33,799 get our numbers muddled up so um let's 531 00:23:33,799 --> 00:23:35,919 use the icons again to make it clear 532 00:23:35,919 --> 00:23:37,919 which total is coming up on the LED 533 00:23:37,919 --> 00:23:42,039 display but let's also um use a new 534 00:23:42,039 --> 00:23:43,720 input so we've used button a and we've 535 00:23:43,720 --> 00:23:46,600 used button B to do our actual logging 536 00:23:46,600 --> 00:23:49,640 but now let's use the touch logo on the 537 00:23:49,640 --> 00:23:51,679 front of the microbit as the input to 538 00:23:51,679 --> 00:23:54,080 show us our totals so you'll find that 539 00:23:54,080 --> 00:23:56,880 in the inputs menu and if you scroll 540 00:23:56,880 --> 00:23:59,440 right down past where it says microbit 541 00:23:59,440 --> 00:24:03,120 V2 right down here we get the on Logo 542 00:24:03,120 --> 00:24:05,919 pressed block so if I pull that out now 543 00:24:05,919 --> 00:24:10,600 I'm going to use this as my input now I 544 00:24:10,600 --> 00:24:12,799 said we wanted to use the icons again so 545 00:24:12,799 --> 00:24:14,279 that's the next time we're going next 546 00:24:14,279 --> 00:24:15,279 thing we're going to do we're going to 547 00:24:15,279 --> 00:24:17,840 go to basic we're going to drag out our 548 00:24:17,840 --> 00:24:20,799 show icon pop it in here and I'm going 549 00:24:20,799 --> 00:24:23,640 to change this one to the animal icon 550 00:24:23,640 --> 00:24:24,919 we' selected 551 00:24:24,919 --> 00:24:28,360 earlier and then I want to show my total 552 00:24:28,360 --> 00:24:31,159 to Al number of animal species counted 553 00:24:31,159 --> 00:24:34,240 so if I go back into basic take show 554 00:24:34,240 --> 00:24:38,080 number pop it in and then I find my 555 00:24:38,080 --> 00:24:40,240 variable my animal species variable in 556 00:24:40,240 --> 00:24:43,320 the variables menu pull that out and 557 00:24:43,320 --> 00:24:46,880 that goes on top so that means when you 558 00:24:46,880 --> 00:24:49,600 press the logo the duck icon will will 559 00:24:49,600 --> 00:24:51,760 come up and then the total number of 560 00:24:51,760 --> 00:24:54,480 animal species now I also want to to see 561 00:24:54,480 --> 00:24:55,919 the plant species but I don't want it 562 00:24:55,919 --> 00:24:58,520 all to happen too quickly it needs to be 563 00:24:58,520 --> 00:25:00,279 clear when we read it off the screen and 564 00:25:00,279 --> 00:25:02,360 then when there's numbers that are 565 00:25:02,360 --> 00:25:04,799 two-digit or even three-digit numbers 566 00:25:04,799 --> 00:25:06,720 they will scroll so we need a little bit 567 00:25:06,720 --> 00:25:09,159 of time for the microbit to do its thing 568 00:25:09,159 --> 00:25:11,760 so we're going to leave a small pause so 569 00:25:11,760 --> 00:25:15,480 if I go back into basic and scroll down 570 00:25:15,480 --> 00:25:18,120 find the pause block I'm going to pop 571 00:25:18,120 --> 00:25:21,520 that in and let's pause for two 572 00:25:21,520 --> 00:25:24,080 seconds that shows up as 2,000 573 00:25:24,080 --> 00:25:27,000 milliseconds on the Block and then I'm 574 00:25:27,000 --> 00:25:28,799 going to go back into basic and another 575 00:25:28,799 --> 00:25:30,720 time and I'm going to get the clear 576 00:25:30,720 --> 00:25:33,200 screen block here so that clean the 577 00:25:33,200 --> 00:25:35,840 screen goes completely clear before it 578 00:25:35,840 --> 00:25:37,240 me any of the 579 00:25:37,240 --> 00:25:41,720 plant species data so now I want to show 580 00:25:41,720 --> 00:25:43,799 the plant species data actually I'll 581 00:25:43,799 --> 00:25:45,760 just do one more pause before that so 582 00:25:45,760 --> 00:25:47,679 I'm going to duplicate that block be 583 00:25:47,679 --> 00:25:50,000 doubly sure that the screen clears and 584 00:25:50,000 --> 00:25:54,120 has time to clear now back into basic 585 00:25:54,120 --> 00:25:57,880 take your show icon change that to our 586 00:25:57,880 --> 00:26:02,640 tree like icon here go back into basic 587 00:26:02,640 --> 00:26:06,080 take another show number and this time 588 00:26:06,080 --> 00:26:08,559 in the variables menu I choose plant 589 00:26:08,559 --> 00:26:14,159 species and put it in there so hopefully 590 00:26:14,159 --> 00:26:16,080 that will have given the microbit the 591 00:26:16,080 --> 00:26:18,679 instructions needed for us to see the 592 00:26:18,679 --> 00:26:22,559 totals on the screen when we want to to 593 00:26:22,559 --> 00:26:24,919 recap how many we've counted of each so 594 00:26:24,919 --> 00:26:26,679 shall we try out on the simulator now 595 00:26:26,679 --> 00:26:28,559 Giles I think that sounds like a really 596 00:26:28,559 --> 00:26:30,000 good idea right I'm going to put you to 597 00:26:30,000 --> 00:26:32,559 the test I'm going to show you some 598 00:26:32,559 --> 00:26:34,840 pictures and see if you can count along 599 00:26:34,840 --> 00:26:36,880 and correctly count the species I'm 600 00:26:36,880 --> 00:26:40,000 going to reset my microb bit first just 601 00:26:40,000 --> 00:26:41,760 clear any of the data we've done so far 602 00:26:41,760 --> 00:26:42,799 so you would do that on the real 603 00:26:42,799 --> 00:26:44,120 microbit with the reset button on the 604 00:26:44,120 --> 00:26:45,880 back but I've just pressed this uh 605 00:26:45,880 --> 00:26:49,080 symbol here on the simulator okay test 606 00:26:49,080 --> 00:26:51,720 me fantastic are you ready yes okay here 607 00:26:51,720 --> 00:26:54,840 we go that's a tree so that's a plant 608 00:26:54,840 --> 00:26:57,159 species so that's one plant species so 609 00:26:57,159 --> 00:26:59,559 far oh that's another tree so hang on I 610 00:26:59,559 --> 00:27:02,159 need to have pressed B once but not 611 00:27:02,159 --> 00:27:04,520 again because they're the same species 612 00:27:04,520 --> 00:27:08,080 well done okay let's try one more right 613 00:27:08,080 --> 00:27:09,840 that's a different plant species so I'm 614 00:27:09,840 --> 00:27:12,080 going to press B again that's the second 615 00:27:12,080 --> 00:27:14,880 plant species I've 616 00:27:15,000 --> 00:27:17,679 seen there's our lovely Robin that's a 617 00:27:17,679 --> 00:27:21,159 animal species a bird 618 00:27:21,159 --> 00:27:25,320 okay and I'll give you one more okay 619 00:27:25,320 --> 00:27:26,799 fantastic that's 620 00:27:26,799 --> 00:27:31,080 another animal species so let's see if I 621 00:27:31,080 --> 00:27:34,840 go to my touch logo and I click this now 622 00:27:34,840 --> 00:27:36,000 let's see what 623 00:27:36,000 --> 00:27:38,039 happens animals 624 00:27:38,039 --> 00:27:41,159 to should clear the screen there a 625 00:27:41,159 --> 00:27:44,720 little pause there two fantastic 626 00:27:44,720 --> 00:27:49,200 fantastic well done woohoo so that's it 627 00:27:49,200 --> 00:27:51,640 if you have got this far with us you 628 00:27:51,640 --> 00:27:54,679 have now coded your biodiversity code 629 00:27:54,679 --> 00:27:57,240 along uh biodiversity counter I should 630 00:27:57,240 --> 00:28:01,060 say that you can use outside in your 631 00:28:01,060 --> 00:28:07,200 [Applause] 632 00:28:07,200 --> 00:28:09,519 playground two lots of Applause and 633 00:28:09,519 --> 00:28:11,519 cheering that's marvelous so once you 634 00:28:11,519 --> 00:28:15,159 know the number of the current number of 635 00:28:15,159 --> 00:28:17,440 animal and plant species you could 636 00:28:17,440 --> 00:28:19,720 monitor whether this changes over time 637 00:28:19,720 --> 00:28:21,039 because you could count them again in 638 00:28:21,039 --> 00:28:23,679 the future um you might want to try some 639 00:28:23,679 --> 00:28:25,640 things in your local environment to 640 00:28:25,640 --> 00:28:27,880 improve biodiversity and see if you get 641 00:28:27,880 --> 00:28:29,480 better better numbers next time if you 642 00:28:29,480 --> 00:28:31,840 get a more diverse environment with 643 00:28:31,840 --> 00:28:34,200 different more different kinds of 644 00:28:34,200 --> 00:28:36,320 plants and there's lots of other things 645 00:28:36,320 --> 00:28:37,840 you can do with that data that you go 646 00:28:37,840 --> 00:28:40,519 outside and collect you could present it 647 00:28:40,519 --> 00:28:43,120 in bar charts or other kinds of graphs 648 00:28:43,120 --> 00:28:45,399 tally charts you could share your 649 00:28:45,399 --> 00:28:47,159 findings with other classes in your 650 00:28:47,159 --> 00:28:49,559 school or you could compare your 651 00:28:49,559 --> 00:28:51,600 playground to other outdoor environments 652 00:28:51,600 --> 00:28:55,919 such as Parks or maybe even another 653 00:28:55,919 --> 00:28:58,919 school fabulous so thank you for those 654 00:28:58,919 --> 00:29:01,640 ideas Giles they're really useful we we 655 00:29:01,640 --> 00:29:03,640 have finished coding but there is one 656 00:29:03,640 --> 00:29:06,320 more really important thing to do you 657 00:29:06,320 --> 00:29:09,880 need to transfer the code to your real 658 00:29:09,880 --> 00:29:11,880 life microbit so you can use it to count 659 00:29:11,880 --> 00:29:14,360 biodiversity in your playground outside 660 00:29:14,360 --> 00:29:16,559 or another outside area so what we're 661 00:29:16,559 --> 00:29:19,320 going to do is we're going to um use the 662 00:29:19,320 --> 00:29:23,600 USB cable to plug our mic bits into the 663 00:29:23,600 --> 00:29:25,559 computer or laptop that you've been 664 00:29:25,559 --> 00:29:28,120 using now if you've been using tablets 665 00:29:28,120 --> 00:29:29,360 then obviously there's a different way 666 00:29:29,360 --> 00:29:32,159 to transfer the code um I won't demo 667 00:29:32,159 --> 00:29:34,960 that today but the link that is now 668 00:29:34,960 --> 00:29:36,880 showing on screen will give you all the 669 00:29:36,880 --> 00:29:38,919 different options for how to get code 670 00:29:38,919 --> 00:29:41,200 onto your microbit tablets included so 671 00:29:41,200 --> 00:29:43,039 you can have a look at that instead but 672 00:29:43,039 --> 00:29:45,799 I'll just do a very quick demo of how to 673 00:29:45,799 --> 00:29:48,440 get it on if you're using a laptop or a 674 00:29:48,440 --> 00:29:52,080 tablet or a um sorry a desktop computer 675 00:29:52,080 --> 00:29:56,240 so the small part of the USB cable goes 676 00:29:56,240 --> 00:29:58,480 into the top of the microbit so you can 677 00:29:58,480 --> 00:30:00,519 see there and then I'm going to plug 678 00:30:00,519 --> 00:30:01,640 this 679 00:30:01,640 --> 00:30:05,640 into my um my laptop that I'm using so 680 00:30:05,640 --> 00:30:08,519 I'm plugging it in here the USB end of 681 00:30:08,519 --> 00:30:12,159 it goes in okay now I'm just going to 682 00:30:12,159 --> 00:30:16,240 share my screen before I 683 00:30:16,240 --> 00:30:19,519 plug the rest of it in so one second 684 00:30:19,519 --> 00:30:23,760 stop there I'm going to go 685 00:30:23,760 --> 00:30:25,279 to 686 00:30:25,279 --> 00:30:29,240 this okay now if I do this this way and 687 00:30:29,240 --> 00:30:31,399 I get up my 688 00:30:31,399 --> 00:30:34,200 downloads you will see something appear 689 00:30:34,200 --> 00:30:36,200 in this menu on the left when I plug in 690 00:30:36,200 --> 00:30:37,080 my 691 00:30:37,080 --> 00:30:39,559 microbit so I've plugged it 692 00:30:39,559 --> 00:30:43,640 in keep an eye here Tada the microbit 693 00:30:43,640 --> 00:30:45,840 drive has appeared there because my mic 694 00:30:45,840 --> 00:30:47,960 bit has been plugged in so I know that 695 00:30:47,960 --> 00:30:51,039 it's connected and so now that I've 696 00:30:51,039 --> 00:30:54,559 plugged it in on my make code editor I 697 00:30:54,559 --> 00:30:56,360 need to click on the download button and 698 00:30:56,360 --> 00:30:58,600 follow the instructions on screen 699 00:30:58,600 --> 00:31:01,960 so I click that now download and it's 700 00:31:01,960 --> 00:31:03,519 downloading to my micro bit now if it's 701 00:31:03,519 --> 00:31:05,279 the first time you've downloaded it may 702 00:31:05,279 --> 00:31:07,440 ask you to pair it first but you simply 703 00:31:07,440 --> 00:31:09,480 follow the instructions on screen and it 704 00:31:09,480 --> 00:31:11,360 will then give you the option to 705 00:31:11,360 --> 00:31:13,760 download it if that doesn't work for any 706 00:31:13,760 --> 00:31:16,279 reason there's also a drag and drop 707 00:31:16,279 --> 00:31:18,760 method where if you download the hex 708 00:31:18,760 --> 00:31:21,720 file using the three dots next to the 709 00:31:21,720 --> 00:31:23,760 download button you can click on 710 00:31:23,760 --> 00:31:25,159 download as 711 00:31:25,159 --> 00:31:29,679 file okay that has now gone to my 712 00:31:29,679 --> 00:31:31,679 downloads you can see it here there's 713 00:31:31,679 --> 00:31:34,120 our project that we just made and I can 714 00:31:34,120 --> 00:31:36,480 now drag and drop that on top of my 715 00:31:36,480 --> 00:31:39,559 microbit drive and my microbit will 716 00:31:39,559 --> 00:31:41,200 start flashing on the back so I know 717 00:31:41,200 --> 00:31:42,639 that that's working as well so that's 718 00:31:42,639 --> 00:31:45,799 another way to get it on okay so once 719 00:31:45,799 --> 00:31:47,919 you've got it on there of course the 720 00:31:47,919 --> 00:31:49,840 next thing to do is to plug your battery 721 00:31:49,840 --> 00:31:53,919 pack in unplug it from your uh computer 722 00:31:53,919 --> 00:31:56,919 and then you can take it outside and get 723 00:31:56,919 --> 00:31:59,760 going with love the diversity all around 724 00:31:59,760 --> 00:32:02,559 you in your 725 00:32:02,600 --> 00:32:05,440 environment that's absolutely fantastic 726 00:32:05,440 --> 00:32:08,600 so huge thanks to all of you for joining 727 00:32:08,600 --> 00:32:10,919 our codal along today remember do get in 728 00:32:10,919 --> 00:32:14,200 touch with us by tagging us you can do 729 00:32:14,200 --> 00:32:19,240 that on Twitter or X using microbit edu 730 00:32:19,240 --> 00:32:21,279 be great if you could show how you got 731 00:32:21,279 --> 00:32:23,559 on making your biodiversity counter 732 00:32:23,559 --> 00:32:26,120 today and how you use 733 00:32:26,120 --> 00:32:28,480 them yes thank you to everyone who's 734 00:32:28,480 --> 00:32:30,360 joined in we hope you've had fun coding 735 00:32:30,360 --> 00:32:33,279 your biodiversity counter and uh good 736 00:32:33,279 --> 00:32:35,519 luck investigating biodiversity in your 737 00:32:35,519 --> 00:32:36,960 local 738 00:32:36,960 --> 00:32:42,799 environment bye bye for now 739 00:32:51,650 --> 00:32:58,440 [Music] 740 00:32:58,440 --> 00:33:01,440 n 741 00:33:04,930 --> 00:33:34,950 [Music]