Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Lost Robots and Broken Circuits: Thinking Like a Detective

· in Learning

Cover picture: Lost Robots and Broken Circuits: Thinking Like a Detective

A lost robot and a hidden faulty resistor are both solved the same way: gather evidence, update what you believe, and choose the next test wisely.

What does a robot that does not know where it is have in common with a technician fixing a circuit? Both start with many possibilities and use evidence to narrow them down. Two new labs let you practise this kind of thinking.

The lost robot

Picture a robot in a long corridor that loops round. It has a map showing where the doors are, but it does not know where it is. All it can do is sense (is there a door next to me?) and move a step to the right. Both are a little unreliable.

The Robot localization lab shows the robot's belief as bars, one for each place it could be.

  1. At the start every bar is the same height: it could be anywhere.
  2. When it senses a door, the bars next to doors grow and the others shrink.
  3. When it moves, the bars shift along and spread out a little, because the move might have been one step too short or too long.
  4. After a few rounds of moving and sensing, one bar stands far above the rest.

This method is called a histogram filter, a simple version of what real robots use to find themselves.

Try this: make all the doors evenly spaced. The robot cannot tell them apart, so it never becomes sure. Uneven gaps make each position unique.

The hidden fault

In the Circuit fault finder, a battery feeds a ladder of resistors, and one of them is faulty. It is either open (broken, so no current flows) or shorted (it acts like a plain wire). You have a voltmeter and can measure between any two test points.

Good technicians do not measure at random:

  • measure each point against ground first, to see where the voltage drops
  • an open part shows a big voltage across it, with nothing after it
  • a shorted part shows 0 V across it
  • measure in the middle first, then on the side that looks wrong

Every puzzle can be solved, because the fault always gives readings that no other fault would. Try to find it in as few measurements as you can. For the basic formulas, the Electronics calculator covers Ohm's law.

Same idea, two worlds

Both labs follow the same loop: start with every possibility, collect a clue, rule out what no longer fits, then choose the next clue that tells you the most. It works for robots, repairs, and plenty of puzzles in everyday life.

Tags:

All blog posts

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product