Lesson plan

Build a cornhole scoreboard lesson plan

Big digits, team buttons, real cancellation scoring to 21, a radio remote on a second Uno and a fanfare for the winners.

3 chapters, 6 lessons, about 5 hours, on the Arduino Uno R3. Every lesson runs in the browser, with nothing to install.

The unit

Objectives and materials

By the end, students can

  • Light eight digits from three wires and score from four buttons.
  • Real cornhole scoring in code, and a remote over the radio.
  • Win effects and a scoreboard ready for the backyard.

Materials for the whole unit

  • 2.4 GHz radio, nRF24L01+ x 2
  • Arduino Uno R3 x 2
  • Buzzer
  • Eight-digit display, MAX7219
  • Pushbutton x 10

Every part is already on the simulator’s bench, so there is nothing to buy or hand out. The counts are the most any one lesson uses, if you build it on real breadboards too.

Chapter 1. About 1 h 40 min

Digits and buttons

Light eight digits from three wires and score from four buttons.

LessonTimeWhat students do
Big digitsDrive eight seven-segment digits from three wires with a MAX7219: wake it, run a lamp test of all 64 segments, and count a team up to 21.45 min
  1. Wake the display
  2. Lamp test
  3. Count up
  4. Twenty-one
Buttons for teamsAdd points from four buttons, 1 for the board and 3 for the hole, debounce every press, and give the scorekeeper an UNDO.55 min
  1. A simple scoreboard
  2. Pressed reads LOW
  3. Three points
  4. Team B
  5. Undo

Materials

  • 2.4 GHz radio, nRF24L01+ x 2
  • Arduino Uno R3 x 2
  • Buzzer
  • Eight-digit display, MAX7219
  • Pushbutton x 10

Check for understanding

Each student finishes "Buttons for teams" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Undo".

Chapter 2. About 2 h

Rules and the remote

Real cornhole scoring in code, and a remote over the radio.

LessonTimeWhat students do
Rules in codeTeach the scoreboard real cornhole: four bags an inning, 3 in the hole and 1 on the board, cancellation scoring, and first to 21.65 min
  1. Inning 1
  2. Enter a bag
  3. Cancellation
  4. A wash
  5. Only four bags
  6. First to 21
A remoteScore from the far board: a second Uno sends each button over an nRF24L01, the radio confirms every packet, and both sets of buttons share one command.55 min
  1. Two radios
  2. Send a bag
  3. Did it arrive?
  4. A whole inning by radio
  5. Mix and match

Materials

  • 2.4 GHz radio, nRF24L01+ x 2
  • Arduino Uno R3 x 2
  • Buzzer
  • Eight-digit display, MAX7219
  • Pushbutton x 10

Check for understanding

Each student finishes "A remote" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Mix and match".

Chapter 3. About 1 h 30 min

Game day

Win effects and a scoreboard ready for the backyard.

LessonTimeWhat students do
Win effectsCelebrate properly: a fanfare on the buzzer and a flashing final score, both timed with millis() so the board never stops listening.45 min
  1. Win it
  2. The fanfare
  3. Flash the score
  4. A win from the far board
Project: a backyard boardPlay real innings on the finished scoreboard and remote, then build it for your own boards: a box, a battery and a remote on a lanyard.45 min
  1. Game day
  2. A real inning
  3. Play to the end
  4. Build it for your yard

Materials

  • 2.4 GHz radio, nRF24L01+ x 2
  • Arduino Uno R3 x 2
  • Buzzer
  • Eight-digit display, MAX7219
  • Pushbutton x 10

Check for understanding

Each student finishes "Project: a backyard board" on their own, without opening the hints. The simulator checks 4 of its 4 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Build it for your yard".

Your class

Teach this unit as a class

Start a class from this course and its 6 lessons are assigned in one go, in order. Students join with a six-character code or printed login cards, and each one’s work comes back to you.

The class tools are free for 30 days for one class of up to 20 students, with no card. The lessons themselves are free either way.