This talk runs through an example lesson plan for the BBC Micro:Bit, focusing on making a Treasure Hunt Activity.
Using Microsoft Make Code, we take the attendees through step by step the various topics of the Micro:Bit.
1. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
An introduction to BBC
Micro:Bit –
A Treasure Hunt
PETE GALLAGHER
PJGCREATIONS.CO.UK
09/07/2018
2. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
About Me
Pete Gallagher
@pete_codes / @PJGCreations
www.PJGCreations.co.uk
Pete@PJGCreations.co.uk
IT Consultant
Decades of Desktop, Web & Embedded Software experience
Gadget Addict
Father of two inquisitive girls
3. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
What we’re going to be doing…
The Micro:Bit
Treasure Hunt Demo
Splitting the project up into lessons
Planning a Treasure Hunt
Q&A
4. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Handheld, fully programmable computer
Two programmable buttons
5x5 Grid of LED’s
3 Digital / Analog Ports
Bluetooth, Radio
Light Sensor
Accelerometer, Compass and Temperature Sensor
The BBC Micro:Bit
5. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
X Marks the spot…
Treasure Hunt Demo
6. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Treasure Hunt Lessons
1. Hello World.
2. Buttons and Logic.
3. Introduction to Variables.
4. Comparing and Changing Variables.
5. Introduction to Radio Communications and Building the
Transmitter Code.
6. Building the Receiver Code.
7. Building the Treasure Hunt Code.
7. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 1 – Hello World:
Treasure Hunt Lessons
8. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 1 Objectives: Hello World
Meet Microsoft MakeCode
Dragging Blocks onto the Designer
Removing Blocks
How to show an Icon on the Display
Connecting the Micro:Bit to the Computer
Downloading the “Hex” file to the Computer
Programming the Micro:Bit
9. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 1 – Meet MakeCode
10. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Workspace
Lesson 1 – Meet MakeCode
11. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
ToolBox
Lesson 1 – Meet MakeCode
12. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Tools
Lesson 1 – Meet MakeCode
13. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Micro:Bit
Simulator
Lesson 1 – Meet MakeCode
14. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Save and
Download
Lesson 1 – Meet MakeCode
15. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Code View
Lesson 1 – Meet MakeCode
16. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Projects
Lesson 1 – Meet MakeCode
17. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
New / Load
Projects
Lesson 1 – Meet MakeCode
18. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Tutorial
Projects
Lesson 1 – Meet MakeCode
19. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Example
Projects
Lesson 1 – Meet MakeCode
20. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 1 – Basic Concepts
21. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 1 – Basic Concepts
22. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 1 – Basic Concepts
23. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 1 – Basic Concepts
24. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 1 – Basic Concepts
25. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 1 – Basic Concepts
26. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 1 - Downloading
27. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 1 - Connecting
28. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 1 - Connecting
29. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 1 - Programming
30. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 1 - Programming
31. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 1 - Result
32. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 2 – Logic and Buttons:
Treasure Hunt Lessons
33. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 2 Objectives:
“Buttons and Logic”
Understanding how Buttons Work
How to read the Buttons In Code
Logic Basics
The If-Then Block
The If-Else Block
34. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 2 – Buttons
35. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 2 – Buttons
36. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 2 – Buttons
37. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 2 - Buttons
38. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 2 – Buttons
39. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 2 – Buttons
40. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 2 – Buttons
41. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 2 – Buttons
42. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 2 – Buttons
43. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 2 – Buttons
44. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 2 – Buttons
45. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 2 – Buttons
46. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 2 – Buttons
47. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 2 – Buttons
48. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 2 – Buttons
49. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 2 – Buttons
50. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 2 – Buttons Result
51. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 2 – If-Then
52. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 2 – If-Then
53. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 2 – If-Then
54. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 2 – If-Then
55. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 2 – If-Else
56. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 2 – If-Else
57. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 2 – If-Else
58. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 2 – If-Else
59. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 3 – Introduction to
Variables:
Treasure Hunt Lessons
60. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 3 Objectives:
“Introduction to Variables”
What is a Variable
Making a Variable
Setting a Variable Value
Getting and Comparing a Variable Value
61. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 3 – What are Variables?
62. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 3 – What are Variables?
63. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 3 – What are Variables?
64. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 3 – What are Variables?
65. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 3 – What are Variables?
66. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 3 – Making a Variable
67. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 3 – Making a Variable
68. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 3 – Making a Variable
69. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 3 – Setting a Variable
70. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 3 – Setting a Variable
71. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 3 – Setting a Variable
72. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 4 – Comparing and
Changing Variables:
Treasure Hunt Lessons
73. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 4 Objectives:
“Comparing and Changing Variables”
Getting and Comparing a Variable Value
Changing a Variable Value
Showing a Variable Value
74. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 4 – Comparing a Variable
LESS THAN
<
75. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 4 – Comparing a Variable
76. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 4 – Comparing a Variable
77. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 4 – Comparing a Variable
78. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 4 – Comparing a Variable
79. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 4 – Comparing a Variable
80. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 4 – Comparing a Variable
81. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 4 – Comparing a Variable
82. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 4 – Comparing a Variable
83. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 4 – Comparing a Variable
Result
84. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 4 – Changing a Variable
85. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 4 – Changing a Variable
86. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 4 – Changing a Variable
87. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 4 – Changing a Variable
88. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 4 – Changing a Variable
89. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 4 – Changing a Variable
90. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 4 – Comparing a Variable
Result
91. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 4 – Showing a Variable
92. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 4 – Showing a Variable
93. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 4 – Showing a Variable
94. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 4 – Showing a Variable
95. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 4 – Showing a Variable
96. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 4 – Showing a Variable
97. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 4 – Showing a Variable
Result
98. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 5 – Introduction to
Radio Communications:
Treasure Hunt Lessons
99. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 5 Objectives:
“Introduction to Radio Communications”
What is Radio for?
Building the Transmitter
Setting the Radio Up
Sending a Value
Delays
100. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 5 – What is Radio For?
101. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 5 – Setting the Group
102. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 5 – Setting the Group
103. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 5 – Setting the Power
104. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 5 – Setting the Power
105. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 5 – Sending a Value
106. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 5 – Sending a Value
107. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 5 – Sending a Value
108. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 5 – Sending a Value
109. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 5 – Delays
110. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 5 – Adding a Delay
111. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 5 – Adding a Delay
112. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 6 – Building the Radio
Receiver:
Treasure Hunt Lessons
113. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 6 Objectives:
“Building the Radio Receiver”
Creating a New Project
Setting the Receiver Radio Up
Receiving and Displaying a Value
114. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 6 – What we’ve done…
115. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 6 – New Project
116. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 6 – New Project
117. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 6 – Setting the Radio Up
118. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 6 – Setting the Radio Up
119. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 6 – Receiving a Value
120. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 6 – Receiving a Value
121. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 6 – Receiving a Value
122. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 6 – Receiving a Value
123. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 6 – Receiving a Value
124. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 6 – Displaying the Value
125. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 6 – Displaying the Value
126. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 7 – Making the Treasure
Hunt:
Treasure Hunt Lessons
127. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 7 Objectives:
“Building the Treasure Hunt”
Radio Signal Strength
Displaying the Signal Strength
Converting Signal Strength to LED’s
128. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 6 – Signal Strength
129. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 7 –Signal Strength
130. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 7 –Signal Strength
131. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 7 –Signal Strength
132. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 7 – Showing the Signal
Strength
133. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 6 – Signal Strength
134. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 7 –Signal Strength LEDs
135. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 7 –Signal Strength LEDs
136. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 7 –Signal Strength LEDs
137. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 7 –Signal Strength LEDs
138. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 7 –Signal Strength LEDs
139. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 7 –Signal Strength LEDs
140. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Lesson 7 –Signal Strength LEDs
141. Building a BBC Micro:Bit Treasure Hunt – Pete Gallagher – PJG Creations - 2018
Questions?
All done