WEBVTT 00:00:06.520 --> 00:00:09.590 [Music] 00:00:23.680 --> 00:00:29.929 [Music] 00:00:38.280 --> 00:00:40.879 hello and welcome to our BBC microbic 00:00:40.879 --> 00:00:44.440 Global codal my name is Giles and my 00:00:44.440 --> 00:00:46.239 name is blaed and we are part of the 00:00:46.239 --> 00:00:48.399 Education team here at the microbit 00:00:48.399 --> 00:00:51.440 Educational Foundation now does anyone 00:00:51.440 --> 00:00:55.079 know the theme of today's Cod along here 00:00:55.079 --> 00:00:57.920 are a few 00:00:58.120 --> 00:01:01.719 Clues there a butterfly 00:01:01.719 --> 00:01:06.400 F uh oh okay that looks like some 00:01:06.400 --> 00:01:10.400 flowers well that's definitely a 00:01:11.320 --> 00:01:15.159 tree oh my goodness a very large Robin a 00:01:15.159 --> 00:01:17.200 very large 00:01:17.200 --> 00:01:20.479 bird so well done anyone watching if you 00:01:20.479 --> 00:01:23.079 have shouted out the theme is 00:01:23.079 --> 00:01:25.600 biodiversity happy International Day for 00:01:25.600 --> 00:01:29.280 biological diversity um or International 00:01:29.280 --> 00:01:31.040 Day for bio biodiversity as it can be 00:01:31.040 --> 00:01:34.720 shortened to the United Nations theme uh 00:01:34.720 --> 00:01:37.439 this year is all about building back 00:01:37.439 --> 00:01:40.240 biodiversity because we all depend on a 00:01:40.240 --> 00:01:46.040 wide variety of plants and animals and 00:01:46.040 --> 00:01:48.880 microorganisms to keep us all healthy 00:01:48.880 --> 00:01:52.360 and thriving so in today's codal along 00:01:52.360 --> 00:01:54.600 you are going to be doing your bit as 00:01:54.600 --> 00:01:56.039 well because you are going to be 00:01:56.039 --> 00:01:58.960 building back bio biodiversity too by 00:01:58.960 --> 00:02:01.680 creating a bi biodiversity counter that 00:02:01.680 --> 00:02:03.920 can be used in your school playground or 00:02:03.920 --> 00:02:06.320 any other outdoor area you have near 00:02:06.320 --> 00:02:09.520 your school and as today is UN day for 00:02:09.520 --> 00:02:12.599 biodiversity the plan is to create uh 00:02:12.599 --> 00:02:15.720 the project in the make code editor but 00:02:15.720 --> 00:02:17.640 then to transfer the code onto the 00:02:17.640 --> 00:02:20.239 microbit and use them outside to count 00:02:20.239 --> 00:02:22.000 the number of species of animals and 00:02:22.000 --> 00:02:24.640 species of plants that you can spot you 00:02:24.640 --> 00:02:26.560 don't need a microbit to take part in 00:02:26.560 --> 00:02:28.519 this session as we will be making good 00:02:28.519 --> 00:02:30.480 use of the simulator on make code 00:02:30.480 --> 00:02:33.040 website but if you do have microbits 00:02:33.040 --> 00:02:34.599 then make sure you have them out ready 00:02:34.599 --> 00:02:36.720 to put the code on at the end of the 00:02:36.720 --> 00:02:39.120 session and in today's session we're 00:02:39.120 --> 00:02:41.560 going to be coding along together make 00:02:41.560 --> 00:02:44.159 sure that you pause the video whenever 00:02:44.159 --> 00:02:46.480 you need to and you can replay parts 00:02:46.480 --> 00:02:49.640 that you need to hear over again I'm 00:02:49.640 --> 00:02:51.200 really excited that we're coding the 00:02:51.200 --> 00:02:53.440 biodiversity cter together so students 00:02:53.440 --> 00:02:55.200 all over the world can see what their 00:02:55.200 --> 00:02:58.519 local biodiversity is like if you have a 00:02:58.519 --> 00:03:01.080 school Twitter or X account then make 00:03:01.080 --> 00:03:05.040 sure you share how you get on you can 00:03:05.040 --> 00:03:10.239 tag us we are at microbit uncore edu 00:03:10.239 --> 00:03:14.319 that's microbit uncore edu on Twitter or 00:03:14.319 --> 00:03:17.519 X that's a really good idea J it will be 00:03:17.519 --> 00:03:19.720 lovely to see how different classes and 00:03:19.720 --> 00:03:22.599 schools get on in their environments so 00:03:22.599 --> 00:03:25.280 I think we're ready to get started Giles 00:03:25.280 --> 00:03:26.640 can you think of anything else we need 00:03:26.640 --> 00:03:29.360 to mention before we start coding I 00:03:29.360 --> 00:03:31.799 think as we're making a species counter 00:03:31.799 --> 00:03:33.319 I think it would be really good just to 00:03:33.319 --> 00:03:35.319 make sure that everyone knows exactly 00:03:35.319 --> 00:03:39.200 what a species is great call Giles okay 00:03:39.200 --> 00:03:42.159 so a species is a set of animals or 00:03:42.159 --> 00:03:45.040 plants who have similar characteristics 00:03:45.040 --> 00:03:46.959 to each other so they all look similar 00:03:46.959 --> 00:03:48.319 to each other and they have similar 00:03:48.319 --> 00:03:50.680 characteristics so for 00:03:50.680 --> 00:03:53.400 example let's look at these pictures 00:03:53.400 --> 00:03:56.280 here so let me just remove this so that 00:03:56.280 --> 00:04:00.239 you can see it better there we go so so 00:04:00.239 --> 00:04:02.920 um in the in the slide here we've got 00:04:02.920 --> 00:04:05.599 lots of different animals but how many 00:04:05.599 --> 00:04:08.319 species have we got Giles oh that's a 00:04:08.319 --> 00:04:09.920 really interesting question it's quite 00:04:09.920 --> 00:04:11.720 tricky actually um I'm going to start 00:04:11.720 --> 00:04:13.879 with the ones that all look the same so 00:04:13.879 --> 00:04:17.199 I can see some snails there um some in 00:04:17.199 --> 00:04:19.639 their shells some out of their shells so 00:04:19.639 --> 00:04:21.759 I think the three pictures of snails 00:04:21.759 --> 00:04:23.479 that's one 00:04:23.479 --> 00:04:27.199 species um I can see Robin again a bird 00:04:27.199 --> 00:04:28.800 and I don't see any other birds on there 00:04:28.800 --> 00:04:31.160 so I think that's probably another 00:04:31.160 --> 00:04:35.840 species um we've got oh two butterflies 00:04:35.840 --> 00:04:38.960 so I think two butterflies uh probably 00:04:38.960 --> 00:04:43.199 one more species and then I can see a 00:04:43.199 --> 00:04:47.000 fly and I can see a worms so I think 00:04:47.000 --> 00:04:49.759 have we got five species there blonded 00:04:49.759 --> 00:04:53.360 well done yes I think that is spot on 00:04:53.360 --> 00:04:54.840 and that means that everyone is very 00:04:54.840 --> 00:04:56.759 clear and everyone can be super accurate 00:04:56.759 --> 00:04:58.320 when they go out and they start logging 00:04:58.320 --> 00:05:01.560 their species later thanks chares so 00:05:01.560 --> 00:05:05.720 let's get coding um so the what we're 00:05:05.720 --> 00:05:07.160 going to do is we're going to bring you 00:05:07.160 --> 00:05:09.720 to the makecode editor 00:05:09.720 --> 00:05:13.000 website so um you'll find that you can 00:05:13.000 --> 00:05:15.320 see it on the banner now at make code. 00:05:15.320 --> 00:05:18.080 microbit 00:05:29.720 --> 00:05:31.520 you can get started with right away 00:05:31.520 --> 00:05:34.520 without needing any logins or passwords 00:05:34.520 --> 00:05:36.280 and so on so there is a sign-in button 00:05:36.280 --> 00:05:37.800 on the top right so schools with 00:05:37.800 --> 00:05:39.960 Microsoft or Google logins can use that 00:05:39.960 --> 00:05:41.680 but we don't need to we can jump 00:05:41.680 --> 00:05:44.160 straight in um now I've got some 00:05:44.160 --> 00:05:46.199 projects showing here because I've used 00:05:46.199 --> 00:05:48.039 it before if it's your first time you 00:05:48.039 --> 00:05:50.440 might not have that but you will have 00:05:50.440 --> 00:05:52.479 new project the new project button and 00:05:52.479 --> 00:05:53.800 that's what we're going to jump straight 00:05:53.800 --> 00:05:56.759 into also in the settings on make code 00:05:56.759 --> 00:05:58.560 in the top right there's a little Cog 00:05:58.560 --> 00:06:00.720 here next to the sign-in button that's 00:06:00.720 --> 00:06:02.560 where you'll find different languages if 00:06:02.560 --> 00:06:04.680 you want to change the language to to 00:06:04.680 --> 00:06:09.400 your local language so click on new 00:06:09.400 --> 00:06:11.680 project and the first thing it does is 00:06:11.680 --> 00:06:14.120 asks me to give it a name so if you're 00:06:14.120 --> 00:06:16.680 doing the same project as the CL it's a 00:06:16.680 --> 00:06:19.120 really good idea to make sure that your 00:06:19.120 --> 00:06:21.400 name or your student name is is is 00:06:21.400 --> 00:06:24.360 included in the project name and today 00:06:24.360 --> 00:06:28.000 we're making a biodiversity counter so 00:06:28.000 --> 00:06:29.840 I'm going to name my project blana 00:06:29.840 --> 00:06:33.800 biodiversity counter and click on 00:06:33.800 --> 00:06:36.520 create okay so this has opened up the 00:06:36.520 --> 00:06:39.800 make code editor so we can see that 00:06:39.800 --> 00:06:41.759 there's some blocks of code already in 00:06:41.759 --> 00:06:43.400 the workspace here on the right now I'm 00:06:43.400 --> 00:06:45.120 going to make that a little bit bigger 00:06:45.120 --> 00:06:47.120 by using this plus sign in the bottom 00:06:47.120 --> 00:06:49.240 right hand side going to zoom in on my 00:06:49.240 --> 00:06:51.800 blocks of code a little bit do you think 00:06:51.800 --> 00:06:53.720 that's large enough Giles I think so I 00:06:53.720 --> 00:06:55.000 can see that really clearly thank you 00:06:55.000 --> 00:06:58.080 blet okay brilliant so um this is the 00:06:58.080 --> 00:06:59.599 workspace this is where you can draw 00:06:59.599 --> 00:07:01.639 drag blocks of codee around and you drag 00:07:01.639 --> 00:07:03.680 them in from the toolbox over here and 00:07:03.680 --> 00:07:06.199 you build your code in this space now we 00:07:06.199 --> 00:07:08.160 won't need the forever block for our 00:07:08.160 --> 00:07:09.560 project today so I'm actually going to 00:07:09.560 --> 00:07:11.160 show you how to delete the blocks as 00:07:11.160 --> 00:07:14.919 well by dragging them onto the uh the 00:07:14.919 --> 00:07:17.080 the menu here or the toolbox and then 00:07:17.080 --> 00:07:19.080 just letting go and it will delete a 00:07:19.080 --> 00:07:22.400 block um when you have a look inside 00:07:22.400 --> 00:07:24.120 this menu you can see that there's lots 00:07:24.120 --> 00:07:27.080 of pre-prepared blocks of code ready to 00:07:27.080 --> 00:07:29.720 go you don't need to have to know what 00:07:29.720 --> 00:07:32.160 to type like you would in a text based 00:07:32.160 --> 00:07:34.800 um editor you can just take the blocks 00:07:34.800 --> 00:07:36.639 and you can drag and drop them onto the 00:07:36.639 --> 00:07:38.520 workspace as you need 00:07:38.520 --> 00:07:41.360 them um on the left hand side here we've 00:07:41.360 --> 00:07:44.319 also got the simulator so we'll be using 00:07:44.319 --> 00:07:46.240 this today to check that everything is 00:07:46.240 --> 00:07:48.840 working before we put our code on our 00:07:48.840 --> 00:07:51.919 microbit and take them outside to do our 00:07:51.919 --> 00:07:55.720 biodiversity logging um we'll also be 00:07:55.720 --> 00:07:58.360 using the download button we just take 00:07:58.360 --> 00:08:00.039 off the banner for a second perfect 00:08:00.039 --> 00:08:02.360 thank you Giles so the download button 00:08:02.360 --> 00:08:04.120 here bottom left that will be used at 00:08:04.120 --> 00:08:07.159 the end of the session so that we uh can 00:08:07.159 --> 00:08:10.840 put our code onto our microbit so we 00:08:10.840 --> 00:08:12.919 will if I just show you on my screen let 00:08:12.919 --> 00:08:17.479 me get a view of me on the screen 00:08:17.560 --> 00:08:20.840 second so on the microbit here we will 00:08:20.840 --> 00:08:23.159 use the USB lead we will plug that into 00:08:23.159 --> 00:08:25.000 our computer and we'll plug the other 00:08:25.000 --> 00:08:26.960 end into our microbit and we will press 00:08:26.960 --> 00:08:28.560 download and we will put the code on the 00:08:28.560 --> 00:08:30.720 microbit and then attach the battery 00:08:30.720 --> 00:08:32.560 pack so that we can bring it outside 00:08:32.560 --> 00:08:36.320 into the environment and uh code and use 00:08:36.320 --> 00:08:40.279 the code we have created that way okay 00:08:40.279 --> 00:08:42.800 so coming back to our project that we're 00:08:42.800 --> 00:08:45.839 going to create today um I'm going to 00:08:45.839 --> 00:08:48.399 stop here and have a little think about 00:08:48.399 --> 00:08:51.480 what my program is going to do I want to 00:08:51.480 --> 00:08:54.560 use my microbit in the playground ler to 00:08:54.560 --> 00:08:57.279 count two different things the number of 00:08:57.279 --> 00:08:59.200 animal species and the number of plant 00:08:59.200 --> 00:09:01.560 species species I want the microbit to 00:09:01.560 --> 00:09:03.880 count for me and remember how many of 00:09:03.880 --> 00:09:05.200 these species I spotted because there's 00:09:05.200 --> 00:09:06.800 absolutely no way I'm going to keep all 00:09:06.800 --> 00:09:09.680 that information in my head so I want 00:09:09.680 --> 00:09:11.640 the microbit to remember the information 00:09:11.640 --> 00:09:14.079 or the data so that means I need to 00:09:14.079 --> 00:09:17.800 create two different variables so in the 00:09:17.800 --> 00:09:21.160 toolbox here we've got variables as a 00:09:21.160 --> 00:09:24.320 red menu section of the menu so if I 00:09:24.320 --> 00:09:26.680 click on variables you'll see it gives 00:09:26.680 --> 00:09:28.720 me one option right now and that is to 00:09:28.720 --> 00:09:31.240 make a variable able so variables are 00:09:31.240 --> 00:09:33.000 like containers they will hold different 00:09:33.000 --> 00:09:34.680 pieces of information and they will keep 00:09:34.680 --> 00:09:37.160 updating as we use the microbit and add 00:09:37.160 --> 00:09:38.120 more 00:09:38.120 --> 00:09:41.240 information so the two uh variables I 00:09:41.240 --> 00:09:44.120 want to create today are I click on make 00:09:44.120 --> 00:09:45.640 a variable and then I name them so I'm 00:09:45.640 --> 00:09:48.200 going to call my first one animal 00:09:48.200 --> 00:09:51.399 species and click okay and then I'm 00:09:51.399 --> 00:09:53.519 going to oh you see straight away some 00:09:53.519 --> 00:09:56.079 Co some blocks of code have appeared 00:09:56.079 --> 00:09:57.519 because I've created this variable so 00:09:57.519 --> 00:09:58.880 we've got some other blocks of code here 00:09:58.880 --> 00:10:02.160 we can use later and then I click on 00:10:02.160 --> 00:10:03.920 make a variable again and I'm going to 00:10:03.920 --> 00:10:05.880 call this plant 00:10:05.880 --> 00:10:09.880 species and click on okay so now I've 00:10:09.880 --> 00:10:14.000 got options to use these blocks of code 00:10:14.000 --> 00:10:17.640 to change it from animal to plant when I 00:10:17.640 --> 00:10:20.320 need it and I've made my two variables 00:10:20.320 --> 00:10:21.959 if I go back into variables here I can 00:10:21.959 --> 00:10:23.800 see them sitting here animal species and 00:10:23.800 --> 00:10:24.880 plant 00:10:24.880 --> 00:10:28.000 species okay so let me just delete that 00:10:28.000 --> 00:10:31.040 properly there we go 00:10:31.040 --> 00:10:34.240 so everyone approaches coding a little 00:10:34.240 --> 00:10:35.959 bit differently and sometimes there are 00:10:35.959 --> 00:10:37.440 different ways to achieve the same 00:10:37.440 --> 00:10:39.920 things so Giles what would you do next 00:10:39.920 --> 00:10:41.880 now that we've created the variables 00:10:41.880 --> 00:10:43.320 well I was just thinking about that when 00:10:43.320 --> 00:10:45.800 I turn on my mic a bit and the program 00:10:45.800 --> 00:10:49.320 starts I won't have counted any Vari I 00:10:49.320 --> 00:10:51.200 won't have counted any animal species or 00:10:51.200 --> 00:10:53.920 plant species yet so I'm thinking 00:10:53.920 --> 00:10:56.760 whether it's a good idea to set both 00:10:56.760 --> 00:11:00.240 variables to zero so what I might do is 00:11:00.240 --> 00:11:03.320 I might go into the variables 00:11:03.320 --> 00:11:07.560 menu and take set plant species to zero 00:11:07.560 --> 00:11:11.079 and drag that into the on block anything 00:11:11.079 --> 00:11:13.760 you put in the onstart block will um the 00:11:13.760 --> 00:11:15.880 microbit will carry out that instruction 00:11:15.880 --> 00:11:17.639 when the program starts running so it's 00:11:17.639 --> 00:11:20.320 going to set the zero uh set the plant 00:11:20.320 --> 00:11:22.480 species to zero at the start of the 00:11:22.480 --> 00:11:25.959 program then I drag the same block again 00:11:25.959 --> 00:11:29.040 so I go back into variables and drag out 00:11:29.040 --> 00:11:31.360 set plant species to zero again but I'm 00:11:31.360 --> 00:11:35.040 going to change maybe plant species to 00:11:35.040 --> 00:11:36.120 animal 00:11:36.120 --> 00:11:39.480 species so we have plant species and 00:11:39.480 --> 00:11:41.720 animal species both set to zero at the 00:11:41.720 --> 00:11:43.320 start of the program do you think that's 00:11:43.320 --> 00:11:46.600 a good idea blet yes definitely I would 00:11:46.600 --> 00:11:48.160 I would have done the same thing at this 00:11:48.160 --> 00:11:50.000 point for sure to make sure that the 00:11:50.000 --> 00:11:51.920 microbit knows to start counting from 00:11:51.920 --> 00:11:54.519 zero for each of those variables there's 00:11:54.519 --> 00:11:56.760 one other thing I do as well um there's 00:11:56.760 --> 00:11:58.720 nothing on the screen of the microbit 00:11:58.720 --> 00:12:00.680 when you turn on at the moment and I 00:12:00.680 --> 00:12:02.639 think it would be useful to also show a 00:12:02.639 --> 00:12:04.959 zero on the screen so I'm going to add 00:12:04.959 --> 00:12:07.519 in that instruction I'm going to go into 00:12:07.519 --> 00:12:10.600 the basic menu so the menus are all 00:12:10.600 --> 00:12:13.279 colorcoded and blue blocks are from the 00:12:13.279 --> 00:12:15.399 basic menu I'm going to take the first 00:12:15.399 --> 00:12:17.720 one here show number and I'm going to 00:12:17.720 --> 00:12:20.800 drag that in to the onart block here 00:12:20.800 --> 00:12:23.000 it's already got the number zero in it 00:12:23.000 --> 00:12:25.120 and now you can see the simulator has 00:12:25.120 --> 00:12:27.720 updated and when my mic bit starts it 00:12:27.720 --> 00:12:31.600 will show a zero on the screen as well 00:12:31.600 --> 00:12:34.040 okay so let's have a quick recap to to 00:12:34.040 --> 00:12:35.680 make sure that everyone is keeping up 00:12:35.680 --> 00:12:37.560 when they're coding along in their 00:12:37.560 --> 00:12:40.000 classrooms so have you made your 00:12:40.000 --> 00:12:41.920 variables remember we went into 00:12:41.920 --> 00:12:44.320 variables we clicked make a variable and 00:12:44.320 --> 00:12:46.720 we made two one called animal species 00:12:46.720 --> 00:12:50.120 and one called plant species okay have 00:12:50.120 --> 00:12:52.800 you set your variables to zero we took 00:12:52.800 --> 00:12:55.600 out this one set plant species to zero 00:12:55.600 --> 00:12:56.959 and we used it 00:12:56.959 --> 00:12:59.480 twice but we changed it using the drop 00:12:59.480 --> 00:13:01.399 down menu from plant species to animal 00:13:01.399 --> 00:13:04.920 species and we popped that into the 00:13:04.920 --> 00:13:07.880 onstart block and then we added a zero 00:13:07.880 --> 00:13:09.959 through using the show Number Block here 00:13:09.959 --> 00:13:14.720 in the basic menu as well okay 00:13:14.720 --> 00:13:16.639 so that 00:13:16.639 --> 00:13:20.519 means we have got started but there's 00:13:20.519 --> 00:13:23.440 two very important things that we need 00:13:23.440 --> 00:13:25.920 to do next and they're both to do with 00:13:25.920 --> 00:13:28.079 using the buttons on the microbit 00:13:28.079 --> 00:13:29.480 because we're going to be using both 00:13:29.480 --> 00:13:33.079 button a and button B uh that are on the 00:13:33.079 --> 00:13:35.600 front of the microbit so we're going to 00:13:35.600 --> 00:13:37.880 use one button to log data about animal 00:13:37.880 --> 00:13:39.760 species and we're going to use another 00:13:39.760 --> 00:13:41.680 button to log the data about plant 00:13:41.680 --> 00:13:45.959 species so let's start with button a 00:13:45.959 --> 00:13:48.079 here are a few 00:13:48.079 --> 00:13:52.160 clues for what we're going to 00:13:52.160 --> 00:13:54.880 use button a for any 00:13:54.880 --> 00:13:59.880 ideas well um let me see we had uh a 00:13:59.880 --> 00:14:03.040 butterfly we've had uh a bird and a 00:14:03.040 --> 00:14:07.040 snail so I think a is going to be for 00:14:07.040 --> 00:14:10.560 Animals correct yes A is for Animals is 00:14:10.560 --> 00:14:13.360 animals that's easy to remember yes so 00:14:13.360 --> 00:14:15.480 all the pictures are animals so button a 00:14:15.480 --> 00:14:18.240 is going to lck the animal species so to 00:14:18.240 --> 00:14:19.800 make something happen on the micob bit 00:14:19.800 --> 00:14:22.240 when we press button a we will need the 00:14:22.240 --> 00:14:24.680 on button a press block so you'll find 00:14:24.680 --> 00:14:26.959 this in a new menu the the purple 00:14:26.959 --> 00:14:29.839 purpley pink menu here called 00:14:29.839 --> 00:14:32.600 if I go into that menu the very first 00:14:32.600 --> 00:14:35.040 block is on button a press so let's pull 00:14:35.040 --> 00:14:37.360 that out and put that into the 00:14:37.360 --> 00:14:41.040 workspace okay so we want the animal 00:14:41.040 --> 00:14:44.320 species uh variable to update by one 00:14:44.320 --> 00:14:47.480 each time we press button a so that 00:14:47.480 --> 00:14:49.000 means I need to go back into my 00:14:49.000 --> 00:14:52.759 variables menu in here and I I'm looking 00:14:52.759 --> 00:14:55.160 at the second block here I want to 00:14:55.160 --> 00:14:57.639 change something by one when I press 00:14:57.639 --> 00:15:00.920 button a now when I pull this out just 00:15:00.920 --> 00:15:02.920 pop it there for a moment it it goes 00:15:02.920 --> 00:15:04.240 this strange color because it's not 00:15:04.240 --> 00:15:07.079 inside uh a working block at the moment 00:15:07.079 --> 00:15:09.000 but I can still manipulate it here I can 00:15:09.000 --> 00:15:10.720 still change it to what I want so I 00:15:10.720 --> 00:15:12.600 actually want to change the animal 00:15:12.600 --> 00:15:14.839 species on but a so I'm going to switch 00:15:14.839 --> 00:15:17.759 that to animal species and I pop it 00:15:17.759 --> 00:15:22.240 inside the on button a pressed block so 00:15:22.240 --> 00:15:25.040 that means that the microbit will update 00:15:25.040 --> 00:15:27.079 the total number of animal 00:15:27.079 --> 00:15:31.720 species each time we press button a uh 00:15:31.720 --> 00:15:34.720 on the micro bit 00:15:34.759 --> 00:15:37.959 itself okay Planet I I got a question 00:15:37.959 --> 00:15:40.000 here I I've been following along I've 00:15:40.000 --> 00:15:41.880 got the same blocks as you but when I 00:15:41.880 --> 00:15:45.560 press button a I just get zero on the 00:15:45.560 --> 00:15:47.839 screen even though I keep pressing 00:15:47.839 --> 00:15:50.639 button a have I done something wrong not 00:15:50.639 --> 00:15:53.680 at all Giles um 00:15:53.680 --> 00:15:56.560 I I have the same thing happening on my 00:15:56.560 --> 00:16:00.440 mic bit on here so I might be pressing 00:16:00.440 --> 00:16:02.519 on my simulator I might press butt a a 00:16:02.519 --> 00:16:04.240 couple of times but my screen has not 00:16:04.240 --> 00:16:06.639 changed so you have not done anything 00:16:06.639 --> 00:16:09.839 wrong you just have not given the 00:16:09.839 --> 00:16:12.120 microbit the instructions to do that 00:16:12.120 --> 00:16:15.560 part yet okay the micr will only do what 00:16:15.560 --> 00:16:18.160 you ask it to do if we want to see the 00:16:18.160 --> 00:16:20.839 total on the LED display then we need to 00:16:20.839 --> 00:16:22.360 put those instructions in and ask the 00:16:22.360 --> 00:16:24.120 microbit to show it to us so let's add a 00:16:24.120 --> 00:16:26.000 few more blocks to make that 00:16:26.000 --> 00:16:30.880 happen so if we go into to um what are 00:16:30.880 --> 00:16:32.440 we going to go we're going to go into 00:16:32.440 --> 00:16:35.519 into basic first of all and we're going 00:16:35.519 --> 00:16:39.399 to scroll down to the show icon block 00:16:39.399 --> 00:16:42.319 okay so this will help us know that when 00:16:42.319 --> 00:16:44.600 it shows us data on the LED display it's 00:16:44.600 --> 00:16:48.839 talking about animal species data so I'm 00:16:48.839 --> 00:16:51.440 going to pop that in here and I'm going 00:16:51.440 --> 00:16:53.639 to change the icon from a heart to 00:16:53.639 --> 00:16:55.480 something that resembles an animal 00:16:55.480 --> 00:16:57.920 species so let's have a look got lots of 00:16:57.920 --> 00:17:00.240 pre-prepared icons here right I'm going 00:17:00.240 --> 00:17:02.680 to choose the duck so we've got a little 00:17:02.680 --> 00:17:06.559 duck icon to to stand for our animal 00:17:06.559 --> 00:17:09.640 species right um the next thing I'm 00:17:09.640 --> 00:17:11.360 going to do is I'm going to go back into 00:17:11.360 --> 00:17:13.280 basic and I'm going to take the show 00:17:13.280 --> 00:17:15.439 number block again and I'm going to pop 00:17:15.439 --> 00:17:18.400 it in below now this time I don't want 00:17:18.400 --> 00:17:21.160 to the show Number Block to show us zero 00:17:21.160 --> 00:17:23.199 I want it to show the total number of 00:17:23.199 --> 00:17:25.880 animal species on the LED display so 00:17:25.880 --> 00:17:29.039 I've got to go back into variables and 00:17:29.039 --> 00:17:31.520 find my animal species block the small 00:17:31.520 --> 00:17:34.440 one here so I take this out and you can 00:17:34.440 --> 00:17:37.720 see how it can slot in over the zero and 00:17:37.720 --> 00:17:41.280 replace it so we do that and then our 00:17:41.280 --> 00:17:43.039 code will 00:17:43.039 --> 00:17:46.520 update okay so now if we test if it's 00:17:46.520 --> 00:17:48.679 working on the simulator it should work 00:17:48.679 --> 00:17:51.000 this time but actually I've got an idea 00:17:51.000 --> 00:17:53.880 to test that Giles so do you remember 00:17:53.880 --> 00:17:57.000 this this slide that we looked at 00:17:57.000 --> 00:18:01.320 earlier oh yeah was it again how many 00:18:01.320 --> 00:18:03.559 times I press a if these were the 00:18:03.559 --> 00:18:06.080 animals I'd seen outside oh gosh right 00:18:06.080 --> 00:18:07.960 I'm trying to remember again we had 00:18:07.960 --> 00:18:11.320 snails and uh that was one species and 00:18:11.320 --> 00:18:12.919 then we had two butterflies but that's 00:18:12.919 --> 00:18:14.520 only one more species because they're 00:18:14.520 --> 00:18:17.000 both both the same species so that's one 00:18:17.000 --> 00:18:21.240 more uh we had a bird and we've got a 00:18:21.240 --> 00:18:23.440 fly and I've got a worm so I think it 00:18:23.440 --> 00:18:26.159 was five different animal species that 00:18:26.159 --> 00:18:29.840 we have there correct well done J yes so 00:18:29.840 --> 00:18:33.159 on my simulator now I am going to press 00:18:33.159 --> 00:18:35.400 a five times and let's see if we can see 00:18:35.400 --> 00:18:38.039 something happening and 00:18:38.039 --> 00:18:44.120 see yes there we go one two 3 00:18:44.120 --> 00:18:47.039 4 five so we've now given the correct 00:18:47.039 --> 00:18:49.080 instructions yeah so we can see now that 00:18:49.080 --> 00:18:50.919 when we log one it will give us some 00:18:50.919 --> 00:18:52.960 feedback on the LED display to know that 00:18:52.960 --> 00:18:56.919 it's happened um so if everyone has got 00:18:56.919 --> 00:19:00.799 this part coded then that means we are 00:19:00.799 --> 00:19:04.360 halfway there 00:19:05.480 --> 00:19:07.280 yay 00:19:07.280 --> 00:19:10.360 fantastic fantastic so we're halfway 00:19:10.360 --> 00:19:12.799 there um and we've told the microb bit 00:19:12.799 --> 00:19:14.400 what to do when we press button a when 00:19:14.400 --> 00:19:17.480 we're counting animal species but we 00:19:17.480 --> 00:19:20.600 haven't yet told it what to do when we 00:19:20.600 --> 00:19:24.320 press button B now I wonder if anyone 00:19:24.320 --> 00:19:27.600 can remember what are we going to count 00:19:27.600 --> 00:19:30.000 when we press but button B can anyone 00:19:30.000 --> 00:19:31.760 remember that 00:19:31.760 --> 00:19:36.360 I ah right so we've got uh some flowers 00:19:36.360 --> 00:19:37.840 we've got a 00:19:37.840 --> 00:19:43.640 tree um oh and some more plants oh is it 00:19:43.640 --> 00:19:45.159 plant species 00:19:45.159 --> 00:19:48.000 Jiles might be plant species that we're 00:19:48.000 --> 00:19:49.640 getting when we press button 00:19:49.640 --> 00:19:52.240 D so what we want to do is we want to 00:19:52.240 --> 00:19:55.640 use button B to to log plant species so 00:19:55.640 --> 00:19:59.840 what we can do now is we can dup at or 00:19:59.840 --> 00:20:02.960 copy the blocks that we have for button 00:20:02.960 --> 00:20:04.880 a I wonder bled could you show us how to 00:20:04.880 --> 00:20:05.960 do 00:20:05.960 --> 00:20:07.960 that what do you can you just tell us 00:20:07.960 --> 00:20:09.640 what you're doing there to get that that 00:20:09.640 --> 00:20:12.240 menu to pop up yeah so I've put my 00:20:12.240 --> 00:20:15.360 cursor over the entire block on button a 00:20:15.360 --> 00:20:17.520 pressed and then I've right clicked and 00:20:17.520 --> 00:20:19.520 then I get the menu at duplicate at the 00:20:19.520 --> 00:20:21.240 top so you can duplicate that's one way 00:20:21.240 --> 00:20:22.919 of doing it or you can just fetch the 00:20:22.919 --> 00:20:25.360 blocks again uh from the toolbox in the 00:20:25.360 --> 00:20:27.000 middle but just because it's quicker and 00:20:27.000 --> 00:20:28.840 easier we're going to show you uh how to 00:20:28.840 --> 00:20:30.600 duplicate so if you click on that and 00:20:30.600 --> 00:20:32.720 duplicate the block you'll see again 00:20:32.720 --> 00:20:34.440 like a bit like it did before the blocks 00:20:34.440 --> 00:20:36.559 have gone a funny color uh and that's 00:20:36.559 --> 00:20:39.520 because we've got two on button a press 00:20:39.520 --> 00:20:41.919 blocks and we can only have one uh set 00:20:41.919 --> 00:20:43.960 of instructions for what to do when you 00:20:43.960 --> 00:20:45.679 press button a otherwise the microbit 00:20:45.679 --> 00:20:48.159 will get really confused so first thing 00:20:48.159 --> 00:20:51.360 we need to do is to change button a to 00:20:51.360 --> 00:20:55.919 button B okay and then because we're not 00:20:55.919 --> 00:20:57.720 counting animal species anymore we need 00:20:57.720 --> 00:21:01.159 to change animal species to plant 00:21:01.159 --> 00:21:03.080 species and I think it would be a good 00:21:03.080 --> 00:21:05.280 idea to show a different picture at this 00:21:05.280 --> 00:21:07.480 point not a duck so we'll pick something 00:21:07.480 --> 00:21:09.760 else so if you click on that have a look 00:21:09.760 --> 00:21:11.760 and pick something there is I think 00:21:11.760 --> 00:21:13.960 there's a fork icon that looks a little 00:21:13.960 --> 00:21:17.279 bit like a tree that's it that one we 00:21:17.279 --> 00:21:19.919 can pick that you can also draw your own 00:21:19.919 --> 00:21:21.640 plant icon as well if you like you can 00:21:21.640 --> 00:21:24.360 use the show LEDs Block in the basic 00:21:24.360 --> 00:21:25.840 category and you can draw your own 00:21:25.840 --> 00:21:27.880 picture of an animal or a plant but 00:21:27.880 --> 00:21:29.480 we're just going to pick the the fork 00:21:29.480 --> 00:21:32.039 icon because it looks a bit like a tree 00:21:32.039 --> 00:21:33.799 uh and then I think there's one more 00:21:33.799 --> 00:21:35.440 thing we need to change yeah well 00:21:35.440 --> 00:21:37.240 spotted bled because at the moment the 00:21:37.240 --> 00:21:39.159 code is going to show the animal species 00:21:39.159 --> 00:21:40.720 number when we press button B and that 00:21:40.720 --> 00:21:42.600 would be wrong so we need to click on 00:21:42.600 --> 00:21:45.640 the little arrow on that and change that 00:21:45.640 --> 00:21:48.120 to plant 00:21:48.120 --> 00:21:49.640 species 00:21:49.640 --> 00:21:52.039 perfect thank you Giles I think that's 00:21:52.039 --> 00:21:53.520 looking like it should work really well 00:21:53.520 --> 00:21:55.320 and we should be able to test out button 00:21:55.320 --> 00:22:00.679 B on the simulator now as well um so if 00:22:00.679 --> 00:22:04.159 I was outside and these were all the 00:22:04.159 --> 00:22:06.159 plants I saw while I was in my 00:22:06.159 --> 00:22:09.240 playground how many plant species would 00:22:09.240 --> 00:22:12.120 I log how many times do I press button B 00:22:12.120 --> 00:22:13.600 oh that's a good question because I can 00:22:13.600 --> 00:22:15.400 see lots of flowers there so I might 00:22:15.400 --> 00:22:18.200 want to keep clicking uh and click lots 00:22:18.200 --> 00:22:19.799 of flowers but I need to think I need to 00:22:19.799 --> 00:22:22.240 be really careful about this I think 00:22:22.240 --> 00:22:24.480 there are only two species here because 00:22:24.480 --> 00:22:26.960 I've got flowers like daisies they look 00:22:26.960 --> 00:22:28.520 the same so although there's lots of FL 00:22:28.520 --> 00:22:31.159 flowers there that's only one species 00:22:31.159 --> 00:22:33.120 that I've spotted and then there's some 00:22:33.120 --> 00:22:35.240 Ivy some leaves growing in the middle so 00:22:35.240 --> 00:22:37.720 I think here if I saw that when I went 00:22:37.720 --> 00:22:40.720 outside I would log two plant species I 00:22:40.720 --> 00:22:44.279 would press button B twice fantastic 00:22:44.279 --> 00:22:46.559 that is very accurate and correct so I'm 00:22:46.559 --> 00:22:51.679 going to do button B twice now on my 00:22:51.679 --> 00:22:54.000 simulator and there we go we can see the 00:22:54.000 --> 00:22:56.240 plant icon came up and the number came 00:22:56.240 --> 00:22:57.919 up each time as well which is exactly 00:22:57.919 --> 00:23:00.919 what we've asked it to do using the code 00:23:00.919 --> 00:23:03.360 so that's that's fantastic Planet that's 00:23:03.360 --> 00:23:05.600 really good but the number just flashes 00:23:05.600 --> 00:23:10.440 up what if I can't remember the number 00:23:10.440 --> 00:23:13.240 of animal species and plant species is 00:23:13.240 --> 00:23:15.559 there a way we can get to see the the 00:23:15.559 --> 00:23:18.039 sort of running total without having to 00:23:18.039 --> 00:23:20.720 add a new one each time yeah that's a 00:23:20.720 --> 00:23:21.960 really good point because I can't 00:23:21.960 --> 00:23:23.559 remember now even how many animal 00:23:23.559 --> 00:23:25.120 species we'd already logged a few 00:23:25.120 --> 00:23:28.159 minutes ago so we definitely need to to 00:23:28.159 --> 00:23:30.039 to add that in because we don't want to 00:23:30.039 --> 00:23:33.799 get our numbers muddled up so um let's 00:23:33.799 --> 00:23:35.919 use the icons again to make it clear 00:23:35.919 --> 00:23:37.919 which total is coming up on the LED 00:23:37.919 --> 00:23:42.039 display but let's also um use a new 00:23:42.039 --> 00:23:43.720 input so we've used button a and we've 00:23:43.720 --> 00:23:46.600 used button B to do our actual logging 00:23:46.600 --> 00:23:49.640 but now let's use the touch logo on the 00:23:49.640 --> 00:23:51.679 front of the microbit as the input to 00:23:51.679 --> 00:23:54.080 show us our totals so you'll find that 00:23:54.080 --> 00:23:56.880 in the inputs menu and if you scroll 00:23:56.880 --> 00:23:59.440 right down past where it says microbit 00:23:59.440 --> 00:24:03.120 V2 right down here we get the on Logo 00:24:03.120 --> 00:24:05.919 pressed block so if I pull that out now 00:24:05.919 --> 00:24:10.600 I'm going to use this as my input now I 00:24:10.600 --> 00:24:12.799 said we wanted to use the icons again so 00:24:12.799 --> 00:24:14.279 that's the next time we're going next 00:24:14.279 --> 00:24:15.279 thing we're going to do we're going to 00:24:15.279 --> 00:24:17.840 go to basic we're going to drag out our 00:24:17.840 --> 00:24:20.799 show icon pop it in here and I'm going 00:24:20.799 --> 00:24:23.640 to change this one to the animal icon 00:24:23.640 --> 00:24:24.919 we' selected 00:24:24.919 --> 00:24:28.360 earlier and then I want to show my total 00:24:28.360 --> 00:24:31.159 to Al number of animal species counted 00:24:31.159 --> 00:24:34.240 so if I go back into basic take show 00:24:34.240 --> 00:24:38.080 number pop it in and then I find my 00:24:38.080 --> 00:24:40.240 variable my animal species variable in 00:24:40.240 --> 00:24:43.320 the variables menu pull that out and 00:24:43.320 --> 00:24:46.880 that goes on top so that means when you 00:24:46.880 --> 00:24:49.600 press the logo the duck icon will will 00:24:49.600 --> 00:24:51.760 come up and then the total number of 00:24:51.760 --> 00:24:54.480 animal species now I also want to to see 00:24:54.480 --> 00:24:55.919 the plant species but I don't want it 00:24:55.919 --> 00:24:58.520 all to happen too quickly it needs to be 00:24:58.520 --> 00:25:00.279 clear when we read it off the screen and 00:25:00.279 --> 00:25:02.360 then when there's numbers that are 00:25:02.360 --> 00:25:04.799 two-digit or even three-digit numbers 00:25:04.799 --> 00:25:06.720 they will scroll so we need a little bit 00:25:06.720 --> 00:25:09.159 of time for the microbit to do its thing 00:25:09.159 --> 00:25:11.760 so we're going to leave a small pause so 00:25:11.760 --> 00:25:15.480 if I go back into basic and scroll down 00:25:15.480 --> 00:25:18.120 find the pause block I'm going to pop 00:25:18.120 --> 00:25:21.520 that in and let's pause for two 00:25:21.520 --> 00:25:24.080 seconds that shows up as 2,000 00:25:24.080 --> 00:25:27.000 milliseconds on the Block and then I'm 00:25:27.000 --> 00:25:28.799 going to go back into basic and another 00:25:28.799 --> 00:25:30.720 time and I'm going to get the clear 00:25:30.720 --> 00:25:33.200 screen block here so that clean the 00:25:33.200 --> 00:25:35.840 screen goes completely clear before it 00:25:35.840 --> 00:25:37.240 me any of the 00:25:37.240 --> 00:25:41.720 plant species data so now I want to show 00:25:41.720 --> 00:25:43.799 the plant species data actually I'll 00:25:43.799 --> 00:25:45.760 just do one more pause before that so 00:25:45.760 --> 00:25:47.679 I'm going to duplicate that block be 00:25:47.679 --> 00:25:50.000 doubly sure that the screen clears and 00:25:50.000 --> 00:25:54.120 has time to clear now back into basic 00:25:54.120 --> 00:25:57.880 take your show icon change that to our 00:25:57.880 --> 00:26:02.640 tree like icon here go back into basic 00:26:02.640 --> 00:26:06.080 take another show number and this time 00:26:06.080 --> 00:26:08.559 in the variables menu I choose plant 00:26:08.559 --> 00:26:14.159 species and put it in there so hopefully 00:26:14.159 --> 00:26:16.080 that will have given the microbit the 00:26:16.080 --> 00:26:18.679 instructions needed for us to see the 00:26:18.679 --> 00:26:22.559 totals on the screen when we want to to 00:26:22.559 --> 00:26:24.919 recap how many we've counted of each so 00:26:24.919 --> 00:26:26.679 shall we try out on the simulator now 00:26:26.679 --> 00:26:28.559 Giles I think that sounds like a really 00:26:28.559 --> 00:26:30.000 good idea right I'm going to put you to 00:26:30.000 --> 00:26:32.559 the test I'm going to show you some 00:26:32.559 --> 00:26:34.840 pictures and see if you can count along 00:26:34.840 --> 00:26:36.880 and correctly count the species I'm 00:26:36.880 --> 00:26:40.000 going to reset my microb bit first just 00:26:40.000 --> 00:26:41.760 clear any of the data we've done so far 00:26:41.760 --> 00:26:42.799 so you would do that on the real 00:26:42.799 --> 00:26:44.120 microbit with the reset button on the 00:26:44.120 --> 00:26:45.880 back but I've just pressed this uh 00:26:45.880 --> 00:26:49.080 symbol here on the simulator okay test 00:26:49.080 --> 00:26:51.720 me fantastic are you ready yes okay here 00:26:51.720 --> 00:26:54.840 we go that's a tree so that's a plant 00:26:54.840 --> 00:26:57.159 species so that's one plant species so 00:26:57.159 --> 00:26:59.559 far oh that's another tree so hang on I 00:26:59.559 --> 00:27:02.159 need to have pressed B once but not 00:27:02.159 --> 00:27:04.520 again because they're the same species 00:27:04.520 --> 00:27:08.080 well done okay let's try one more right 00:27:08.080 --> 00:27:09.840 that's a different plant species so I'm 00:27:09.840 --> 00:27:12.080 going to press B again that's the second 00:27:12.080 --> 00:27:14.880 plant species I've 00:27:15.000 --> 00:27:17.679 seen there's our lovely Robin that's a 00:27:17.679 --> 00:27:21.159 animal species a bird 00:27:21.159 --> 00:27:25.320 okay and I'll give you one more okay 00:27:25.320 --> 00:27:26.799 fantastic that's 00:27:26.799 --> 00:27:31.080 another animal species so let's see if I 00:27:31.080 --> 00:27:34.840 go to my touch logo and I click this now 00:27:34.840 --> 00:27:36.000 let's see what 00:27:36.000 --> 00:27:38.039 happens animals 00:27:38.039 --> 00:27:41.159 to should clear the screen there a 00:27:41.159 --> 00:27:44.720 little pause there two fantastic 00:27:44.720 --> 00:27:49.200 fantastic well done woohoo so that's it 00:27:49.200 --> 00:27:51.640 if you have got this far with us you 00:27:51.640 --> 00:27:54.679 have now coded your biodiversity code 00:27:54.679 --> 00:27:57.240 along uh biodiversity counter I should 00:27:57.240 --> 00:28:01.060 say that you can use outside in your 00:28:01.060 --> 00:28:07.200 [Applause] 00:28:07.200 --> 00:28:09.519 playground two lots of Applause and 00:28:09.519 --> 00:28:11.519 cheering that's marvelous so once you 00:28:11.519 --> 00:28:15.159 know the number of the current number of 00:28:15.159 --> 00:28:17.440 animal and plant species you could 00:28:17.440 --> 00:28:19.720 monitor whether this changes over time 00:28:19.720 --> 00:28:21.039 because you could count them again in 00:28:21.039 --> 00:28:23.679 the future um you might want to try some 00:28:23.679 --> 00:28:25.640 things in your local environment to 00:28:25.640 --> 00:28:27.880 improve biodiversity and see if you get 00:28:27.880 --> 00:28:29.480 better better numbers next time if you 00:28:29.480 --> 00:28:31.840 get a more diverse environment with 00:28:31.840 --> 00:28:34.200 different more different kinds of 00:28:34.200 --> 00:28:36.320 plants and there's lots of other things 00:28:36.320 --> 00:28:37.840 you can do with that data that you go 00:28:37.840 --> 00:28:40.519 outside and collect you could present it 00:28:40.519 --> 00:28:43.120 in bar charts or other kinds of graphs 00:28:43.120 --> 00:28:45.399 tally charts you could share your 00:28:45.399 --> 00:28:47.159 findings with other classes in your 00:28:47.159 --> 00:28:49.559 school or you could compare your 00:28:49.559 --> 00:28:51.600 playground to other outdoor environments 00:28:51.600 --> 00:28:55.919 such as Parks or maybe even another 00:28:55.919 --> 00:28:58.919 school fabulous so thank you for those 00:28:58.919 --> 00:29:01.640 ideas Giles they're really useful we we 00:29:01.640 --> 00:29:03.640 have finished coding but there is one 00:29:03.640 --> 00:29:06.320 more really important thing to do you 00:29:06.320 --> 00:29:09.880 need to transfer the code to your real 00:29:09.880 --> 00:29:11.880 life microbit so you can use it to count 00:29:11.880 --> 00:29:14.360 biodiversity in your playground outside 00:29:14.360 --> 00:29:16.559 or another outside area so what we're 00:29:16.559 --> 00:29:19.320 going to do is we're going to um use the 00:29:19.320 --> 00:29:23.600 USB cable to plug our mic bits into the 00:29:23.600 --> 00:29:25.559 computer or laptop that you've been 00:29:25.559 --> 00:29:28.120 using now if you've been using tablets 00:29:28.120 --> 00:29:29.360 then obviously there's a different way 00:29:29.360 --> 00:29:32.159 to transfer the code um I won't demo 00:29:32.159 --> 00:29:34.960 that today but the link that is now 00:29:34.960 --> 00:29:36.880 showing on screen will give you all the 00:29:36.880 --> 00:29:38.919 different options for how to get code 00:29:38.919 --> 00:29:41.200 onto your microbit tablets included so 00:29:41.200 --> 00:29:43.039 you can have a look at that instead but 00:29:43.039 --> 00:29:45.799 I'll just do a very quick demo of how to 00:29:45.799 --> 00:29:48.440 get it on if you're using a laptop or a 00:29:48.440 --> 00:29:52.080 tablet or a um sorry a desktop computer 00:29:52.080 --> 00:29:56.240 so the small part of the USB cable goes 00:29:56.240 --> 00:29:58.480 into the top of the microbit so you can 00:29:58.480 --> 00:30:00.519 see there and then I'm going to plug 00:30:00.519 --> 00:30:01.640 this 00:30:01.640 --> 00:30:05.640 into my um my laptop that I'm using so 00:30:05.640 --> 00:30:08.519 I'm plugging it in here the USB end of 00:30:08.519 --> 00:30:12.159 it goes in okay now I'm just going to 00:30:12.159 --> 00:30:16.240 share my screen before I 00:30:16.240 --> 00:30:19.519 plug the rest of it in so one second 00:30:19.519 --> 00:30:23.760 stop there I'm going to go 00:30:23.760 --> 00:30:25.279 to 00:30:25.279 --> 00:30:29.240 this okay now if I do this this way and 00:30:29.240 --> 00:30:31.399 I get up my 00:30:31.399 --> 00:30:34.200 downloads you will see something appear 00:30:34.200 --> 00:30:36.200 in this menu on the left when I plug in 00:30:36.200 --> 00:30:37.080 my 00:30:37.080 --> 00:30:39.559 microbit so I've plugged it 00:30:39.559 --> 00:30:43.640 in keep an eye here Tada the microbit 00:30:43.640 --> 00:30:45.840 drive has appeared there because my mic 00:30:45.840 --> 00:30:47.960 bit has been plugged in so I know that 00:30:47.960 --> 00:30:51.039 it's connected and so now that I've 00:30:51.039 --> 00:30:54.559 plugged it in on my make code editor I 00:30:54.559 --> 00:30:56.360 need to click on the download button and 00:30:56.360 --> 00:30:58.600 follow the instructions on screen 00:30:58.600 --> 00:31:01.960 so I click that now download and it's 00:31:01.960 --> 00:31:03.519 downloading to my micro bit now if it's 00:31:03.519 --> 00:31:05.279 the first time you've downloaded it may 00:31:05.279 --> 00:31:07.440 ask you to pair it first but you simply 00:31:07.440 --> 00:31:09.480 follow the instructions on screen and it 00:31:09.480 --> 00:31:11.360 will then give you the option to 00:31:11.360 --> 00:31:13.760 download it if that doesn't work for any 00:31:13.760 --> 00:31:16.279 reason there's also a drag and drop 00:31:16.279 --> 00:31:18.760 method where if you download the hex 00:31:18.760 --> 00:31:21.720 file using the three dots next to the 00:31:21.720 --> 00:31:23.760 download button you can click on 00:31:23.760 --> 00:31:25.159 download as 00:31:25.159 --> 00:31:29.679 file okay that has now gone to my 00:31:29.679 --> 00:31:31.679 downloads you can see it here there's 00:31:31.679 --> 00:31:34.120 our project that we just made and I can 00:31:34.120 --> 00:31:36.480 now drag and drop that on top of my 00:31:36.480 --> 00:31:39.559 microbit drive and my microbit will 00:31:39.559 --> 00:31:41.200 start flashing on the back so I know 00:31:41.200 --> 00:31:42.639 that that's working as well so that's 00:31:42.639 --> 00:31:45.799 another way to get it on okay so once 00:31:45.799 --> 00:31:47.919 you've got it on there of course the 00:31:47.919 --> 00:31:49.840 next thing to do is to plug your battery 00:31:49.840 --> 00:31:53.919 pack in unplug it from your uh computer 00:31:53.919 --> 00:31:56.919 and then you can take it outside and get 00:31:56.919 --> 00:31:59.760 going with love the diversity all around 00:31:59.760 --> 00:32:02.559 you in your 00:32:02.600 --> 00:32:05.440 environment that's absolutely fantastic 00:32:05.440 --> 00:32:08.600 so huge thanks to all of you for joining 00:32:08.600 --> 00:32:10.919 our codal along today remember do get in 00:32:10.919 --> 00:32:14.200 touch with us by tagging us you can do 00:32:14.200 --> 00:32:19.240 that on Twitter or X using microbit edu 00:32:19.240 --> 00:32:21.279 be great if you could show how you got 00:32:21.279 --> 00:32:23.559 on making your biodiversity counter 00:32:23.559 --> 00:32:26.120 today and how you use 00:32:26.120 --> 00:32:28.480 them yes thank you to everyone who's 00:32:28.480 --> 00:32:30.360 joined in we hope you've had fun coding 00:32:30.360 --> 00:32:33.279 your biodiversity counter and uh good 00:32:33.279 --> 00:32:35.519 luck investigating biodiversity in your 00:32:35.519 --> 00:32:36.960 local 00:32:36.960 --> 00:32:42.799 environment bye bye for now 00:32:51.650 --> 00:32:58.440 [Music] 00:32:58.440 --> 00:33:01.440 n 00:33:04.930 --> 00:33:34.950 [Music]