Microbit: Step Counter
I created a Micro:bit program that tracks the number of steps by using the built-in accelerometer to detect motion (shaking). Every time the device senses movement similar to a step, it increases the step count by 1 and continuously displays the total on the screen. I tested the program by placing the Micro:bit in my pocket and walking until it reached a goal of 50 steps that I set in the code. Once the step count reaches 50, the program triggers a sound to notify the user they’ve reached their target. This project demonstrates how sensors, variables, conditionals, and loops can be combined to create a simple but functional fitness-tracking tool.
The performance task is a project where I designed and created a working program that demonstrates my ability to use programming concepts like variables, lists, procedures, conditionals, and loops to solve a problem or create an interactive experience.
For my project, I created a game where a player collects coins to earn enough money to buy different lemonade flavors. I used lists to store the lemonade flavors and their prices, which made the program easier to manage and expand. I also created a procedure called coin_spawner that controls how coins appear in the game, using loops, conditionals, and a parameter to change how the coins behave. The program includes user interaction through movement and coin collection, and it uses conditionals to determine the outcome based on the player’s score.
Overall, my program demonstrates how different programming concepts work together to create a functional and interactive game.