Treasure Hunt - SCOPES Digital Fabrication

Lesson Details

Age Ranges
Standards
Fab-Safety.1, Fab-Programming.1, Fab-Electronics.1
Author
Additional Contributors

You need to login or register to bookmark/favorite this content.

Author

Studio 5
Studio 5
Informal educator
In line with the Ministry of Communications and Information Technology’s Digital Youth Strategy, STUDIO 5 is mainly aimed at nurturing youth as digital learners by sharpening their 21st century learning skills, as they develop in an all-pervasive digital environment. In… Read More

Summary

On-Site workshop aims towards delivering the electronics knowledge and coding, through coding a game using Make-code platform to code micro-bit microcontroller.

What You'll Need

In this Lesson, participant are going to use Make-code platform to code and upload codes :

1- Micro-Bit microcontroller

2- Login Computer

3- Presentation

The Instructions

Introduction

In this section, we will be Ice-breaking with the participant to go through the theoretical part of the Lesson.

1- We all may found something in our life it could be precious, and it might be not but for sure we built expectations if we found a real precious thing.

2- Treasure hunt is the game of every child, as we are looking for the precious thing that would bring our life up.

3- We have to play the game as a team that each one have his own role to play.

 

4- What role you are good at ?

5- Now let’s play a quick game together.

 

6- Emoji Scavenger hunt is an online game that uses the camera of the smart device to let you capture the thing been asked for in the game.

 

Lets Build the game

In this section we will be building the treasure hunt game using the micro-bit microcontroller.

1- The version we are going to build is hardware based, but we have to code each microcontroller in order to do the needed job.

 

2- Lets start coding the microcontroller.

3- To code we have to access the make-code platform, then we have to redirect to micro-bit version.

4- Then we have to create new project and start coding the microcontroller.

5- At the beginning we have to understand what is meant by loops and the different between each loop and another.

  • The platform comes with On-start loop and forever tool at the start.
  • On-start is the loop that going to be executed at the start of the microcontroller.
  • Forever loop is the loop that are going to be executed as long as the microcontroller running.
  • There is other also like while condition loop which is going to run as long as the condition is true.

The Video will show the importance of having loops in coding.

Video Link

 

6- Then we will start explaining the importance of Variables.

7- Then we will describe the radio communication and how it works.

8- Radio communication is about sending information over a frequency of wave and receiving over a frequency of wave.

9- In micro-bit we have a group for the radio and power that we can control.

10- In our game, we have a transmitter and also a receiver; the transmitter is going to be the object we want to hide, and the receiver is the device we will use to discover the object.

11- For each transmitter we will assign an ID to send, it could be a number that being sent over a period of time for other receiver to catch it.

12- In this case, we decided to send every 200ms.

13- Then for the receiver, we will set the radio group to match the transmitter in order to receive the message.

14- Now when ever we receive a communication over the radio channel which is (1) in our case It’s going to be printed on the screen.

 

15- Now we can hide the transmitter and ask the participant to start looking for it.

Standards

  • (Fab-Safety.1): I can safely conduct myself in a Fab Lab and observe operations under instructor guidance.
  • (Fab-Programming.1): I understand the basic structure of a simple program and can modify values, variables, or other parameters to alter its output, function, or behavior.
  • (Fab-Electronics.1): I can follow instructions to build a simple electrical circuit using conductive material, basic components, and power.

Lesson Feedback