Lessons 8-12: Programming Microbit PDF

Summary

These lessons cover programming concepts and methods for the micro:bit, including various programming blocks, input devices (buttons), looping structures and animation. The document includes activities for students to practice programming with pseudocode.

Full Transcript

# Lesson 8: Exploring MakeCode for MicroBit ## Objectives - Identify the features of MakeCode for MicroBit. - Familiarize with MakeCode for MicroBit graphical interface. - Recognize the purpose of MakeCode for MicroBit. ## What is Microsoft MakeCode for MicroBit? MakeCode for MicroBit is open so...

# Lesson 8: Exploring MakeCode for MicroBit ## Objectives - Identify the features of MakeCode for MicroBit. - Familiarize with MakeCode for MicroBit graphical interface. - Recognize the purpose of MakeCode for MicroBit. ## What is Microsoft MakeCode for MicroBit? MakeCode for MicroBit is open source graphical programming software developed by Microsoft to create engaging learning experiences that will enable learners to maximize their programming skills. MakeCode uses a block-based programming language. ## How to access or use MakeCode? MakeCode for MicroBit is available in three different options: 1. You can access MakeCode and create programs using your web browser at [https://makecode.microbit.org/](https://makecode.microbit.org/). 2. You can download MakeCode for MicroBit from the Microsoft App Store or on your browser. 3. You can download the application through your mobile devices; MakeCode for MicroBit is available and free for both Apple and Android. # Lesson 9: Command blocks ## Objectives - Know blocks of MakeCode. - Familiarize with the functions of each block of MakeCode. ## Block-based programming Block-based programming has been widely used in different platforms to hone the skills of young programmers. Block-based programming enables learners to easily create programs without worrying about syntax errors. ## BBC MicroBit BBC MicroBit can be programmed using Block-based programming with the help of Microsoft MakeCode for MicroBit. This ensures that the purpose of the corporation is to inspire young people to learn digital skills. ## Types of Blocks of MakeCode - **Basic Blocks** - Basic display and control blocks - **Input** - Events and data from buttons and sensors. - **Music** - Generations of tones and melodies. - **LED** - Display information and images on the LED screen. # Lesson 10: Programming Buttons ## Objectives - Distinguish the functions of the buttons of MicroBit. - Illustrate a program for the buttons of MicroBit. - Create a program that will show the capacity of the MicroBit. ## Buttons Buttons are the most widely used input device. It can be seen in every electronics such as remote controls, television panels, etc. MicroBit has two programmable buttons: these buttons are on the front of the device and labeled as A and B buttons. With the help of these buttons, young individuals can do so much with the BBC MicroBit. ## How to program the buttons? The following blocks can be used to program the buttons of the MicroBit: - **on button A pressed** - This block can be used to program the MicroBit to do something when either A or B button, or both, are pressed and released. # Lesson 11: Looping Commands ## Objectives - Recognize the blocks that can be used to give a command for the repetition of instructions. - Familiarize the different blocks used for looping. ## Loops Loops in programming are control flow structures that enable the repeated execution of instructions or code blocks as long as a specified condition is met. ## Microsoft MakeCode loop blocks The Microsoft MakeCode has three different loop blocks which are repeated, while, and for. - **Loop Block** - Contains blocks that can give a command to make a set of instructions in repetition. ## What is a Pseudocode? Pseudocode is a step-by-step description of an algorithm using simple English language text. It is often acts as a rough draft of codes and is written in an explainable manner to be understand by programmers in any level. # Lesson 12: My First Animation ## Objective - Recognize the connection between programming and animation. - Create a program that will showcase animation. ## Animation Animation is a technique that helps with creativity and expression. In the field of robotics, robots become more expressive with animation. # Lessons 8-12: Performance Task ## Think and Code **Directions:** Create a program that will feature both looping blocks and basic blocks. Write a pseudocode for your program.

Use Quizgecko on...
Browser
Browser