tomj2222
Posts: 2
Joined: Tue Mar 19, 2013 1:39 pm

Using the Pi to replicate the Budweiser Hockey Goal Light

Tue Mar 19, 2013 1:44 pm

Hello

I am an avid hockey fan, and have always wanted a web connected device that monitored nhl game feeds real time, and would set off an led notification. In Canada, they have just started releasing a Budweiser goal light that connects to your phone and a goal light goes off every time your favorite team scores a goal.

Now to my question.... I just received my Pi in the mail and was wondering if anyone had an idea as to where to start? I have basic programming skills, but have never played with a Pi

Thanks in advance to anyone with info!

PhillyNJ
Posts: 112
Joined: Sat Dec 29, 2012 4:07 am

Re: Using the Pi to replicate the Budweiser Hockey Goal Ligh

Thu Mar 21, 2013 1:28 am

Welcome to the world of Pi. Below is a link to a thread where a similar question was asked. If you are able to get game feeds you can actually be able to light a light when an event occurs. Pretty cool project if you ask me.

http://www.raspberrypi.org/phpBB3/viewt ... 26&t=37487

My suggestions:

Use python running in the background which checks the feed every minute. If a goal is detected, set a GPIO pin 'HIGH' that energizes a relay connected to a 'Budweiser' light. If you do this project, definitely post it when you're done.

Good Luck

tomj2222
Posts: 2
Joined: Tue Mar 19, 2013 1:39 pm

Re: Using the Pi to replicate the Budweiser Hockey Goal Ligh

Thu Mar 21, 2013 1:24 pm

PhillyNJ,

Thanks for the response! I actually bought an UNO for the light/notification control, but would it be easier to just use the pi's GPIO pin? Also, I was hoping that it would be as close to real time notification, so can python do that? (I've never tried python). As for the notification LED's, I wanted to use the 5050 RGB led strips. I've used these twice before and they've been nothing but a joy.

Another possible addition to this project could be the implementation of Fantasy sports. For example, someone would use a web interface to input all the players on their fantasy roster, so that when the feed detects points gained it would flash specific colors (goal is blue, assist is red).

Again just a thought, but for now I'm just trying to take baby steps. I'm an EE student right now and am looking for a project to spend some downtime on. When completed I'll post a tutorial on instructables.


Thanks!

PhillyNJ
Posts: 112
Joined: Sat Dec 29, 2012 4:07 am

Re: Using the Pi to replicate the Budweiser Hockey Goal Ligh

Thu Mar 21, 2013 1:44 pm

Yes its possible. Python is a powerful language. There are modules/libraries that can parse XML and RSS feeds. I would start like so:

learn how to write a Python program that will consume the RSS feed and Save the score. If the score changes, then send a GPIO pin high to a simple LED with a pull down resistor. When you get that working, learn how to uses a relay to switch power on/off to a 12v or higher circuit.

There are my examples on the web. Do some searching on:

how to use Python and GPIO on the Pi
how to use a simple relay with the Raspberry Pi (or UNO for that matter, the concept is the same)

Good luck

Return to “General programming discussion”