Micro:Bit Color Sensor Pack: Setup and Project Steps
By Thames & Kosmos Online Store | Published: 2026-11-03
Category: How-to Guides
Add the Color Sensor Component Pack to your Micro:Bit Robotics Workshop and follow a clear, step-by-step setup to start teaching color sensing.
Quick answer
Start by checking that your Robotics Workshop with Micro:Bit is assembled and powered, then connect the Color Sensor Component Pack to the correct port, load a simple detection program, and test with colored objects. Work through the steps below in order to avoid wiring and code mistakes.
Why the Color Sensor Pack is a practical add-on
The Color Sensor Component Pack is a single-piece add-on for the Robotics Workshop with Micro:Bit system, released in 2024 and rated for ages 8–18+. It lets you extend existing robot builds with color detection without replacing the core kit. Because it is a component pack, it assumes you already own the main workshop; it is not a standalone robotics kit.
For teaching color sensing to kids, this pack works best after they have built and coded a basic robot. The sensor gives immediate, visual feedback—point it at a red block and the robot can react—which makes abstract coding concepts like conditionals and sensor input easier to grasp. Keep in mind that the pack contains one piece, so plan for one sensor per robot or rotate it between builds.
Before you start: what you need and what to check
You will need the assembled Robotics Workshop with Micro:Bit, a computer with the Micro:Bit programming environment your family uses, and a few colored objects for testing. The Color Sensor Pack does not include batteries, and the catalog does not list a separate power requirement, so rely on the power setup of your main workshop. The catalog also does not specify a cable or connector type for this pack, so check the contents of your pack and your workshop’s available ports before assuming a particular connection.
Step-by-step color sensor setup and project
- Assemble and power the base robot: Build the Robotics Workshop with Micro:Bit according to its instructions and confirm it powers on and runs a basic program. Common mistake: trying to add the sensor before the base robot is working, which makes it hard to tell whether a problem is in the robot or the new component. If the robot does not power on, fix that first—the color sensor cannot work without a functioning base.
- Identify the correct port and connect the sensor: Check your workshop’s port labels and the Color Sensor Pack contents. Connect the sensor to a port that your program can read, following the port naming in your workshop manual. Common mistake: forcing a connector into the wrong port or assuming a cable is included when the pack only lists one piece—verify what is in the box before connecting. Make a note of which port you used; you will need that number in your code.
- Write a minimal detection program: Open the Micro:Bit editor you normally use and write a short program that reads the sensor and displays a simple output, such as an icon or a number, when a color is detected. Start with one color and one condition. Common mistake: writing a long program before testing the sensor input—if nothing displays, you cannot tell whether the sensor or the logic is wrong. Test with a single 'if color detected then show icon' block before adding more colors.
- Test with clear, distinct colors: Place a red, then a blue, then a green object in front of the sensor at a consistent distance and angle. Watch for the output to change. Common mistake: testing with pale or similar shades and concluding the sensor is broken—start with strong, different colors and steady positioning. If one color works but others do not, adjust your code thresholds before assuming a hardware fault.
- Add a robot action: Once detection is reliable, make the robot respond—stop, turn, or light up—when a specific color is seen. Keep the action simple and test it with the same colored objects. Common mistake: adding movement code before detection is stable, which can make the robot behave unpredictably during testing. Run the detection test again after adding movement to confirm the sensor still reads correctly.
- Document and reset for the next project: Save your working program with a clear name, and note the port and color thresholds that worked. Disconnect the sensor carefully when changing builds. Common mistake: leaving the program unsaved and losing a working setup, or tugging the connector instead of releasing it properly. Keep a simple log of port numbers and working color values so the next project starts faster.
Product facts
- Robotics Workshop with Micro:Bit: Color Sensor Component Pack: Compatible with the Robotics Workshop with Micro:Bit system; ages 8–18+; 1 piece; released 2024. This tells you it is an add-on for an existing workshop, not a standalone kit, and the age range makes it suitable for both younger builders and teens.

Robotics Workshop with Micro:Bit: Color Sensor Component Pack
