Timo Denk's Blog

Buzz Wire TFT (Teensy Project)

· Timo Denk

Arduino powered version of the game Buzz Wire with a TFT touch screen. This project was developed for Denk Development‘s customer Kreative Kiste.

Features

  • Single- and multiplayer
  • Multiplayer scoreboard
  • Touchscreen name input

Video

The code itself was written in June 2016; the video was recorded on October 2, 2016.

Components

Libraries

Wiring

TeensyScreenBuzz-WireDescription
Software Serial for debugging
1Software Serial for debugging
2Start / StopMain button
3Mistake
4BuzzerSound signal
6DCLKTouch clock
7DCSTouch chip select
8TFT_RSTReset
9TFT_DC
10TFT_CSChip select
11TFT_MOSI
12TFT_MISO
13TFT_CLKClock
A0DOUTTouch
A2DINTouch

System States

enum GameState {
  Init,
  Start,
  GameTypeSelection,
  NameEntry,
  Waiting,
  Running,
  Over,
  Ranks,
  Scoreboard
};

Photos


The Buzz-Wire development system on a breadboard.

The Buzz-Wire development system on a breadboard.
The Buzz-Wire scoreboard showing the top four players.
The Buzz-Wire scoreboard showing the top four players.