Skip to content

Collection of code for running things on the foosball table

Notifications You must be signed in to change notification settings

Neuromorphs18/foosball2018

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repo for storing code related to the foosball table at Telluride 2018. AKA the best foosball table ever!

Table API

Requirements

You must install pyserial to communicate with the Foosball table:

pip install pyserial

This package is known to interfere with the package serial. Uninstall the latter to avoid issues:

pip uninstall serial

Importing the API from another directory

To import the API from another directory, use the following code:

import sys
sys.path.insert(0, 'relative/path/to/table_api')
from sensiball import Sensiball

Examples

table_api/examples provides several examples showing how to use the python API to communicate with the Foosball table.

Flashing the Arduinos

  • To flash the Arduino Nanos, open table_api/slave/slave.ino and edit the lines:
#define SLAVE_ADDRESS 14 // 8/10/12/14 for Goalie/Defender/Midfield/Forward
#define SLAVE_MODE    1  // 0/1 for Translation/Rotation
  • To flash the Arduino Mega, open table_api/master/master.ino. Master can be flashed without editing.

About

Collection of code for running things on the foosball table

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published