01 - micro:bit and Data
Last updated
Was this helpful?
Last updated
Was this helpful?
In this first activity, we are using the micro:bit to collect and visualize data. The micro:bit only has 25 LEDs, but don't let that discourage you. With a little bit of imagination, you can visualize even large data sets.
Read the requirements and try to code the activity. Once you are done or you give it your best, take a look at the way we solved it, below.
Note: The micro:bit coordinates start at x = 0, y = 0 at the top left corner of the LED matrix. You can see the coordinates for each LED by hovering the mouse pointer over each LED on the MakeCode Emulator.
In the next section, we are utilizing the sensors on the micro:bit to collect and continuously display data using a Servo Motor. See you in Servo Motor and Data.
We learned about this process when we explore section. We add a change block that increases the value of caseA every time we press the A button.
You can see our solved version