Skip to content

🎣 Fishing game using Arduino, Processing and a Water Level Sensor

License

Notifications You must be signed in to change notification settings

Feliperpvieira/Arduino-Fishing-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

english-fishing-background

🎣 Arduino and Processing Fishing game

Fishing game using Arduino, Processing and a Water Level Sensor.
The idea of this project was to build a fishing minigame, similar to the ones found in popular games, such as Club Penguin and Mario Party, but this time using real water and a physical fishing rod to control it, bringing the virtual and physical spaces closer together.

Topics:
How it was made
How to install and run the game
No-Arduino / Mouse version

Video.-.Jogo.de.Pesca.com.Arduino.mp4

How it was made

Code

Language: Processing
Download Arduino to install Standard Firmata on your board
Download Processing to run the game

The code is available in 🇺🇸 english here and in 🇧🇷 portuguese here.

Eletronic components

Arduino Uno Horizontal Water Level Sensor 3 jumpers 1 resistor 1 protoboard

Circuit and construction

The circuit is simple, you need to connect the sensor to the Arduino using a resistor between the input and ground cables.

  • 🔵 Blue cable: 5V (Arduino) -> Water level sensor
  • 🟣 Purple cable: Ground/GND (Arduino) -> Resistor
  • 🟢 Green cable: Digital input (Arduino) -> Resistor -> Water Level Sensor

DSCF2565-2

You can see in more details the circuit and the fishing rod in the following video:

Demo-eletronic-circuit.mp4

The fishing rod was built using pieces of 3mm MDF. They were cut by hand using a tabletop saw; the piece's shape was then made with a bench sander, including the rounded borders. The holes were drilled using different sized bits, one for the sensor and the other, a smaller one, to attach the 2 pieces together. Everything was then varnished to protect the wood from water.
Each piece is roughly 7.5 X 1.5 inches.

How to install and run the game

Download Arduino to install Standard Firmata on your board
Download Processing to run the game

1- Open Arduino, go to File > Examples > Firmata > Standard Firmata
2- Upload "Standard Firmata" to your board. You can close the Arduino software now.
3- Open processing and download the right file for you:

4- Write the number of the digital input port your water level sensor is connected on line 9
5- Run the software and follow the instructions on the console to write the Serial Number your Arduino is connected on the setup() function (line 🇧🇷 55 or 🇺🇸 56)
6- Run and play the game!

No Arduino? No problem.

If you don't have an Arduino or the water level sensor available but still want to try the game there's a special version for you!

🖱 No-Arduino / Mouse version: sketch_fishingGame_mouse.zip

All you need is to download and open the file on Processing to play the mouse version.
In this version, keeping the fishing rod in the water was replaced by pressing the mouse button.
Press and release the mouse button to fish. Good luck!

Screenshots

Credits

Authors: Felipe Rabaça and João Pedro Mafra
DSG1412 - Physical Computing Interfaces
Professor: João Bonelli - Physical Computing Interfaces Laboratory