Introduction: MySmartFoosball: Analyse Your Game!

Imagine a 'foosball table' that autonomously calculates LIVE match statistics, such as goal scores, ball possession, successful passes, shots on goal... and even announces which of the little plastic footballers was the ‘player of the match!’ Using NI myRIO, an iPad, and a tin of conductive paint, you can add connected intelligence to ANY Foosball table!

My name is Leonard Goldschmidt, a Mechanical Engineering student at Loughborough University (UK). As part of my industrial placement year with National Instruments, I have been given a week to design and implement an innovative new gadget or tech demo. This is an awesome opportunity, as this project has engaged my creativity, knowledge and engineering enthusiasm more than ever before!

Step 1: The Hardware.

The entire hardware design was based on a simple, initial theory:

“When a player touches the ball, it completes a circuit and a digital signal is sent to a myRIO.”

Once a digital signal is recognised by the software running on the myRIO, I can use it to calculate appropriate statistics. To create this switch-like behaviour, I painted the following parts with conductive paint as shown above.

To physically connect to each of the 12 players, I ran individual wires through the various poles used to move the players. Each of the wires was then connected to one of the 40 digital IO lines on the myRIO. In doing this, I could recognise exactly which player is kicking the ball/intercepting a pass, whilst ensuring that the wires did not encroach on the field of play.

Step 2:

To attach the wire to each player, I simply glued exposed wire to the players’ feet (which had been previously covered in conductive paint). This provided a permanent and robust connection, and allowed current to flow when contact is made with the ball. The current is supplied to the entire pitch by the myRIOs built-in 5V supply line. To prevent the ‘power wire’ from interfering with the flow of the game, I attached it surreptitiously to a corner of the pitch.

Step 3:

The only match statistic that could not be reliably sensed by the conductive paint, was the goals. On my specific Foosball table the distance between the back of the goal and the pitch was too great. Instead, I created ‘goal-line technology’ by mounting a laser diode and a light dependent transistor at the mouth of each of the goals. This acts as a light gate, which ‘breaks’ when the opaque football passes through the goal.

Step 4:

Again, I wired the diode and transistor to the digital IO lines on the myRIO, such that a TRUE is read when the goal is clear, and a FALSE is briefly read when a goal is scored.

Step 5: The Software.

LabVIEW 2016 (or above)LabVIEW Real-Time Module 2016 (or above)LabVIEW FPGA Module 2016 (or above)myRIO toolkit (2016 or above)NI Data Dashboard (IPad App)To produce the iPad interface, I used a free app called NI Data Dashboard. It is completely configuration based, so no programming was required. This allowed me to create a clean, attractive, responsive touch-based interface within minutes!

Enabling the wireless communication between the iPad and the myRIO was also easy! I simply had to define a number of Network Shared Variables with the appropriate data type, then wire them into my code at the appropriate locations.

Step 6:

By using the FPGA on the myRIO, I utilized the high acquisition speed to ensure no players touch is missed. I then read the FPGA from the RT and used Network Shared Variables to share the data with the IPad.

Step 7: Steps to Run the Project.

1. Ensure that the required software is installed (see above)

2. Connect your myRIO to the PC.

3. Create a Wifi Network from the myRIO. Follow the steps here: http://zone.ni.com/reference/en-XX/help/373925B-0...

4. Install "NI Data Dashboard" on your IPad.

5. Build your own Smart Foosball Table.

6. Ensure each player is connected to a digital I/O line of the myRIO.

7. Download the attached zip file called "myFoosball.zip"

8. Reconfigure the project to use your myRIO's IP address.

9. Create a Data Dashboard that connects to the network shared variables, using the myRIO Wifi IP Address. (this enables it to work as a stand alone application)

10. Compile the FPGA onto the myRIO.

11. Restart the myRIO, open the dashboard & get playing!

Step 8: The Future of MySmartFoosball

With the fundamental concept of counting the players touches in place, I can massively expand the number of statistics the myRIO processes. Successful passes? Intercepted passes? Own goals? Goal assists? Number of saves? I am only limited by my imagination!

I also want to create an easy hardware and software toolkit, to make ANY Foosball table smart!

Step 9: Useful Resources.

Preparing Future Innovators With the NI LabVIEW RIO Architecture

http://www.ni.com/white-paper/52093/en/

Evaluate NI myRIO Now!

http://www.ni.com/myrio/evaluate/

Getting Started with Data Dashboard for LabVIEW

http://www.ni.com/tutorial/13757/en/

Integrating NI Data Dashboard for LabVIEW into your LabVIEW Applications

http://www.ni.com/white-paper/14689/en/

Comments

author
Absolutelyautomation made it!(author)2017-06-27

Really like some "fun projects videos" using NI hardware!

author
tinylittlefella made it!(author)2017-06-27

Kudos to you my friend! Such an simple, innovative, brilliant idea!

author
Leonard+Goldschmidt made it!(author)2017-06-27

Cheers! :)

author
DIY+Hacks+and+How+Tos made it!(author)2017-06-27

That is awesome! By far the coolest foosball setup I have ever seen.

author
Leonard+Goldschmidt made it!(author)2017-06-27

Thank you!! :)