Arduino Powered Foosball Table

wpid-foosball005-2013-04-15-23-11.jpg  + wpid-foosball008-2013-04-15-23-11.jpg  = Screen Shot 2013-04-15 at 11.57.54 PM

Why Attach an Arduino to a Foosball Table?

– Because the foosball table is clear on the opposite side of the building.

– Because we can!

What are those parts?

– The gold disk is a piezo electric transducer, commonly known as an electric guitar pickup. It converts vibrations into electricity.

– The red circuit board is an Arduino with Ethernet. It uses the standard Arduino library to handle dhcp requests.

– The circuit board is soldered after the knock sensor tutorial on

– They grey cables are Power Over Ethernet Injectors (POE). They are not required if your foosball table is in reach of a power outlet.

Where can I buy this stuff?

Arduino –

POE Cable –

Piezo Transducer –

1 Mega Ohm Resistor – Radio Shack

Circuit board –

Headers –

Wire – Your local garbage can

How do I code it?

See the code on . You will need an account on to store your sensor readings. Replace the “Feed ID” with your feed Id, and the “Data-stream” with your data stream name.

You will need to generate a new Private API Key and replace the API key in the code with your own API key. documents how to get code from an arduino to their servers here: and here:

The webpage uses jquery and the cosm javascript library. You can find examples of how to use it in the “Sandbox” directory in github

The Cosm javascript library is documented here: Cosm developers are very active on

Once you have the webpage how you want it. You will need to create an ubuntu virtual machine and install apache to host the website. It does not need to be on the same network as your sensor.

I highly recommend setting up your ubuntu web server using vagrant.

How did you make the webpage so pretty?

The majority of the webpage was coded by a friend who does web development professionally.

The github and “i” icons are actually fonts, not images.

The green button is made entirely with css3 and gradients.

The graph is made with cosm’s graph builder

Only the flat piezo elements work, speakers pulled from computer cases absolutely do not work.

What If I want to make my own awesome foosball table, but I have questions?

Leave a comment below

Ask your question on stack overflow and tag “cosm”

Go to the Arduino Forums

Any problems you discovered on the way?

I was going to use a raspberry Pi, but they don’t have analog sensors. Lady Ada has a great article of how to work around this:

Arduino Ethernet has 5 analog pins, but pins 4 and 5 are used by the ethernet shield. Pins 0 and 1 are also shared and shouldn’t be used.

What if I want to see pictures and a video of the table?

Here you are!







available unavailable



About spuder
spuder is a "super computer" support engineer by day, and tinkerer / hobbyist by night.

6 Responses to Arduino Powered Foosball Table

  1. Pingback: Hackaday Links: Sunday, April 21st, 2013

  2. Pingback: Hackaday Links: Sunday, April 21st, 2013 - RaspberryPiBoards

  3. Pingback: rndm(mod) » Hackaday Links: Sunday, April 21st, 2013

  4. Pingback: Hackaday Links: Sunday, April 21st, 2013 | Blog of MPRosa

  5. Pingback: Hackaday Links: Sunday, April 21st, 2013 | Daily IT News on IT BlogIT Blog

  6. Pingback: Hackaday Links: Sunday, April 21st, 2013 | Make, Electronics projects, electronic Circuits, DIY projects, Microcontroller Projects -

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

%d bloggers like this: