PI-99IntermediatePremium

Pico Reaction Timer: A Millisecond Reflex Game (Pin.irq + TM1637)

Press START, the LED lights up at a random moment with a beep; how fast you hit the REACT button shows on the TM1637 display in milliseconds. The press is caught by a Pin.irq interrupt and its timestamp is taken right then, so the measurement stays exact even when the loop is busy. Press before the LED and you get "Err". The average of 5 rounds and your record are shown: 313 ms average and a 257 ms record in the video.

0.0(0)
Pico Reaction Timer: A Millisecond Reflex Game (Pin.irq + TM1637)
You build a small game for reflex contests with your friends. The light comes on at a random moment, you hit the button as fast as you can, and the display shows how many milliseconds it took. Anyone who presses early gets caught, and after five rounds your average and your record appear. You also learn why the measurement is so precise.

Source Code

Premium Content

The source code, block version and FAQ of this project are open to Premium members.

  • All Project Code
  • Block version
  • Frequently Asked Questions