Part 2: Building Useful AI Applications
Activity 1-Simple Exercise Timer
STEP 1 (Training): Connect your micro:bit to your computer and open the Simple AI Exercise Timer project. Train your micro:bit to recognize one repetitive movement, such as jumping jacks or arm raises, then add a “rest” action for when you are not moving. Program the device to count each time you perform the exercise, download the program to your micro:bit, and test it to see how accurately it tracks your movements. If you need help at any point, use the video below as a guide.
STEP 2 (Challenge): Create a program that allows your micro:bit to track two different exercises. Program button A to select and display the name of exercise 1 and button B to select and display the name of exercise 2. Have the micro:bit count whichever exercise is currently selected and keep a separate total for each exercise as you test and refine how it responds.
STEP 3 (Invention): Create your own exercise-based invention using the micro:bit. Decide how the micro:bit will detect movement, such as specific exercise motions, shaking, or tilting, and choose at least two different activities it can recognize. Program the micro:bit to respond by counting repetitions, displaying messages, showing totals, or giving feedback during rest periods. Build your idea, test it while moving, and refine it to see how accurately and creatively your exercise invention works.
Activity 2-Advanced Exercise Timer
STEP 1 (Training): Connect your micro:bit to your computer and open the AI Activity Timer project. Train your model to recognize three to four different exercises, such as jumping jacks, squats, arm raises, or running in place, making sure each movement is clearly distinct. Test each training action carefully and refine your model until the micro:bit can reliably tell the exercises apart. Once training is complete, save your model and prepare it for use in a multi-activity program. If you need help at any point, use the example project as a guide.
STEP 2 (Challenge): Create a program that allows your micro:bit to switch between multiple exercises using your trained AI model. Program the micro:bit to recognize three different exercises and guide you through them one at a time. Before each exercise begins, display the exercise name on the screen, then count repetitions as you perform the movement. Set a goal of ten repetitions per exercise and add simple feedback, such as a checkmark, sound, or animation, when each exercise is completed. Continue testing and refining your program so it reliably switches activities and tracks reps accurately.
STEP 3 (Invention): Create your own “Workout Coach” using the micro:bit. Decide how many exercises your routine will include and how the micro:bit will guide the user through them. You might add rest periods, motivational messages, animations between exercises, or sounds when goals are reached. Program the micro:bit to track the total workout time and display it at the end of the session. Test your workout by moving through the full routine and refine your design to make it clearer, more accurate, or more engaging as a fitness tool.
