illing2005 / raspberry-foosball

Raspberry Pi + React Native + Foosball

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Raspberry Pi + React Native + Foosball

Features:

  • Automatic goal detection and score keeping
  • Controlled LED Strip as foosball light --> blinks on goals

Setup

  • Clone this repository

      git clone https://github.com/illing2005/raspberry-foosball
    

Pusher.com

Raspberry Pi:

  • Copy the raspberry-app folder to your raspberry pi

  • Rename config.example.py to config.py, add your pusher.com credentials, and adjust GPIO pin nubers.

  • Install dependencies:

      pip install -r requirements.txt
    
  • Run python main.py

React Native:

Hardware:

Goal detection:

For the goal detection, you need two infrared light barriers (see sketch). The red LED is for testing purposes only and can be removed.

Needed parts:

scheme

LED Strip:

Needed parts:

Below you find a sketch how to wire thinks up. If you need more help follow this great tutorial (http://popoklopsi.github.io/RaspberryPi-LedStrip/#!/)

led_scheme

About

Raspberry Pi + React Native + Foosball


Languages

Language:JavaScript 83.5%Language:Python 6.7%Language:Ruby 4.4%Language:Objective-C 3.9%Language:Java 1.6%