kids code jeunesse coding for kids| kcj - code in the classroom · 2020. 8. 28. · code. learning...

24
@kidscoding kidscodejeunesse.org Code in the Classroom Introduction to micro:bit

Upload: others

Post on 22-Sep-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Kids Code Jeunesse Coding for Kids| KCJ - Code in the Classroom · 2020. 8. 28. · code. Learning computational thinking, coding, and physical computing provides youth with the skills

@ki

dsc

od

ing

kid

sco

de

jeu

ne

sse

.org

Code in the ClassroomIntroduction to micro:bit

Page 2: Kids Code Jeunesse Coding for Kids| KCJ - Code in the Classroom · 2020. 8. 28. · code. Learning computational thinking, coding, and physical computing provides youth with the skills
Page 3: Kids Code Jeunesse Coding for Kids| KCJ - Code in the Classroom · 2020. 8. 28. · code. Learning computational thinking, coding, and physical computing provides youth with the skills

We are a bilingual, Canadian not for profit organization dedicated

to empowering children and educators, with a particular focus

on girls and children from disadvantaged groups, with the skills

we all need to thrive in a technology driven society. Since 2013,

we have reached more than 4300 teachers and over 150,000

students.

We’re igniting young minds across Canada by teaching kids to

code. Learning computational thinking, coding, and physical

computing provides youth with the skills needed to create,

communicate, and innovate with the tools of the 21st century. And

by introducing code into classrooms and communities, we’re able

to create a new generation of thinkers, creators and doers.

Page 4: Kids Code Jeunesse Coding for Kids| KCJ - Code in the Classroom · 2020. 8. 28. · code. Learning computational thinking, coding, and physical computing provides youth with the skills

ShapesHour 1:

Learning Objectives:

• Familiarity with physical computing through micro:bit.

• Familiarity with micro:bit block code sequences, modularization and repetition.

• Familiarity with computational practices like planning and experimentation

Materials:

• Graph paper

• Overhead projector

• Online Editor makecode.microbit.org

• Computers with working USB ports (not iPads!)

• Micro:bits

• Animation cards

WARM UP

Ask for three volunteers.

Volunteer (A) sits at desk with back to simple image drawn on 5 x 5 grid on

whiteboard, blackboard, or projected on a powerpoint slide. This could be a duck,

or a heart, or whatever the educator decides.

Volunteer (B) gives simple directions to volunteer (A) to recreate image.

Volunteer (C) writes down the directions that volunteer (B) gives.

Once challenge has been accomplished, volunteer (C) reads out the directions.

Class reflects on how the directions could be simplified using sequences and

repetition.

Simple 5x5 grid unplugged

1

Page 5: Kids Code Jeunesse Coding for Kids| KCJ - Code in the Classroom · 2020. 8. 28. · code. Learning computational thinking, coding, and physical computing provides youth with the skills

SET UP AND INTRO

Class completes an introductory animation on the Makecode emulator, like

animating their name.

Class completes their first download to see the animation on the micro:bit.

DUCK

Micro:bit and platform

2

Page 6: Kids Code Jeunesse Coding for Kids| KCJ - Code in the Classroom · 2020. 8. 28. · code. Learning computational thinking, coding, and physical computing provides youth with the skills

ACTIVITY 1 Make it move!

Class creates simple animations using Makecode LED panels, e.g. heartbeat,

smiley faces, jumping jacks, or animations on the KCJ animation cards.

Tip: Students can save time by creating core shape on one LED, right click to

duplicate, and add/change only LED dots that need to be different.

ShapesHour 1:

3

Page 7: Kids Code Jeunesse Coding for Kids| KCJ - Code in the Classroom · 2020. 8. 28. · code. Learning computational thinking, coding, and physical computing provides youth with the skills

ACTIVITY 2 Name your code!

Class names sequences (modularize) using “functions” and loop with

repeat blocks.

To make it easier to experiment, class creates a clear button.

4

Page 8: Kids Code Jeunesse Coding for Kids| KCJ - Code in the Classroom · 2020. 8. 28. · code. Learning computational thinking, coding, and physical computing provides youth with the skills

ACTIVITY 3

REFLECTION

Lightcraft!

Class weaves sequences and threads them together using modularization and

repetition.

E.g. [your name] + [beating heart] + [jumping jacks]

Tip: use blank panels or pause blocks to “punctuate” sequences

Class reflects on successes and challenges.

• What problems did they encounter. How were these problems solved.

• What was most fun?

• What was most frustrating?

Stretch and extension challenges:

Explore other projects on MakeCode, like Coin Flipper.

ShapesHour 1:

5

Page 9: Kids Code Jeunesse Coding for Kids| KCJ - Code in the Classroom · 2020. 8. 28. · code. Learning computational thinking, coding, and physical computing provides youth with the skills

notes

6

Page 10: Kids Code Jeunesse Coding for Kids| KCJ - Code in the Classroom · 2020. 8. 28. · code. Learning computational thinking, coding, and physical computing provides youth with the skills

Graph paper unplugged. Instructor hides a “ship” of 3 or 4 squares that class must

guess. Using numbered 0-4 x, y coordinates along 5 x 5 grid.

WARM UP

DotsHour 2:

Learning Objectives:

• Assimilation of sequences and repetition

• Introduction to binary on/off, variables and random assignment

• Introduction to programming index

• Familiarity with computational practice like planning and experimentation

0

1

2

3

4

10 2 3 4

7

Page 11: Kids Code Jeunesse Coding for Kids| KCJ - Code in the Classroom · 2020. 8. 28. · code. Learning computational thinking, coding, and physical computing provides youth with the skills

As class guesses (naming horizontal, x, coordinate first) instructor marks either

O (miss) or X (hit). Once squares are guessed, class reflects on advantages and

challenges of working with a numbered grid compared to unplugged exercise in

hour 1.

Quick revision (optional):

Class revisits basics with “show number” and the “random” block to construct a

dice (as in “dice” tutorial on MakeCode)

ACTIVITY 1 Blinking dots

Class experiments with plotting dots on the microbit using an x, y block.

8

Page 12: Kids Code Jeunesse Coding for Kids| KCJ - Code in the Classroom · 2020. 8. 28. · code. Learning computational thinking, coding, and physical computing provides youth with the skills

Class experiments with:

• Changing numbers from 0 to 4.

• Using the following blocks to create animation effects:

A fun demo for the power of these coordinates combined with random blocks:

Starry Lights

DotsHour 2:

> continued

9

Page 13: Kids Code Jeunesse Coding for Kids| KCJ - Code in the Classroom · 2020. 8. 28. · code. Learning computational thinking, coding, and physical computing provides youth with the skills

ACTIVITY 2 Blinking lines

Class creates a line of dots with the 0 to 4 loop and a variable block.

First name some new variables to go with the “index” variable:

Class uses a for loop to “step” the x coordinate through positions 0-4.

Tip: Highlight the process by clicking the snail icon under the emulator.

Class experiments with:

• Moving one variable block from x to y.

• Using unplot and pause blocks to change the animation effect.

10

Page 14: Kids Code Jeunesse Coding for Kids| KCJ - Code in the Classroom · 2020. 8. 28. · code. Learning computational thinking, coding, and physical computing provides youth with the skills

ACTIVITY 3 Full grid challenge!

Class is challenged to fill the entire 5 x 5 grid one dot at a time.

Some might do this by simply stacking for 0 to 4 loops on top of each other. Some

might fill it up with the random block.

Some students might come up with the idea of “nesting” one loop inside another

for 0 to 4 loop and using the second variables. One of these students can be

invited to demonstrate. Instructor demonstrates only if no one has come with a

solution independently.

Experiment with:

• Switching variable blocks.

• Unplot and pause blocks.

DotsHour 2:

11

Page 15: Kids Code Jeunesse Coding for Kids| KCJ - Code in the Classroom · 2020. 8. 28. · code. Learning computational thinking, coding, and physical computing provides youth with the skills

REFLECTION

Prompts:

• What problems were encountered and how did you solve them.

• What was more fun and/or more challenging, shapes or dots?

Extension challenges:

• Use random blocks inside the “pause” blocks to create a “firefly” effect.

• Nest a second for 0 to 4 loop inside the outside loop for a “snake” effect.

Modularize this code with functions.

12

Page 16: Kids Code Jeunesse Coding for Kids| KCJ - Code in the Classroom · 2020. 8. 28. · code. Learning computational thinking, coding, and physical computing provides youth with the skills

Activity Cards

Page 17: Kids Code Jeunesse Coding for Kids| KCJ - Code in the Classroom · 2020. 8. 28. · code. Learning computational thinking, coding, and physical computing provides youth with the skills

Jumping Jacks

Flying Bat

14

Page 18: Kids Code Jeunesse Coding for Kids| KCJ - Code in the Classroom · 2020. 8. 28. · code. Learning computational thinking, coding, and physical computing provides youth with the skills

Pinwheel A

Pinwheel B

15

Page 19: Kids Code Jeunesse Coding for Kids| KCJ - Code in the Classroom · 2020. 8. 28. · code. Learning computational thinking, coding, and physical computing provides youth with the skills

Sinking Boat

Floating Duck

16

Page 20: Kids Code Jeunesse Coding for Kids| KCJ - Code in the Classroom · 2020. 8. 28. · code. Learning computational thinking, coding, and physical computing provides youth with the skills

Ce

rtifi

cate

of A

chie

vem

en

tp

rese

nte

d t

o:

for

com

ple

tin

g t

his

intr

od

uct

ion

to

mic

ro:b

it e

xerc

ise

!

DA

TE

:

Page 21: Kids Code Jeunesse Coding for Kids| KCJ - Code in the Classroom · 2020. 8. 28. · code. Learning computational thinking, coding, and physical computing provides youth with the skills

ResourcesMicrobit resources for teachers include lesson plans, curriculums,

project ideas:

https://microbit.org/teach/

Code Club micro:bit projects are great for stretch challenges:

https://codeclubprojects.org/en-GB/microbit/

The KCJ art:bit facilitates animation and makes using the micro:bit easier for

younger students. It is currently available for chromebooks and soon to be

available for iPads.

https://kidscodejeunesse.org/artbit.html

18

Page 22: Kids Code Jeunesse Coding for Kids| KCJ - Code in the Classroom · 2020. 8. 28. · code. Learning computational thinking, coding, and physical computing provides youth with the skills

Notes

19

Page 23: Kids Code Jeunesse Coding for Kids| KCJ - Code in the Classroom · 2020. 8. 28. · code. Learning computational thinking, coding, and physical computing provides youth with the skills

20

Page 24: Kids Code Jeunesse Coding for Kids| KCJ - Code in the Classroom · 2020. 8. 28. · code. Learning computational thinking, coding, and physical computing provides youth with the skills