What is a micro:bit?
What is a micro:bit?
A micro:bit is a programmable mini computer! It can be coded from any web browser in various languages like javaScript, Python, Scratch, and Blocks. For our session today, we will be using MakeCode Blocks.
Your micro:bit has the following physical features:
- 25 individually-programmable LEDs
- 2 programmable buttons
- Physical connection pins
- Motion sensors (accelerometer and compass)
- Wireless communication via bluetooth radio
- USB interface
If you want to learn more about each individual component and all the features that come with your micro:bit, you can click here .
Go ahead and take out the micro:bit and the rest of the components from the bag. You should have one micro:bit, 2 batteries, a micro USB cable, and the battery holder (the black box with the red and black wires coming out of it). If you’re missing anything or need help feel free to ask one of the instructors!
Using the Simulator
While not as fun as having the actual, physical hardware, you can also use the simulator to see your code working. Look for the images of micro:bits off on the left side of your screen. If you don’t see them, look for the “>” symbol on the left and click it to unhide the simulator. On the simulated micro:bits, find the Bluetooth radio antenna. It looks like a yellow square wave:
If you hover your mouse cursor over this wave-shaped antenna, the actual signal strength will show up next to it. You can then click on the antenna and drag your mouse cursor left to decrease the signal strength or right to increase it. If you get the signal strong enough (strength > -67
), the other micro:bit will update to show a frowning face. Weaken the signal again to make the micro:bit smile.
Now, let’s get coding…