10 March 2025

Team 5 Fish Progress Review

The game we want to create this controller for is called Normal Fishing, and so thematically, we decided to make the controller itself into a fish! Being styled after a more standard type of fish like a carp or a bass, the main gimmick involves moving its tail to “swim” while bending its fins for direction, and hooking either side of its mouth to try and catch (select) it. The game's inputs aren't inherently complicated, only needing 4 directional keys and 2 context buttons for interaction and canceling. The fish’s fins will control the directional input with flex sensors, but only when the tail is moving. After all, you can’t swim without any propulsion. The hook will serve as a pseudo button or switch, completing the circuit and activating a corresponding action depending on which side of the mouth it is placed. Overall, the fish controller sets itself up to be a unique peripheral for the project.


Circuit Schematic

Diagram

Pseudo Code:

Initialize controller and define the input variables
Define the directions: up, down, left, right, potentiometer
Define the button states: L and R (Left and Right side of face)

void setup() {
Record and store position of potentiometer and fins
}

Main loop: Continuously check for inputs
void loop() {
Detect if Tail (potentiometer) is moving (if its value is the same as before) {
Detect if Top Fin is bent (analog reads change in voltage value)
               If Yes: Activate W Key
Detect if Bottom Fin is bent (analog reads change in voltage value)
               If Yes: Activate S Key
Detect if Left Fin is bent (analog reads change in voltage value)
               If Yes: Activate A Key
Detect if Right Fin is bent (analog reads change in voltage value)
               If Yes: Activate D Key
}
Detect if mouth signal is complete
               If Yes: Activate corresponding button (Select of Back)
}


No comments:

Post a Comment

Note: Only a member of this blog may post a comment.