SmartsquareGmbH / kickpi

:soccer: Android Things App for hosting foosball games on a raspberry pi and saving the results in a blockchain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KickPi

forthebadge

The KickPi is a Android Things application which acts as a server for the mobile clients and handles the matchmaking, the authorization with the kickway and the game storage.

Architecture

The foosball table is connected to a raspberry which communicates with two photocells to react in case of a new goal. The mobile devices are used to create a new game, join an existing one, display the top ten players or the statistics of a specific player. The pairing between the players mobile devices and the raspberry is implemented using the Google Nearby API. The Raspberry authorizes all players who try to join a lobby and persist the games.

Prerequisites

You need a deployment device with android things as operating system since no Android Things emulator does yet exist. πŸ˜” Discover the hardware platforms supported by Android Things.

The application also needs a secret.properties file in the root directory with the following key-values pairs.

KICKWAY_URL=https://192.168.7.127:8080/
LEFT_GOAL_GPIO=BCM23
RIGHT_GOAL_GPIO=BCM24
SCORE_TO_FINISH_GAME=10

Note: The kickchain currently supports only games which ended up with one team has scored ten goals. The I/O ports for the left and right goal can be seen in the next section.

GPIO

Links

πŸ”— Kickchain ↔️ Kickway πŸ“± Android App πŸ“š Android Things Documentation

About

:soccer: Android Things App for hosting foosball games on a raspberry pi and saving the results in a blockchain


Languages

Language:Kotlin 100.0%