{"id":15980656,"url":"https://github.com/macbre/fussball","last_synced_at":"2025-08-10T20:05:21.089Z","repository":{"id":19336061,"uuid":"22574893","full_name":"macbre/fussball","owner":"macbre","description":"IR-based goal system for football tables","archived":false,"fork":false,"pushed_at":"2018-12-02T19:05:00.000Z","size":5642,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-22T19:12:57.030Z","etag":null,"topics":["electronics-projects","football-tables"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/macbre.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-03T12:59:35.000Z","updated_at":"2020-08-23T15:38:26.000Z","dependencies_parsed_at":"2022-08-28T03:21:26.622Z","dependency_job_id":null,"html_url":"https://github.com/macbre/fussball","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/macbre/fussball","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macbre%2Ffussball","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macbre%2Ffussball/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macbre%2Ffussball/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macbre%2Ffussball/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/macbre","download_url":"https://codeload.github.com/macbre/fussball/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macbre%2Ffussball/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269780617,"owners_count":24474682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["electronics-projects","football-tables"],"created_at":"2024-10-08T00:21:36.536Z","updated_at":"2025-08-10T20:05:21.040Z","avatar_url":"https://github.com/macbre.png","language":"C","readme":"fussball\n========\n\nIR-based goal system for football tables\n\n## Electronics\n\n\u003cimg src=\"https://raw.githubusercontent.com/macbre/fussball/master/schematics/main.png\" /\u003e\n\n* 2x LTE4206 (emitters)\n* 2x IR photodiodes + LM324N op-amp (detectors)\n* 2x white LEDs (goal indicators)\n* ATmega16 uC (measures the time of ball passing and sends the data over RS232)\n\n## Software\n\n### Requirements\n\nLinux AVR tools chain:\n\n```\napt-get install eagle avrdude gcc-avr avr-lib gtkterm\n```\n\n### Compiling and building\n\n```\nmake\n```\n\n### Serial communication\n\n\u003e Serial communication runs at the speed of 115200 bps (8N1)\n\n```\ngtkterm --port /dev/ttyS0 --speed 115200 --bits 8 --stopbits 1 --parity none\n ```\n\n#### Messages\n\n* Diagnostic messages (with leading ``#``)\n\n```\n# Hi!\n# Aug  7 2014 11:11:41\n# avr-gcc v1.7.1 (20110216)\n```\n\n* Time measurements\n\n```\n!\u003cdetector ID\u003e:\u003ctime in us\u003e\n!1:39500\n!1:130550\n```\n\n### Client\nTo run it execute `client.py` as super user. The client is listening to port `/dev/ttyS0` and it's just printing messages and playing sounds. Example:\n```sh\n~/PycharmProjects/fussball/client$ python client.py \nTo exit press Ctrl^C...\nConnected to /dev/ttyS0\n# Hi!\nBall got into the goal no.2 with 23.16 speed [km/h].\n\nBall got into the goal no.2 with 40.20 speed [km/h].\n\nBall got into the goal no.1 with 5.38 speed [km/h].\n\nBall got into the goal no.2 with 94.16 speed [km/h].\n\nBall got into the goal no.1 with 4.30 speed [km/h].\n```\n\n### The results\n\n\u003cimg src=\"https://raw.githubusercontent.com/macbre/fussball/master/images/the_table.jpg\" /\u003e\n\nThe football table with detectors mounted and the main board\n\n\u003cimg src=\"https://raw.githubusercontent.com/macbre/fussball/master/images/the_results.jpg\" /\u003e\n\nMeasurements from Python script displayed on the monitor\n\n#### Troubleshooting\n##### Client doesn't work\n```sh\n~/PycharmProjects/fussball/client$ python client.py Traceback (most recent call last):\n  File \"client.py\", line 51, in \u003cmodule\u003e\n    ser = serial.Serial('/dev/ttyS0', 115200)\n  File \"/usr/lib/python2.7/dist-packages/serial/serialutil.py\", line 260, in __init__\n    self.open()\n  File \"/usr/lib/python2.7/dist-packages/serial/serialposix.py\", line 276, in open\n    raise SerialException(\"could not open port %s: %s\" % (self._port, msg))\nserial.serialutil.SerialException: could not open port /dev/ttyS0: [Errno 13] Permission denied: '/dev/ttyS0'\n```\nRun the client as a super user, so you'll have permission to access the port.\n\n#### Client doesn't play sounds\nTo play the sound we use `mplayer` make sure it's installed on your *nix. To install it on debianish systems just run `sudo apt-get install mplayer`.\n\nIf you have `mplayer` installed and there are still no sounds played when scores a goal it might be an issue of how the client was executed. The sound paths are hardcoded for now and are relative paths. If you run the client from `client` directory it will play the sound.\n\n#### I don't like the sounds provided with the client\nJust put any `*.wav` or `*.mp3` files to `client/sounds/` directory.\n\n#### All is working but there are strange mplayer messages\n```sh\n~/PycharmProjects/fussball/client$ python client.py \nTo exit press Ctrl^C...\nConnected to /dev/ttyS0\nBall got into the goal no.2 with 0.16 speed [km/h].\n\nmplayer: could not connect to socket\nmplayer: No such file or directory\nBall got into the goal no.2 with 0.20 speed [km/h].\n\nmplayer: could not connect to socket\nmplayer: No such file or directory\nBall got into the goal no.1 with 5.38 speed [km/h].\n\nmplayer: could not connect to socket\nmplayer: No such file or directory\nBall got into the goal no.2 with 0.16 speed [km/h].\n```\n\nTo get rid of the annoying lirc messages simply place the following in `$HOME/.mplayer/config`:\n```sh\nlirc=no\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacbre%2Ffussball","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmacbre%2Ffussball","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacbre%2Ffussball/lists"}