GithubHelp home page GithubHelp logo

gzuliani / sps-hc20 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 4.13 MB

Software that communicates with a SPS-HC20 scoreboard through a custom-made, Arduino-based interface.

Python 99.25% Inno Setup 0.75%
scoreboard arduino serial-port

sps-hc20's Introduction

SPS HC20 Suite

Introduction

The SPS HC20 Suite contains two programs that control the SPS HC20 scoreboard by means of the custom-made, Arduino-based interface described in "Controllo di un tabellone segnapunti con Arduino" (italian only).

  • consolle.py emulates the actual consolle that controls the scoreboard;
  • report.py keeps track of an handball match events to help the technical delegates (score and time keepers) to compile the official match report sheet.

Prerequisites

Arduino

Arduino is natively supported by Windows 10 and almost all modern Linux distributions (those with a 2.6 or more recent kernel, see "Install the Arduino Software (IDE) on Linux" for details). The drivers for Windows 7 and previous versions can be downloaded from the official page.

Python

The code uses the pyserial module.

Warning: if you intend to compile the Python code with py2exe and run it on Windows XP then the 2.7 release of pyserial must be used, see for example "On Windws[sic] XP not support CancelIO".

Issues

The scoreboard's siren may emit a very short buzz at program startup. The problem is attributable to the Arduino board's autoreset feature that causes the firmware to restart everytime the serial port is opened (see for example "Arduino reset after serial connection opened"):

Iep, Linux feature. I was solving this years ago, but no avail. After opening, Linux flip flop with RTS even if you are not using rts/cts flow control, it's hardcoded,

Other sources confirm this is the case, see for example "DTR and RTS control lines toggle unintentionally when opening port". Several platform-dependent solutions have been proposed, see for example "Disable DTR on ttyUSB0" for Linux-like environments, "Disable DTR in pyserial from code" for Windows. A simple work-around is to delay the scoreboard connection until the program is up and running:

  1. switch the computer on;
  2. connect the Arduino board to the computer;
  3. start the desired program;
  4. connect the scoreboard to the Arduino board.

A more reliable solution would be disabling the autoreset feature (see "DisablingAutoResetOnSerialConnection" for details), but it has its drawbacks: it prevents any future firmware upload.

Credits

Icons made by Freepik from www.flaticon.com.

sps-hc20's People

Contributors

gzuliani avatar

Watchers

James Cloos avatar  avatar

Forkers

allecristo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.