Centauri Academy Open the Academy
Robotics division scene at dusk, the Academy’s silver star in the sky

Robotics · Ensign mission · Silver shield

The Counter

With a micro:bit or similar board and your grown-up, choose something real to count that passes a point: marbles rolling down a chute past a light sensor; people coming through a doorway in your home (with their agreement), using a tilt or button sensor on a door; a toy car passing a gate; the number of times a door is opened. Write a program that adds one to a counter each time the sensor detects something passing, shows the count, and can be reset with a button. Think about the problem of double counting: what if one thing triggers the sensor twice? Add a short pause after each count to stop this. Test it with 20 known passes. Then run it for real, for a set time or a set number of things, while you also count by hand with a clicker or tally. Compare the two counts. Do three runs, improve the program or sensor position, and work out how accurate it is as a percentage.

Open in the app

Age
10 and over
The real skill
Event counting with sensors
Rank
Ensign
Shield
Silver

The real-world skill

In the real world this is event counting with sensors: detecting discrete events, incrementing and displaying a counter, debouncing to avoid double counts, validating against a manual ground-truth count and computing accuracy, as used in traffic counters, turnstiles, production lines and wildlife monitoring.

How it runs: an Ensign mission: the grown-up agrees where the counter goes, the Ensign codes, sets up, counts by hand and compares.

What you actually do

Every Academy mission is a real task told as a story. The left column is the real thing; the right is what the briefing calls it.

What you actually doWhat the mission calls it
Choose real things passing a pointVisitors at the gate
A sensor and a counter programThe turnstile
Add one, show it, resetEach click round
A pause to stop double countsTwo squeezing through
Test with 20 known passesChecking the mechanism
Count by hand at the same timeThe careful count
Compare and improveSix million, right

The ground rules

Written for the grown-up. These are part of the mission, not extras.

  • The grown-up agrees what you count and where the sensor goes.
  • Counting people only with their agreement, at home, and never recording who they are.
  • No cameras or microphones in this mission.
  • Battery packs only, and sensors fixed so nobody can trip over wires.

From the briefing

Ensign, in 1851 the Great Exhibition was held in London in an enormous glass building called the Crystal Palace, built in Hyde Park. People came from all over the world to see the newest inventions and wonders. Over about five and a half months, more than six million visits were made. How did anyone know? At the entrances, visitors passed through turnstiles that clicked round as each person went through, and the turnstiles kept count. Every evening the totals were read and recorded.

The full briefing, the officer’s welcome back and the silver shield are in the app.