الانتقال إلى المحتوى

Lesson 12: Reaction game

English

How fast are you?

  • In this project you build a small game: an LED says GO, and you press the button as fast as you can.
  • The Arduino measures the time between GO and your press, and prints it in the Serial Monitor.
  • You wire the circuit yourself: an LED on pin 13 and a button on pin 2.

Words for this lesson

Word Meaning
reaction time how long you need to answer a signal
millis() the number of milliseconds since the board started
unsigned long a whole number that can be very big and is never negative
cheat win by breaking the rules

تسجيل الدخول أو إنشاء حساب

IGCSE, A-Level & AP