2017-03-16 (Th) Pi0 Laser Tag PiTagErrUs

Programming hardware requires some setup to define what each pin does and what to call it. This is true for Arduino and Pi and probably all the clones. Since it had been awhile since I last programmed hardware for a Raspberry Pi it took a bit of time and some helpful tutorials to remember what needed to happen. This was also a time to brainstorm a bunch of the variables which would be used in the games.

 Animated scroll of beginning of code

Pseudo code for the basic game functions were written with indentation to give myself an idea of how the tagger would operate. The core operations of the game were sketched, like what to do with received data and how to check that it's valid. Data package structure was also sketched and includes a timestamp on each transmission so cheating would be more difficult. Simple laser tag guns can have their signals copied by a learning remote, commonly used for home entertainment systems.

Scrolling pseudo code

The hardware setup and initial code was tested by controlling on-screen text and LEDs with buttons. Each of the buttons represents one of the inputs from the actual tagger such as the trigger or the reload button. Even more tutorials were necessary to recall the vital parts of interfacing with physical hardware.

Testing code with physical hardware


First time here?

Completed projects from year 1.
Completed projects from year 2.
Completed projects from year 3.






2017-03-01 (W)