< Return to Video

Getting started with micro:bit CreateAI

  • 0:01 - 0:08
    micro:bit CreateAI is a free, web-based tool 
    that makes it easy for students to explore AI  
  • 0:08 - 0:15
    through movement and machine learning, and take 
    it into the real world with the BBC micro:bit. 
  • 0:15 - 0:19
    Add AI to your micro:bit learning 
    experience, by training a machine  
  • 0:19 - 0:25
    learning model with your own movement data 
    and use it in your micro:bit projects. 
  • 0:25 - 0:29
    You’ll need a computer with the Google 
    Chrome or Microsoft Edge web browsers  
  • 0:29 - 0:37
    to access micro:bit CreateAI.
    Click on ‘Get started’ to begin. 
  • 0:37 - 0:44
    First you need to collect some training data.
    You do this in the ‘data samples’ page. 
  • 0:44 - 0:50
    Click ‘Connect’ to connect a micro:bit 
    to CreateAI on your computer. 
  • 0:50 - 0:53
    This is the micro:bit you will 
    move, either holding it in your  
  • 0:53 - 1:00
    hand or attaching it to something that moves.
    We call this the data collection micro:bit. 
  • 1:00 - 1:04
    If your computer has Bluetooth 
    enabled, you just need 1 micro:bit. 
  • 1:04 - 1:10
    If it doesn’t have Bluetooth, you can use 
    a second micro:bit to act as a radio link. 
  • 1:10 - 1:16
    micro:bit CreateAI will show you the best way 
    to connect the data collection micro:bit to your computer.
  • 1:16 - 1:19
    Just follow the instructions on screen.
  • 1:19 - 1:24
    As you move the data collection micro:bit,
    you’ll see live movement data from its
  • 1:24 - 1:29
    accelerometer sensor in a graph
    at the bottom of your computer screen.
  • 1:29 - 1:38
    Choose at least two different movements you want CreateAI to learn to recognise.
    We call these movements ‘actions’. 
  • 1:38 - 1:41
    Waving and clapping are 
    good actions to start with. 
  • 1:41 - 1:46
    Name your first action.
  • 1:46 - 1:54
    Click the ‘Record’ button to collect your first sample of data.
    Each sample lasts 1 second. 
  • 1:54 - 2:00
    You can record one sample at 
    a time or multiple samples. 
  • 2:00 - 2:08
    Collect at least three 
    samples of your first action. 
  • 2:08 - 2:21
    And do the same for at least one other action.
  • 2:24 - 2:35
    Can you see similarities between the graphs of the waving data?
    And differences between waving and clapping? 
  • 2:35 - 2:40
    Next, click on ‘train model’.
  • 2:40 - 2:49
    micro:bit CreateAI analyses your samples of data and creates a set of rules so 
    it can estimate what actions you’re making. 
  • 2:49 - 2:56
    These mathematical rules make up 
    the machine learning, or ML, model. 
  • 2:56 - 3:00
    Now you can test the ML model 
    in the ‘Testing model’ page. 
  • 3:00 - 3:08
    This shows which action the model 
    estimates that you’re making. 
  • 3:08 - 3:12
    The higher the percentage number, 
    the more confident the model is  
  • 3:12 - 3:15
    that you’re making a particular action.
  • 3:15 - 3:21
    Wearing or holding the data collection micro:bit,
    do each of your actions in turn.
  • 3:21 - 3:30
    If the model is not accurately estimating which actions you are doing,
    you may need to review your data and retrain the model. 
  • 3:30 - 3:55
    Click on ‘Edit data samples’ to collect more data samples,
    or delete any samples that you think may not fit.
  • 3:55 - 4:13
    You can also add more actions, for example to teach
    the model what data for ‘being still’ looks like. 
  • 4:13 - 4:20
    Then you can retrain and test your ML model again.
  • 4:20 - 4:26
    Once you’re happy that you’ve made an ML model
    that is good at recognising your chosen actions, 
  • 4:26 - 4:33
    you can use your model in a MakeCode program 
    and put it on a micro:bit.
  • 4:33 - 4:40
    You’ll already have seen some blocks in the Testing model page.
    These are the machine learning, or ML, blocks
  • 4:40 - 4:45
    you can use in your MakeCode programs.
    These blocks make different icons appear  
  • 4:45 - 4:51
    on the micro:bit display when each 
    action is recognised by the ML model. 
  • 4:51 - 4:57
    Click on ‘Edit in MakeCode’ to open the 
    blocks in a special MakeCode editor. 
  • 4:57 - 5:09
    Click on ‘Download’ to transfer your 
    code and your ML model to a micro:bit. 
  • 5:09 - 5:19
    Follow the instructions on screen.
  • 5:19 - 5:26
    Unplug the micro:bit from your computer, attach a battery pack and test it out.
    You can take the micro:bit anywhere. 
  • 5:26 - 5:32
    Your ML model is now running on the micro:bit itself,
    you no longer need a computer to make it work.
  • 5:32 - 5:39
    There are more ML blocks you can use to create your own projects using 
    AI with MakeCode, and you can combine  
  • 5:39 - 5:42
    these with all of the other blocks too.
  • 5:42 - 5:51
    You can also save your project - your data and code blocks - together in one file 
    so you can continue working on it later. 
  • 5:51 - 6:00
    You can do this in CreateAI by clicking 
    ‘Save’ and giving your project a name. 
  • 6:03 - 6:06
    Or you can save your project from MakeCode. 
  • 6:06 - 6:14
    Just click on the 3 dots and 
    choose ‘download as file’. 
  • 6:14 - 6:24
    What will you create with machine learning 
    and MakeCode using micro:bit CreateAI?
Title:
Getting started with micro:bit CreateAI
Description:

more » « less
Video Language:
English
Team:
Microbit_Educational_Foundation
Duration:
06:24
Microbit_Educational_Foundation edited English subtitles for Getting started with micro:bit CreateAI

English subtitles

Revisions