Reaction Time
This fun and challenging course walks you through the process of building and coding your own reaction time tester and a two-player reaction game.
Introduction to Reaction Time
Let's get to know you!
Mission and Mission Objectives
Background
Microcontroller Board and Components
Envisioning the Board
Breadboard Basics
What's the Voltage?
Setting Up the Board
Two Complete Circuits
Downloading Arduino IDE for MACs and PCs
Chromebook Instructions for Downloading Arduino Create
Setting Up the Pins
Defining Inputs and Outputs in Our Code
Variables Are Your Friends
Better with Variables
Reading from a Digital Pin - Video
Reading from a Digital Pin
Using the Input in Our Output?!
Experimenting with Inputs and Outputs
What's Wrong with Our Circuit? - Video
What's Wrong with Our Circuit?
Break it Down
Program Design with Pseudocode
How to "Print" to the Screen
Creating a User-friendly Program
Avoiding the Infinite Loop
While Loops
Creating a Random Delay
We Need Random Numbers!
Keeping Track of Time
Estimating the Reaction Time
The "Do...While" Challenge
Waiting for the Button Press
The Last Few Steps
Turning Off the LED and Calculating the Elapsed Time
Test Run! - Video
Test Run!
You Did It!
Introduction to Light Sensors
A New Mission and Circuit Revisions
Finding Your Threshold - Video
Choosing a Threshold
Updating Your Sketch
Code Revisions
Congratulations! Part 2 Complete!
Introduction to the Two-player Game
A New Mission and Board Setup
Interrupting Is Okay - Sometimes
Interrupts and the Winner
Code for Part 3 - Two Player Game
Congratulations and Introduction to Challenges
Coding Challenges
We're excited for you to join us next time!
Glossary
Appendix 1 - Sketch for Reaction Time Part 2
Appendix 2 - Using the Ultrasonic Sensor