Skip to content

Commit 083dc5a

Browse files
committed
Add new microbit content from teched Montreal workshop
1 parent 533c5bb commit 083dc5a

File tree

10 files changed

+284
-0
lines changed

10 files changed

+284
-0
lines changed

site/content/exercises/en-US/index.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ Learn to create colorful designs, animations, and much more using the Python lan
7878

7979
---
8080

81+
### [Microbit](/exercises/en-US/microbit)
82+
83+
**Discover coding with Microbit—create interactive projects and learn programming basics in a fun, hands-on way!**
84+
85+
---
86+
8187
## Get Started Today!
8288

8389
Begin your journey into the world of coding and creativity. Whether you're a beginner or looking to expand your skills, there's a program here for you!
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
order: 1
3+
title: Micro:bit One Day Workshop
4+
category: microbit
5+
---
6+
7+
## Workshop Overview
8+
9+
This workshop introduces students to the micro:bit and how to create interactive programs using the MakeCode platform.
10+
11+
### Sessions Included:
12+
1. [Introduction to Micro:bit](/exercises/en-US/microbit/level-1)
13+
2. [Basic Programming with Micro:bit](/exercises/en-US/microbit/level-2)
14+
3. [Advanced Programming with Micro:bit](/exercises/en-US/microbit/level-3)
15+
4. [Group Programming Challenge](/exercises/en-US/microbit/level-4)
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
template: exercise
3+
title: Introduction to Micro:bit
4+
level: 1
5+
exercise: 1
6+
category: microbit
7+
tags: ['microbit']
8+
description: Choose the sample project that most interests you and dig in!
9+
---
10+
11+
### What is a micro:bit?
12+
13+
A small programmable computer designed to teach coding and electronics.
14+
15+
🔗 [What is the micro:bit – Official Intro](https://microbit.org/get-started/what-is-the-microbit/)
16+
17+
### Features
18+
19+
- 5x5 LED Grid
20+
- Buttons A and B
21+
- Light, temperature, and motion sensors
22+
- Pins for external connections
23+
24+
### Setup Steps
25+
26+
🔗 [Video: Getting Started](https://youtu.be/7JNEF01WR4w)
27+
🔗 [BBC micro:bit Guide](https://rpf.io/microbit-intro)
28+
29+
1. Connect your micro:bit to your computer
30+
2. Go to [MakeCode for micro:bit](https://makecode.microbit.org/)
31+
3. Click **New Project**
32+
4. Start coding and run your program
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: Microbit - Introduction
3+
category: microbit
4+
level: 1
5+
---
6+
7+
# Microbit - Introduction
8+
9+
### [Lesson 1: Introduction to Microbit](./L1-E1)
10+
Learn the basics of lighting up individual pixels with different colors on your Microbit. A perfect starting point for new coders!
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
template: exercise
3+
title: Basic Programming with Micro:bit
4+
level: 2
5+
exercise: 1
6+
category: microbit
7+
tags: ['microbit']
8+
description: Choose the sample project that most interests you and dig in!
9+
---
10+
11+
Getting Started with MakeCode - MakeCode is a block-based visual programming environment for micro:bit.
12+
13+
🔗 [MakeCode Editor](https://makecode.microbit.org/)
14+
🔗 [MakeCode Beginner Docs](https://makecode.microbit.org/docs)
15+
16+
### First Program: "Hello, World!"
17+
18+
Scroll a message on the micro:bit LED screen.
19+
20+
🔗 [Scroll Your Name – Project](https://makecode.microbit.org/projects/scroll-your-name)
21+
22+
### Other Beginner Projects
23+
24+
### 1. **Flashing Heart Animation** - Make a heart icon flash forever.
25+
26+
🔗 [Flashing Heart – MakeCode Project](https://makecode.microbit.org/projects/flashing-heart)
27+
28+
### 2. **Name Tag** - Display your name or nickname with the press of a button.
29+
30+
🔗 [Name Tag Project](https://makecode.microbit.org/projects/name-tag)
31+
32+
### 3. **Smiley Button** - Press a button to display a smiley face.
33+
34+
🔗 [Button Icons](https://makecode.microbit.org/projects/button-icons)
35+
36+
### 4. **Temperature Display** - Use the built-in temperature sensor to display the current temperature.
37+
38+
🔗 [Temperature Project](https://makecode.microbit.org/projects/thermometer)
39+
40+
## Skills You'll Learn
41+
42+
- Using inputs (buttons)
43+
- Displaying output (LEDs)
44+
- Loops and events
45+
- Basic sensors (temp)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Microbit - Introduction
3+
category: microbit
4+
level: 2
5+
---
6+
# Microbit - Basic Programming
7+
8+
### [Lesson 2: Basic Programming Microbit](./L2-E1)
9+
Learn the basics programming with Microbit, lets start coding!
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
template: exercise
3+
title: Advanced Programming
4+
level: 3
5+
exercise: 1
6+
category: microbit
7+
tags: ['microbit']
8+
description: Choose the sample project that most interests you and dig in!
9+
---
10+
11+
### Inputs and Outputs - Work with real-world inputs and outputs.
12+
13+
🔗 [Button Input + Icon Output](https://makecode.microbit.org/projects/button-icons)
14+
🔗 [LED Animation – Flashing Heart](https://makecode.microbit.org/projects/flashing-heart)
15+
16+
---
17+
18+
### Loops - Use forever loops to repeat animations or actions.
19+
20+
🔗 [Forever Loop Examples](https://makecode.microbit.org/#editor)
21+
22+
---
23+
24+
### Conditions (If-Else Logic) - Respond to button presses or sensor values with conditions.
25+
26+
🔗 [Button Press If-Else Example](https://makecode.microbit.org/reference/input/on-button-pressed)
27+
28+
---
29+
30+
### More Advanced Projects
31+
32+
### 1. **Dice Simulator** - Shake the micro:bit to roll a digital dice.
33+
34+
🔗 [Dice Simulator – MakeCode Project](https://makecode.microbit.org/projects/virtual-dice)
35+
36+
### 2. **Thermometer** - Show icons for hot/cold depending on temperature.
37+
38+
🔗 [Temperature – MakeCode Project](https://makecode.microbit.org/reference/input/temperature)
39+
40+
### 3. **Step Counter** - Use accelerometer to track motion and count steps.
41+
42+
🔗 [Step Counter – MakeCode Project](https://makecode.microbit.org/projects/step-counter)
43+
44+
### 4. **Gesture-Based Control** - Detect gestures like tilt, shake, or face up/down.
45+
46+
🔗 [Tilt Alarm Example – MakeCode Project](https://makecode.microbit.org/projects/tilt-alarm)
47+
48+
---
49+
50+
### Tips for Exploring
51+
52+
- Try combining loops with conditions
53+
- Test new blocks in the MakeCode playground
54+
- Read values from `input.acceleration()`, `input.temperature()`, and more
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Microbit - Introduction
3+
category: microbit
4+
level: 3
5+
---
6+
# Microbit - Advanced Programming
7+
8+
### [Lesson 3: Advanced Programming Microbit](./L3-E1)
9+
Learn the basics programming with Microbit, lets start coding!
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
---
2+
template: exercise
3+
title: Group Programming Challenge
4+
level: 4
5+
exercise: 1
6+
category: microbit
7+
tags: ['microbit']
8+
description: Choose the sample project that most interests you and dig in!
9+
---
10+
11+
### Objective
12+
13+
Apply your knowledge to build a creative project.
14+
15+
### Group Projects
16+
17+
Collaborate in small teams to build creative and functional micro:bit systems. Below are curated multi-micro:bit or sensor-rich group projects with official links.
18+
19+
---
20+
21+
#### 1. Digital Pet Game
22+
23+
Create a virtual pet that displays needs and emotions. Use buttons to feed/play and keep the pet happy.
24+
25+
🔗 [Digital Pet Project – MakeCode Project](https://makecode.microbit.org/projects/digital-pet)
26+
27+
**Skills Used:**
28+
29+
- Variables
30+
- Button interactions
31+
- LED icons and loops
32+
33+
---
34+
35+
#### 2. Reaction Timer (Multiplayer)
36+
37+
Compete to test reaction speeds! Use two micro:bits with radio to start and stop the timer.
38+
39+
🔗 [Reaction Time Game – MakeCode Project](https://makecode.microbit.org/projects/reaction-time)
40+
41+
**Skills Used:**
42+
43+
- Conditional logic
44+
- Timing events
45+
- Radio communication (multi-device)
46+
47+
---
48+
49+
#### 3. Motion-Triggered Alarm System
50+
51+
Create an anti-theft or locker alarm system that triggers when motion is detected.
52+
53+
🔗 [MakeCode Alarm Project](https://makecode.microbit.org/projects/alarm)
54+
55+
**Skills Used:**
56+
57+
- Accelerometer sensor
58+
- Sound/LED feedback
59+
- Conditional loops
60+
61+
---
62+
63+
#### 4. Message Broadcasting System (Walkie-Talkie Style)
64+
65+
Send text messages between micro:bits using radio. Display them on the LED grid like a mini pager.
66+
67+
🔗 [Radio Messaging (Text Chat) – MakeCode Project](https://learn.microblocks.fun/en/activities/mb-walkie-talkie-en/index.html)
68+
69+
**Skills Used:**
70+
71+
- `radio.sendString()`
72+
- Event listeners
73+
- LED text scrolling
74+
75+
---
76+
77+
#### 5. Rock-Paper-Scissors Game
78+
79+
Shake your micro:bit to play Rock, Paper, or Scissors and compete with friends!
80+
81+
🔗 [Rock Paper Scissors – MakeCode Project](https://makecode.microbit.org/projects/rock-paper-scissors)
82+
🔗 [Microbit.org Guide](https://microbit.org/projects/make-it-code-it/rock-paper-scissors/)
83+
84+
**Skills Used:**
85+
86+
- Random numbers
87+
- Shake gesture detection
88+
- Icon display
89+
90+
### Group Collaboration Tips
91+
92+
- Assign roles: programmer, tester, documenter, presenter
93+
- Plan using pseudocode or flowcharts
94+
- Test each component before combining
95+
- Present: show the final project and explain contributions
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Microbit - Introduction
3+
category: microbit
4+
level: 4
5+
---
6+
# Microbit - Group Programming Challenge
7+
8+
### [Lesson 4: Group Programming Challenge](./L4-E1)
9+
Learn the basics programming with Microbit, lets start coding!

0 commit comments

Comments
 (0)