Professional Documents
Culture Documents
CONTENTS
01
The micro:bit initiative
02
The micro:bit
05
Getting started with the Mmicrosoft Block
Editor
06
Uploading programs to the micro:bit
07
Lessons
T h e m i c r o : b i t i n i t i at i v e
Front of board
Button A
The micro:bit
detects when Button B
this button See Button A.
is being
pressed.
Pressing it
completes an
electrical Holes
circuit. For sewing,
Basically, the mounting and
button is a hanging.
form of
input.
back of board
Bluetooth Low Energy Antenna USB Plug
The micro:bit will be a peripheral Programs can be
device and it can talk to a central downloaded from Macs
device like a smartphone. All you have and Windows onto the
to do is to pair it through an app. This micro:bit via a USB. .
means the micro:bit can send signals
to and receive signals from a central
device. BLE will be used to ‘flash’ new Button R
programs onto the micro:bit. System button
(reset button).
Has to be
Processor pressed to
All the ‘flash’ new
micro:bit’s code onto the
programs and device over
data are stored BLE.
here. This tiny
chip designed Battery
by ARM has This socket
128kB flash connects the
memory and external
16kB RAM battery pack
memory. to the board.
Compass Accelerometer
A sensor to detect magnetic Converts analogue information
fields, like the Earth’s, about how quickly the micro:bit’s
allowing the direction of the speed changes to a digital form
micro:bit to be determined that can be used in micro:bit
and converted to a digital programs. Output from the
form that can be used in accelerometer is in milli-g.
micro:bit programs. Output Allows the BBC micro:bit to be
from the compass is in used to control movement of
degrees. on-screen characters.
G e t t i n g s ta r t e d w i t h t h e
microsoft block editor
Create a Block Script
01 02 03
Go to microbit.co.uk in Click Create Code. Click new project.
your web browser.
04
Go ahead and click some of the buttons on screen to see what they do.
Click to exit the editor and it takes you Clicking will bring you
back to a list of your scripts. The open to the Block Editor
script is automatically saved in the cloud. Documentation page.
Click to translate
your Blocks script
into a Touch Develop
Coding area script.
Click to translate
your script into a
file that can run
on your micro:bit.
Click to
execute your
Click a category name to see the script in the
available blocks. To add a block, web browser,
drag it into the coding area. To showing you Zoom feature
remove a block, drag and drop it the results
from the coding area, to the trash on the Trash can
can icon. To combine blocks, drag right-hand
and drop different blocks so that side of the
they fit together like puzzle pieces. screen.
uploading programs to the
micro:bit
Getting your programs onto the micro:bit?
Hit the compile button in the code editor. A .hex file will be
created.
Drag the .hex file onto the drive that corresponds to the micro:bit.
Once the system LED has stopped flashing, press the reset button
on the back of the micro:bit to start the program.
S c i s s o r s pa p e r s t o n e
Programming the above name game using accelerometer
Outcome
A simple ‘scissors, paper, stone’ game. Each time you shake the
micro:bit, one of the three shapes will be be randomly chosen.
01
Follow the steps as shown in
the previous page to create a
Block Script and rename it
‘scissors paper stone’’.
02
From the category column:
03
Combine the blocks. This
combination allows the
micro:bit to randomly choose
one of the images, that we will
be creating in the next step,
upon shaking the micro:bit.
Lesson
04
05
06
08
You should now have a finish program and are able to compile it
before transferring the file to your micro:bit.
What’s next?