A Microsoft Windows Presentation Foundation (WPF) C# Kinect game that demonstrates and compares digital Lock-in Feedback (LiF) versus analog Lock-in Amplification (LiA).
"Flappy Bird" makes use of an XBox Kinect motion sensing input device to demonstrate the equivalence of the digital Lock-in Feedback (LiF) algorithm to an analog Lock-in Amplification (LiA). To do so, "Flappy" invites a player to wave his or her arms in a rhythm that is set by a line that moves up and down the screen. The line speeds up if the player is able to follow the line closely. It slows down if he or she is unable to keep up. The goal of the game is to make the line move as fast as possible in a limited period of time.
Importantly, the speed with which the line moves up and down the screen is determined by our Lock-in Feedback algorithm, or, in the LiA version, by a live, analog Lock-in Amplifier (Stanford Research Systems SR830).
Photos of the analog LiA setup (to the left - lab equipment of course unnecessary for the digital LiF version) and the game being played (right):
For some videos of the game in action, see:
https://youtu.be/vN1kBffZOS8?list=PLfezfZWsuaJVeFtIvgYVxDs_uE5A6M8Xc
The speed of the line is determined by our (Davide Iannuzzi, Maurits Kaptein, and Robin van Emden) Lock-in Feedback algorithm, or, in the LiA version, by a live, analog Lock-in Amplifier (Stanford Research Systems SR830). The principle is illustrated by the following chart:
The game has been made possible by the generous support of the Foundation for Fundamental Research on Matter (FOM) and the Netherlands Organisation for Scientific Research (NWO). It was presented at the yearly Dutch Physics@Veldhoven (2017) conference.
Both the LiA and the LiF versions of the game make use of the following (free) libraries and frameworks:
- The Vitruvius Kinect framework.
- MakApps.Metro, a toolkit for creating Metro styled WPF apps.
- OxyPlot, a cross-platform plotting library for .NET.
Additionally, the LiA version makes use of a LabJack U3 (LV version) to interface the game with the Lock-in Amplifier: