DIY Electronic Foosball Table
I’ve been stuck at home for a month now with a lot of free time and I came up with this fun little project. It’s an electronic football table that uses some cheap electronic components to detect when someone scores a goal and shows it on a scoreboard! I used Tinkercad Circuits to simulate the circuit and write the code for the Arduino. The code is pretty simple. It reads the analog pins continuously in a loop. The more light the higher the value will be. Here is a Video just in case need.
Supplies
Tinkercad [App]
Arduino Uno R3
Blue LED x2
100 ohm Resistor
10k ohm Resistor x2
Photoresistor x2
Buzzer [Piezo]
Place Arduino Uno R3
Place Arduino Uno R3 on the Board.
Add All the Other Components and Wire It Up.
Add the LED, Resistor, Photoresistor, and Piezo then wire it up. It will be a little tricky so watch the image carefully or watch the video.
Put in the Code.
Go to this website and copy the code to Tinkercad.
electronic-table-football/goalcontroller.ino at master · s6joui/electronic-table-football · GitHub
Simulate Circuit
Simulate the Circuit. If work then add the circuit in your foosball table.