Navigasi Materi

Makecode Micro:bit #8 - Reaction Timer2

MakeCode micro:bit Lab #8 - Reaction Timer

⏱️ MakeCode micro:bit Lab #8 — Reaction Timer

English: Measure how quickly you react to a signal.

Indonesia: Mengukur seberapa cepat kamu bereaksi terhadap sebuah sinyal.

Input → Event → Timing → Data

Simulator / Simulasi

AB
READY
0123VGND
Signal / Sinyal
\u2014 ms
Press RUN to begin.

Results / Hasil

\u2014
🏆
Best
Tercepat
\u2014
📊
Average
Rata-rata
0
🎯
Trials
Percobaan

💡 Cara Bermain / How to Play

1
Tekan RUN untuk memulai.
Press RUN to start.
2
Tekan START dan tunggu sinyal berubah hijau.
Press START and wait for the signal to turn green.
3
Tekan REACT secepat mungkin setelah sinyal muncul.
Press REACT as quickly as possible after the signal appears.
Semakin kecil waktunya, semakin cepat responsmu!
The smaller the time, the faster your reaction!

🎯 Tujuan Pembelajaran / Learning Goal

Memahami konsep waktu dan kejadian (event).
/ Understand time and event.
Mengukur waktu reaksi.
/ Measure reaction time.
Mengumpulkan dan membandingkan data.
/ Collect and compare data.

🚀 Coba di micro:bit sungguhan!

Try it with a real micro:bit!

Buat program Reaction Timer di Microsoft MakeCode.
Create the Reaction Timer program in Microsoft MakeCode.

↗ Open Microsoft MakeCode for micro:bit →

Official MakeCode: makecode.microbit.org

📊 Koneksi dengan Matematika

Math Connection

Gunakan hasil percobaan untuk mencari rata-rata, nilai terkecil, nilai terbesar, dan membuat diagram.

Use the results to find the average, minimum, maximum, and create a diagram.

🧩 Program / Program

English: The program waits for a signal, records the signal time, and calculates the reaction time.

Indonesia: Program menunggu sinyal, mencatat waktu munculnya sinyal, kemudian menghitung waktu reaksi.

on start // prepare the reaction timer when signal appears set startTime to running time when player reacts set reactionTime to running time - startTime show number reactionTime

Key idea:

Reaction Time = Response Time − Signal Time

🧠 Practice / Latihan

Question / Pertanyaan:

If the green signal appears at 1200 ms and you react at 1450 ms, what is your reaction time?

Jika sinyal hijau muncul pada 1200 ms dan kamu bereaksi pada 1450 ms, berapa waktu reaksimu?

🏆 Challenges / Tantangan

Challenge 1 — Fast Reaction

Run the simulator, press START, wait for green, then press REACT. Try to get below 1000 ms.
Indonesia: Cobalah mendapatkan waktu di bawah 1000 ms.

Challenge 2 — Think Like a Programmer

Which event should happen when the player presses the reaction button?
Event apa yang terjadi ketika pemain menekan tombol reaksi?

Challenge 3 — Calculate the Reaction

Signal time = 2000 ms
Response time = 2675 ms

What is the reaction time? / Berapa waktu reaksinya?

📐 Math Connection / Hubungan dengan Matematika

Contoh hasil percobaan: 420 ms, 510 ms, 390 ms, 460 ms

(420 + 510 + 390 + 460) ÷ 4 = 445 ms

Aktivitas ini dapat dikembangkan menjadi proyek statistika: mean, median, minimum, maksimum, dan diagram.