0% found this document useful (0 votes)
75 views

Programming The Microbit

The document provides instructions on how to program a Microbit microcontroller. It describes what a Microbit is, how to access the Microbit programming environment online, how to write code using blocks to display icons, how to connect the Microbit to a computer, and how to transfer code to the Microbit to run the program. The document encourages combining heart and smile icons that alternately display for one second each as an example program.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
75 views

Programming The Microbit

The document provides instructions on how to program a Microbit microcontroller. It describes what a Microbit is, how to access the Microbit programming environment online, how to write code using blocks to display icons, how to connect the Microbit to a computer, and how to transfer code to the Microbit to run the program. The document encourages combining heart and smile icons that alternately display for one second each as an example program.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 14

HOW TO PROGRAM

YOUR MICROBIT?
What is Microbit?
● BBC micro:bit is a pocket-sized computer that introduces you to how software and hardware work
together. It has 25 LED light display, 2 buttons, bluetooth, sensors (light, temperature, compass and
accelerometer).
What is Microbit?
● The new micro:bit has built-in microphone and speaker, as well as an extra touch input button and a
power button
Microbit website sample projects and tutorials
Programming the Microbit
● Open your browser and go to makecode.microbit.org
(recommended is Google Chrome or Edge)
● Click New Project. Enter “Heartbeat” as the name of your
project.Then click the Create button.
Programming the Microbit
Programming the Microbit
● Familiarize yourself with MakeCode environment
Programming your Microbit
● Drag the show icon block to the editing section inside the forever block.
● To remove, right-click then delete or drag the block to the command sections.
Connecting the Mircrobit to Computer
● You have two (2) options to connect your Microbit to your computer via USB cable
● Option 1: remove the microbit from the Robot then connect the USB cable
● Option 2; Connect the USB cable to microbit while it is connected to your Robot
Programming your Microbit
● After connecting the Microbit to your computer via USB cable. There will be a hard-disk /
FLASH DRIVE named MICROBIT appearing in your computer when the connection is
successful.
● In case you cannot see the MICROBIT drive, install the driver:
https://bit.ly/microbitDriver
Programming your Microbit
● Click Download. Wait until the download is finished.
Programming your Microbit
● Transfer the .hex file you downloaded from the online editor to the MICROBIT drive, just like you
would copy a file to a USB drive. This will transfer your program to your micro:bit.
● Observe the LEDs Microbit board flashing while you are transferring the hex program to the board.
The flashing of LEDs stop when transferring is completed
Programming your Microbit
● After transfering is completed, the microbit will show a heart pattern.
● Congratulations. You are Done!
● Try to add a happy face under the HEART ICON.
Lets Combine!
● Let’s combine heart and smiley icons in one program. Create and upload the following.
● Output: Microbit LED must display heart icon for 1 second, then smile icon for 1 second

You might also like