This project uses Micro:bit pin 0 with external button to trigger a happy face on built-in LED matrix, programmed by MakeCode blocks. Goals:
Digital signals and input/output basic understanding
Button as the typical simple digital input-er
Read digital signal from Micro:bit pin as input
Hardware: Tactile button and wiring
Software: if-else logic condition, comparison judgement
START A BIT > Projects Library > This page
[x] Simple: 30-60 minutes
[ ] Moderate: 1-2 hours
[ ] Challenging: more than 2 hours
The estimation bases on average situation without unexpected troubleshooting, assuming that the student meets prerequisites. It only indicates rough time needed to complete this project, but not about technical difficulty, not covering discussion and sharing time.
Micro:bit V2 board, Micro:bit pin breakout board, Breadboard: Know what they are, better to have prior experience using them
Tactile switch/button basic what/how : Should be able to identify and connect the legs correctly
1x Micro:bit V2 board , with USB cable
1x breadboard
1x 10 kΩ resistor
Some jumping wires
Purpose: Physical wiring, get to know what it looks like, connect them as required in the scheme
This is what you need to build in a simplified view.
Use the micro:bit pin breakout and breadboard to connect the components, you don’t need to use the exact holes in the breadboard as others, as long as the wiring path is correct.
It's not required to fully understand why the resistor is needed.
Purpose: Understand how to get digital signal input from pin
Initially, Micro:bit should show a dull face or sad face
If pressing external button, Micro:bit shows a happy face
If releasing external button, Micro:bit shows the initial face
This is typically the way you get the button input and use it directly for decisions. Be careful about which actual PIN you use.
What are the differences of logic among below examples?
Are there any wrong-doing?
Do we need to always have both judgement branchs for "=1" and "=0"?
Which one is better?
Purpose: Enhance basic knowledge understanding, reflect and summarize what we have learnt
What is digital signal?
How many results of a digital signal?
Help your classmate to troubleshoot this work, it seems not working...
Take 1-2 minutes to explore anything on the tools and the making flow, with curiosity, no matter how much prior knowledge you have, you should make
At least 1 interesting finding
At least 1 curious question
Used in Session w17 of LP2415: 4 Weeks Refreshing Package, 24w15
Used in Session w46 of LP2346: 3 Weeks Recap & Review, 23w46