The hardware of this project consisted of an Arduino circuit with two main components: an LCD and a button. The LCD was used to display text and a counter to the user, and utilized a potentiometer to control the visibility of the display. The analog button was used to track the number of objects the user found throughout the course of our game. An additional wooden casing was built to hide the wiring behind the complex, and keep it safe from potential rough play.
The programming of this project was used to display text on an LCD to a user and track how many objects they found as they played. The first loop in the code reads the value of the analog button, then uses boolean logic to add to a variable called "presscount" when it detects the button has been pressed. This is repeated until the button has been pressed five times, when it will then tell the user that they have won, and reset the game for the next player. A more detailed depiction of the logic can be seen below in the flowchart.