0% found this document useful (0 votes)
156 views24 pages

Microbit Project - Quick Start Guide v2

The micro:bit Quick Start Guide introduces users to building their first project with a pet cat named Kucing, providing step-by-step instructions for assembly, coding, and exploration. The kit includes various components such as LEDs, a servo motor, and a piezo speaker, along with guidance on programming using MakeCode. Users are encouraged to modify the project and learn about the functionalities of different components to enhance their experience.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
156 views24 pages

Microbit Project - Quick Start Guide v2

The micro:bit Quick Start Guide introduces users to building their first project with a pet cat named Kucing, providing step-by-step instructions for assembly, coding, and exploration. The kit includes various components such as LEDs, a servo motor, and a piezo speaker, along with guidance on programming using MakeCode. Users are encouraged to modify the project and learn about the functionalities of different components to enhance their experience.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

micro:bit

Quick Start Guide


Let's Get Started
Making Your First
Project!

meow..
meow..
.
Let's Make Let's Code Let's Explore

Hi ___________________ ,

We'd love to introduce to you Kucing (pronounced “koo-ching”), our pet cat.
Sometimes we call him Meow-Meow too. Let's have fun together.

First, follow the step-by-step guide in the Let's Make section to build the
project. Then learn to programme it in the Let's Code section by following
the step by step guide. Let's Explore and have fun modifying the project to
get Meow-Meow to perform different tricks at your command.

Are you ready? Let's start. Have fun learning and exploring~

Cheers,

Adam & Anna meow.....


meow

*Kucing means “cat” in the Malay language.


This micro:bit Quick Start Kit has everything you need to
build your first micro:bit project - featuring elements of
sound, light and motion. On top of all the components
in this kit, the box itself is creatively designed to be part
of your project too. It is the perfect project set to start
making and coding with micro:bit!

What's in the box? ........................................................... 1


Let's Make!
How to connect an LED .............................................. 3
How to connect a servo motor ................................ 5
Let's Code!
How to program in MakeCode ................................ 8
How to flash hex file to micro:bit ............................ 12
Let's Explore!
Light-emitting diode (LED)........................................ 17
Piezo speaker.................................................................. 18
Servo motor..................................................................... 19
What's in the box?

Image credit : microbit.org

micro:bit
Quick Start Guide
Let's Get Started
Making Your First
Project!

meow..
meow...

Quick Start Guide micro:bit Battery Holder Micro Servo Motor

USB cable Crocodile Clip x10 Connector Block x3 Servo Extension

LED x6 Resistor x6 AA Battery x4

*If you purchased this kit without micro:bit, you can get micro:bit board at www.cytron.io/p-micro-bit-board
Let's Make

Step 1: Detach all perforated parts from the box.

Step 2: Use some adhesive to attach the battery holder


to the side or back of the box.

Step 3: Insert the battery holder cable and USB cable


through the hole. Attach them to the battery connector
and USB port of the micro:bit board.

2
Let's Make

Step 4: Attach the micro:bit board, an LED and a servo


motor to the box as indicated.

Step 5: Bend the legs to secure the LED in place. Use a


connector block to clasp the longer leg of the LED and
one end of a resistor as shown.

3
Let's Make

Step 6: Attach a crocodile clip to connect the other


end of the resistor to Pin-1 of the micro:bit.

Step 7: Attach another crocodile clip to connect the


shorter leg of the LED to Pin-GND of the micro:bit.

4
Let's Make

Step 8: Connect the servo motor cable to the servo


extension cable.

Servo Motor Cable Brown Red Orange


Servo Extension Cable Black Red White

Step 9: Then attach crocodile clips to the servo extension


cable as shown.
Step 10: Attach the other end of the white cable to Pin-2
of the micro:bit, red cable to Pin-3V and black cable to
Pin-GND.
5
Let's Make
Here's the complete
circuit diagram!

Pin-1 : LED (positive, longer leg)


Pin-2 : Servo motor (signal)
Pin-3V : Servo motor (voltage)
Pin-GND : Servo motor (ground),
LED (negative, shorter leg)
6
Let's Code

LED

Step 11: Attach servo motor horn to the tail using


some adhesive and then fasten it in to the servo motor.

Step 12: Tidy up the cables and close the box.

Step 13: Plug in the USB cable to your computer.

7
Let's Code

Step 14: In your browser, go to https://makecode.microbit.org


and click 'New Project'. Type in your project name and then click
'Create'.

The Microsoft MakeCode Editor allows


you to easily program your micro:bit
project using drag-and-drop method.

8
Let's Code
https://makecode.microbit.org

1) Publish and share project. 7) SIMULATOR - Watch a simulation


2) Choose to program in Blocks, of your code here.
JavaScript or Python. 8) TOOLBOX / CATEGORY DRAWER -
3) Open Help menu. Get coding blocks that you need here.
4) Change settings, add extensions, etc. 9) PROGRAMMING WORKSPACE - Drag,
5) Download code to the micro:bit. drop and snap coding blocks together
6) Name and save project to computer. in this area to build your project.

9
Let's Code

Step 15 : Click [Basic] and then select [show string] block.


Click and snap the block to the [on start] slot.

10
Let's Code

Step 16 : Click [Basic] again and select [show icon] block.


Repeat to add another [show icon] block. Snap the blocks
to the [forever] slot.

Step 17: Click on the second [show icon] block and select
the 'small heart' design from the pop-up window.

11
Let's Code

Step 18 : Click [ Download ] and save your project to the


MICROBIT drive. Close the window when it says
“Download completed.”

This process of transferring code is called Flashing. The


orange LED on the back of the micro:bit flashes during the
transfer and once completed, the code will run automatically.
Let's Code

NOTE:
If the pop-up window does not
appear, it means that the file has
been automatically downloaded
to the location where your browser
is set to save downloads.

Right-click on the downloaded


.hex file which will appear at the
bottom of the window and select
“Show in folder.”

Then click and drag the downloaded


“microbit-xxx.hex” file to the
MICROBIT drive as if you were
copying a file to a flash drive.

Visit https://microbit.org/guide/quick/ for more info.

13
Let's Code
Do
Meow-m you notice that
one timeeoonwlyscrolls “Hello!” text
the heart ic but keeps flashin
ons? Do you
know whyg?

The [ on start ] block runs the code on start (once).


The [ forever ] block runs the code over and over again
(in a continuous loop).
If you wish to start the program all over again,
simply press the RESET button (at the back of the micro:bit) .

14
Let's Code
Step 19: Add the following blocks to your
programme and download to your MICROBIT drive again.

Press Button B to
make Meow-Meow
sing the Birthday
song.

The LED blinks


whenever
Meow-meow
“sings” and stops
when the melody
ends.

All programming blocks are colour coded;


you can find the blocks you need in the
category drawer with the same colour.
Alternatively, you can type the
Press Button A key words in the search box.
to make Meow-Meow
swish its tail.

15
Let's Code

Step 20: Unplug the USB cable from your computer and
also the micro:bit. Install batteries in the battery holder
and slide the switch to turn it on/off.
Woohoo..you've completed your first micro:bit project!

When powered up,


“Hello!” scrolls across
Press Button A the display one time
to make and then heart icons
Meow-Meow keep flashing forever.
swish its tail.

Press Button B if you


want Meow-Meow
to sing you the
LED lights up when the
Birthday song.
power is turned on. When a melody is
being played, the LED will blink (i.e. turn off and
on repetitively) and stop when the melody ends.
Let's Explore

A light-emitting diode (LED) is a semiconductor


device that produces light from electricity.

It has a positive terminal and a negative terminal.


For the LED to work, the negative terminal
(shorter leg) must be connected to pin-GND but
you can connect the positive terminal (the longer
leg) to either pin-0, pin-1 or pin-2 of the micro:bit.

An LED is an example of a digital output device.


It has only two possible states - ON (1) or OFF (0).

You can control an LED that is connected to the


micro:bit using [ digital write pin __ to __ ] block
from the [ Advanced - Pins ] category.

Pin-0 (P0), Pin-1 (P1) or Pin-2 (P2) 1 - ON or 0 - OFF


- Which pin is it connected to?
17
Let's Explore

The micro:bit V2 has a built-in piezo


speaker. You can control the pitch or
tone of the sound that the speaker
produces by changing the frequency of
the electric signal that passes through it.
To make music with the micro:bit, you
can use coding blocks from the [ Music ]
category drawer. If you use [ Music ]
Speaker blocks in your project, do not connect
another external component to pin-0.

18
Let's Explore

A servo motor uses a three-wire


system for power (+), ground (-) and
signal. Here's how you are to connect
it to the micro:bit
Ground Power Signal
Brown Red Orange
Black Red White
Pin-GND Pin-3V Pin-0,1 or 2

When it is connected to the micro:bit,


you can control the motor rotation to
a specific angle, between the range of
0 to 180 degrees using
[ servo write pin __ to __ ] block from
the [ Advanced - Pins ] category.

Pin-0 (P0), Pin-1 (P1) or Pin-2 (P2) 0 to 180 - The angle you
- Which pin is it connected to? want the servo to turn to.
19
Let's Explore

For more project ideas, go to


https://microbit.org/projects
ABOUT US
Cytron Technologies, an official micro:bit reseller, is a Malaysian tech
company based in Penang. Cytron designs, manufactures and distributes
educational robotic kits and electronic parts. Founded in 2004, Cytron is
the pioneer in this field in Malaysia and aims to provide high-quality yet
affordable solutions for educators and students.

Rero EDUteam is the education arm of Cytron Technologies. Our vision is


to bring robotics and coding to the masses by making quality robotics
and coding education available, affordable and attainable for all children.

www.cytron.io/micro:bit | www.fb.com/cytrontech | [email protected]

You might also like