Recognize Different Colors

In this lesson, you’ll take charge of training the HUSKYLENS directly from your micro:bit program! Instead of using the HUSKYLENS buttons, you’ll use the A, B, and touch buttons on your micro:bit to control how it learns.
-
Touch the logo pad to erase everything it has learned.
-
Press A to move forward through ID numbers.
-
Press B to move backward.
-
Press A + B together to make the HUSKYLENS remember what it sees under the current ID.
This activity shows how machine learning on your robot can be guided by code. With just a few button presses, you can teach the HUSKYLENS to recognize and remember different colors — and later, you’ll be able to use the same approach with objects, faces, tags, and more. You’ll also be able write scripts to get the item’s location on the HUSKYLENS screen for robotic tracking and following.