Skip to content

Add new microbit content from teched Montreal workshop #188

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions site/content/exercises/en-US/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ Learn to create colorful designs, animations, and much more using the Python lan

---

### [Microbit](/exercises/en-US/microbit)

**Discover coding with Microbit—create interactive projects and learn programming basics in a fun, hands-on way!**

---

## Get Started Today!

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!
53 changes: 53 additions & 0 deletions site/content/exercises/en-US/microbit/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
order: 1
title: Micro:bit One Day Workshop
category: microbit
---


## Sessions Included:
1. [Introduction to Micro:bit](/exercises/en-US/microbit/level-1)
2. [Basic Programming with Micro:bit](/exercises/en-US/microbit/level-2)
3. [Advanced Programming with Micro:bit](/exercises/en-US/microbit/level-3)
4. [Group Programming Challenge](/exercises/en-US/microbit/level-4)

## Workshop Overview

This workshop introduces students to the micro:bit and how to create interactive programs using the MakeCode platform.
Embark on an exciting journey with the micro:bit! This hands-on workshop guides you through the essentials of coding and electronics, empowering you to create interactive projects using the MakeCode platform. Whether you're a beginner or looking to deepen your skills, you'll explore programming concepts, experiment with sensors and LEDs, and collaborate on creative challenges—all while having fun and building confidence in technology.

### Workshop Details
- **Duration:** 1 day
- **Target Audience:** Grades 6-11
- **Prerequisites:** None
- **Materials Needed:** Micro:bit, computer with internet access, and basic crafting supplies (optional)
- **Learning Objectives:**
- Understand the basics of programming and electronics
- Create interactive projects using the micro:bit
- Collaborate with peers to solve coding challenges
- Develop problem-solving and critical thinking skills
- **Workshop Structure:**
- **Introduction (30 minutes):** Overview of the micro:bit and its features, introduction to MakeCode platform
- **Hands-On Activities (2 hours):** Guided projects using the micro:bit, including LED animations, sensors, and basic programming concepts
- **Group Challenge (1 hour):** Collaborative coding challenge where students work in teams to create a project using the micro:bit
- **Wrap-Up and Reflection (30 minutes):** Share projects, discuss learning outcomes, and reflect on skills developed during the workshop
- **Skills Developed:**
- Programming fundamentals
- Creativity and innovation
- Teamwork and collaboration
- Basic electronics knowledge
- **Key Concepts:**
- Introduction to micro:bit and its features
- Programming with MakeCode
- Using sensors and LEDs
- Problem-solving and critical thinking in coding
- **Resources:**
- [Micro:bit website](https://microbit.org/)
- [MakeCode platform](https://makecode.microbit.org/)
- [Micro:bit documentation](https://microbit.org/guide/)
- [Online coding tutorials and resources](https://www.codecademy.com/learn/learn-python-3)
- [Community forums and support](https://microbit.org/community/)
- **Additional Notes:**
- Encourage students to explore their creativity and think outside the box when designing projects.
- Provide opportunities for students to share their projects and ideas with the class.
- Foster a supportive and inclusive learning environment where all students feel comfortable asking questions and seeking help.
32 changes: 32 additions & 0 deletions site/content/exercises/en-US/microbit/level-1/L1-E1/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
template: exercise
title: Introduction to Micro:bit
level: 1
exercise: 1
category: microbit
tags: ['microbit']
description: Choose the sample project that most interests you and dig in!
---

### What is a micro:bit?

A small programmable computer designed to teach coding and electronics.

🔗 [What is the micro:bit – Official Intro](https://microbit.org/get-started/what-is-the-microbit/)

### Features

- 5x5 LED Grid
- Buttons A and B
- Light, temperature, and motion sensors
- Pins for external connections

### Setup Steps

🔗 [Video: Getting Started](https://youtu.be/7JNEF01WR4w)
🔗 [BBC micro:bit Guide](https://rpf.io/microbit-intro)

1. Connect your micro:bit to your computer
2. Go to [MakeCode for micro:bit](https://makecode.microbit.org/)
3. Click **New Project**
4. Start coding and run your program
10 changes: 10 additions & 0 deletions site/content/exercises/en-US/microbit/level-1/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: Microbit - Introduction
category: microbit
level: 1
---

# Microbit - Introduction

### [Lesson 1: Introduction to Microbit](./L1-E1)
Start your coding journey by lighting up pixels and exploring the colorful world of the Microbit! This lesson is designed for beginners and introduces you to the basics of programming, creativity, and interactive technology in a fun, hands-on way.
45 changes: 45 additions & 0 deletions site/content/exercises/en-US/microbit/level-2/L2-E1/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
template: exercise
title: Basic Programming with Micro:bit
level: 2
exercise: 1
category: microbit
tags: ['microbit']
description: Choose the sample project that most interests you and dig in!
---

Getting Started with MakeCode - MakeCode is a block-based visual programming environment for micro:bit.

🔗 [MakeCode Editor](https://makecode.microbit.org/)
🔗 [MakeCode Beginner Docs](https://makecode.microbit.org/docs)

### First Program: "Hello, World!"

Scroll a message on the micro:bit LED screen.

🔗 [Scroll Your Name – Project](https://makecode.microbit.org/projects/scroll-your-name)

### Other Beginner Projects

### 1. **Flashing Heart Animation** - Make a heart icon flash forever.

🔗 [Flashing Heart – MakeCode Project](https://makecode.microbit.org/projects/flashing-heart)

### 2. **Name Tag** - Display your name or nickname with the press of a button.

🔗 [Name Tag Project](https://makecode.microbit.org/projects/name-tag)

### 3. **Smiley Button** - Press a button to display a smiley face.

🔗 [Button Icons](https://makecode.microbit.org/projects/button-icons)

### 4. **Temperature Display** - Use the built-in temperature sensor to display the current temperature.

🔗 [Temperature Project](https://makecode.microbit.org/projects/thermometer)

## Skills You'll Learn

- Using inputs (buttons)
- Displaying output (LEDs)
- Loops and events
- Basic sensors (temp)
12 changes: 12 additions & 0 deletions site/content/exercises/en-US/microbit/level-2/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: Microbit - Introduction
category: microbit
level: 2
---

# Microbit - Basic Programming

Welcome to Level 2! In this section, you'll explore the fundamentals of programming with the Microbit. You'll use block-based coding to create interactive projects, learn how to control LEDs, respond to button presses, and use built-in sensors. Perfect for beginners ready to take the next step in coding!

### [Lesson 2: Basic Programming Microbit](./L2-E1)
Learn the basics programming with Microbit, lets start coding!
54 changes: 54 additions & 0 deletions site/content/exercises/en-US/microbit/level-3/L3-E1/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
template: exercise
title: Advanced Programming
level: 3
exercise: 1
category: microbit
tags: ['microbit']
description: Choose the sample project that most interests you and dig in!
---

### Inputs and Outputs - Work with real-world inputs and outputs.

🔗 [Button Input + Icon Output](https://makecode.microbit.org/projects/button-icons)
🔗 [LED Animation – Flashing Heart](https://makecode.microbit.org/projects/flashing-heart)

---

### Loops - Use forever loops to repeat animations or actions.

🔗 [Forever Loop Examples](https://makecode.microbit.org/#editor)

---

### Conditions (If-Else Logic) - Respond to button presses or sensor values with conditions.

🔗 [Button Press If-Else Example](https://makecode.microbit.org/reference/input/on-button-pressed)

---

### More Advanced Projects

### 1. **Dice Simulator** - Shake the micro:bit to roll a digital dice.

🔗 [Dice Simulator – MakeCode Project](https://makecode.microbit.org/projects/virtual-dice)

### 2. **Thermometer** - Show icons for hot/cold depending on temperature.

🔗 [Temperature – MakeCode Project](https://makecode.microbit.org/reference/input/temperature)

### 3. **Step Counter** - Use accelerometer to track motion and count steps.

🔗 [Step Counter – MakeCode Project](https://makecode.microbit.org/projects/step-counter)

### 4. **Gesture-Based Control** - Detect gestures like tilt, shake, or face up/down.

🔗 [Tilt Alarm Example – MakeCode Project](https://makecode.microbit.org/projects/tilt-alarm)

---

### Tips for Exploring

- Try combining loops with conditions
- Test new blocks in the MakeCode playground
- Read values from `input.acceleration()`, `input.temperature()`, and more
10 changes: 10 additions & 0 deletions site/content/exercises/en-US/microbit/level-3/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: Microbit - Introduction
category: microbit
level: 3
---

# Microbit - Advanced Programming

### [Lesson 3: Advanced Programming Microbit](./L3-E1)
Take your Microbit skills to the next level! Dive into advanced programming concepts, tackle creative challenges, and unlock the full potential of your Microbit. This lesson empowers you to build interactive projects, experiment with sensors, and develop problem-solving abilities through hands-on coding.
95 changes: 95 additions & 0 deletions site/content/exercises/en-US/microbit/level-4/L4-E1/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
---
template: exercise
title: Group Programming Challenge
level: 4
exercise: 1
category: microbit
tags: ['microbit']
description: Choose the sample project that most interests you and dig in!
---

### Objective

Apply your knowledge to build a creative project.

### Group Projects

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.

---

#### 1. Digital Pet Game

Create a virtual pet that displays needs and emotions. Use buttons to feed/play and keep the pet happy.

🔗 [Digital Pet Project – MakeCode Project](https://makecode.microbit.org/projects/digital-pet)

**Skills Used:**

- Variables
- Button interactions
- LED icons and loops

---

#### 2. Reaction Timer (Multiplayer)

Compete to test reaction speeds! Use two micro:bits with radio to start and stop the timer.

🔗 [Reaction Time Game – MakeCode Project](https://makecode.microbit.org/projects/reaction-time)

**Skills Used:**

- Conditional logic
- Timing events
- Radio communication (multi-device)

---

#### 3. Motion-Triggered Alarm System

Create an anti-theft or locker alarm system that triggers when motion is detected.

🔗 [MakeCode Alarm Project](https://makecode.microbit.org/projects/alarm)

**Skills Used:**

- Accelerometer sensor
- Sound/LED feedback
- Conditional loops

---

#### 4. Message Broadcasting System (Walkie-Talkie Style)

Send text messages between micro:bits using radio. Display them on the LED grid like a mini pager.

🔗 [Radio Messaging (Text Chat) – MakeCode Project](https://learn.microblocks.fun/en/activities/mb-walkie-talkie-en/index.html)

**Skills Used:**

- `radio.sendString()`
- Event listeners
- LED text scrolling

---

#### 5. Rock-Paper-Scissors Game

Shake your micro:bit to play Rock, Paper, or Scissors and compete with friends!

🔗 [Rock Paper Scissors – MakeCode Project](https://makecode.microbit.org/projects/rock-paper-scissors)
🔗 [Microbit.org Guide](https://microbit.org/projects/make-it-code-it/rock-paper-scissors/)

**Skills Used:**

- Random numbers
- Shake gesture detection
- Icon display

### Group Collaboration Tips

- Assign roles: programmer, tester, documenter, presenter
- Plan using pseudocode or flowcharts
- Test each component before combining
- Present: show the final project and explain contributions
9 changes: 9 additions & 0 deletions site/content/exercises/en-US/microbit/level-4/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Microbit - Introduction
category: microbit
level: 4
---
# Microbit - Group Programming Challenge

### [Lesson 4: Group Programming Challenge](./L4-E1)
Collaborate with your peers to solve creative coding challenges using the Microbit! This lesson focuses on teamwork, communication, and advanced problem-solving as you design and build interactive projects together. Strengthen your programming skills while learning how to work effectively in a group setting.