Candy Dispenser Riddles You This

A while ago, someone brought in a candy machine to AdaCore. Sometime after, [Fabien-Chouteau] was challenged to make it more… fun. So he decided to make it harder to receive candy — you know, to encourage knowledge growth — and discourage overeating of tasty treats.

The dispenser itself is pretty simple. It consists of a hopper containing the candies, a motor with a worm-gear for delivering said candies, and a small IR sensor that detects when you wave your hand underneath (in order to receive those sweet sweet candies).

He decided to leave the system operating as is, and only interrupt the connection to the motor feed. That way when you wave your hand underneath, you have to answer a skill testing question before you proceed…

Continue reading “Candy Dispenser Riddles You This”