Getting Started with the Micro:bit v2
2020-10-13 | By Kevin Walseth
License: General Public License micro:bit
The beauty of the BBC Micro:Bit is the ability to use makecode to program the micro:bit. It is an online editor which needs no separate programs or apps installed to be downloaded. All you need is an internet connection.
To get started, navigate to makecode.microbit.org/stable (this is the newest editor created for the Micro:bit v2)
Click on “New Project” in purple
- Select Advanced > Add Extension and paste the https://github.com/frumplecoin/demo-extension into the search box.
- Click on the extension to add it to the toolbox.
This will allow you to utilize the new features on the Micro:bit v2
Now let’s see how the new capacitive touch logo works:
Under input, let’s click on “on logo pressed”
Then under Basic, click “show string (Hello!)”
Drag the show string inside the “on logo pressed” puzzle
To download this to the microbit, click on the download button.
This will automatically download it to your “downloads” folder on your computer. The next thing to do is to plug in your micro:bit to your computer. This will bring up a disk drive similar to a flash drive. All you have to do is simply drag and drop the downloaded file onto your micro:bit drive.
It will then program onto the microbit and you can see it operate once you touch the Micro:Bit logo.
Now let’s try the microphone input and speaker.
We can delete the blocks that were created for the logo touch input and start clean.
Add the blocks: “On loud sound”, “show leds”, and “play melody” just like this:
The LED’s is supposed to be the DK logo
Now you can download this to your Micro:Bit. If you scream at it, you should see your image.
These are just a few quick examples utilizing the new sensors and features of the Micro:Bit v2
Share all of your creations using #MAKEWITHDIGIKEY
Have questions or comments? Continue the conversation on TechForum, DigiKey's online community and technical resource.
Visit TechForum