Skip to content

Latest commit

ย 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“ PingPong SegnaPunti / Scoreboard

Un sistema di segnapunti digitale DIY (Do It Yourself / Fai da te) pensato per le partite di PingPong, che unisce hardware โš™๏ธ e software ๐Ÿ’ป per offrire un tabellone interattivo con pulsanti ๐Ÿ”˜, display ๐Ÿ“บ e interfaccia web ๐ŸŒ.
A DIY digital scoreboard system for PingPong games, combining hardware โš™๏ธ and software ๐Ÿ’ป to provide an interactive scoreboard with buttons ๐Ÿ”˜, display ๐Ÿ“บ, and web interface ๐ŸŒ.


๐ŸŒ Languages

  • ๐Ÿ‡ฎ๐Ÿ‡น it
  • ๐Ÿ‡ฌ๐Ÿ‡ง en

๐Ÿ‡ฎ๐Ÿ‡น Descrizione in Italiano

โœจ Funzionalitร  principali

  • ๐ŸŽฎ Aggiornamento del punteggio con pulsanti fisici collegati ad Arduino UNO R4 WiFi.
  • ๐Ÿ“บ Visualizzazione punteggio su display Nextion e matrice LED.
  • ๐ŸŽถ Effetti sonori (temi noti).
  • ๐ŸŒ Interfaccia web responsive con animazioni CSS per mostrare i punti live.
  • ๐Ÿ”„ Sistema server-client con Flask e aggiornamenti in tempo reale via Server-Sent Events (SSE).
  • ๐Ÿ“ก Configurazione attuale: lโ€™Arduino si connette ad una rete WiFi che deve essere la stessa usata dal dispositivo che ospita il server web.

๐Ÿ› ๏ธ Tecnologie utilizzate

๐Ÿ”Œ Hardware:

  • ๐Ÿ–ฅ๏ธ Arduino UNO R4 WiFi
  • ๐Ÿ“บ Display Nextion
  • ๐Ÿ”ฒ Arduino LED Matrix
  • ๐Ÿ”˜ Pulsanti fisici
  • ๐Ÿ”Š Buzzer

๐Ÿ’ป Software:

  • ๐Ÿ“ C++ (Arduino)
  • ๐Ÿ Python (Flask)
  • ๐ŸŒ HTML + ๐ŸŽจ CSS + โšก JavaScript
  • ๐ŸŽฌ Animazioni CSS
  • ๐Ÿ”„ Server-Sent Events (SSE)

๐Ÿ“‚ File e Layout:

  • ๐Ÿ—‚๏ธ Progetti Nextion (.HMI, .tft)
  • ๐Ÿ’พ Sketch Arduino (.ino)
  • ๐Ÿงฉ Template Flask (index.html)
  • ๐ŸŽจ Fogli di stile (scoreboard.css, style.css)

โ–ถ๏ธ Come usare

  1. โš™๏ธ Configura lโ€™Arduino

    • Inserisci le credenziali WiFi nello sketch .ino.
    • Carica il codice sullโ€™Arduino UNO R4 WiFi.
    • Collega pulsanti, matrice LED e display Nextion.
  2. ๐Ÿ’ป Avvia il server web

    • Assicurati che il PC sia connesso alla stessa rete WiFi dellโ€™Arduino.

    • Vai in arduinoUNO-R4WIFI-Nextion/ e avvia il server Flask:

      git clone [https://github.com/your-username/CityBeach-Ancona.git](https://github.com/Zinale/PingPong-Scoreboard.git)
      cd PingPong-Scoreboard/arduinoUNO-R4WIFI-Nextion
      
      python -m venv venv
      source venv/bin/activate  # Windows: venv\Scripts\activate
      
      pip install -r requirements.txt
      
      python server_web.py
    • ๐ŸŒ Il server sarร  disponibile su http://<IP-PC>:5000.

  3. ๐ŸŒ Accedi allโ€™interfaccia web

    • Apri un browser e visita lโ€™indirizzo.
    • Vedrai il tabellone aggiornato in tempo reale.
  4. ๐Ÿ“ Gioca!

    • Usa i pulsanti per incrementare/decrementare i punti.
    • Punteggio sincronizzato su display e interfaccia web.

๐Ÿ‡ฌ๐Ÿ‡ง English Description

โœจ Main Features

  • ๐ŸŽฎ Score updates via physical buttons connected to Arduino UNO R4 WiFi.
  • ๐Ÿ“บ Score display on Nextion display and LED matrix.
  • ๐ŸŽถ Fun sound effects (well-known themes).
  • ๐ŸŒ Responsive web interface with smooth CSS animations.
  • ๐Ÿ”„ Client-server system with Flask, real-time updates via Server-Sent Events (SSE).
  • ๐Ÿ“ก Current configuration: Arduino connects to the same WiFi network used by the server host.

๐Ÿ› ๏ธ Technologies Used

๐Ÿ”Œ Hardware:

  • ๐Ÿ–ฅ๏ธ Arduino UNO R4 WiFi
  • ๐Ÿ“บ Nextion Display
  • ๐Ÿ”ฒ Arduino LED Matrix
  • ๐Ÿ”˜ Physical buttons
  • ๐Ÿ”Š Buzzers

๐Ÿ’ป Software:

  • ๐Ÿ“ C++ (Arduino)
  • ๐Ÿ Python (Flask)
  • ๐ŸŒ HTML + ๐ŸŽจ CSS + โšก JavaScript
  • ๐ŸŽฌ CSS Animations
  • ๐Ÿ”„ Server-Sent Events (SSE)

๐Ÿ“‚ Files & Layouts:

  • ๐Ÿ—‚๏ธ Nextion project files (.HMI, .tft)
  • ๐Ÿ’พ Arduino sketches (.ino)
  • ๐Ÿงฉ Flask templates (index.html)
  • ๐ŸŽจ Stylesheets (scoreboard.css, style.css)

โ–ถ๏ธ How to Use

  1. โš™๏ธ Setup the Arduino

    • Enter WiFi credentials inside the .ino sketch.
    • Upload the code to the Arduino UNO R4 WiFi.
    • Connect buttons, LED matrix, and Nextion display.
  2. ๐Ÿ’ป Start the Web Server

    • Ensure your computer is connected to the same WiFi network as the Arduino.

    • Navigate to arduinoUNO-R4WIFI-Nextion/ and run the Flask server:

      git clone [https://github.com/your-username/CityBeach-Ancona.git](https://github.com/Zinale/PingPong-Scoreboard.git)
      cd PingPong-Scoreboard/arduinoUNO-R4WIFI-Nextion
      
      python -m venv venv
      source venv/bin/activate  # Windows: venv\Scripts\activate
      
      pip install -r requirements.txt
      
      python server_web.py
    • ๐ŸŒ The server will be available at http://<PC-IP>:5000.

  3. ๐ŸŒ Access the Web Interface

    • Open a browser and visit the server address.
    • The live scoreboard will appear.
  4. ๐Ÿ“ Play!

    • Use the Arduino buttons to update scores.
    • Scores sync across Nextion display and web app.

๐Ÿ“œ License

Distributed under the MIT license. See the LICENSE file for more details.

๐Ÿ“ฌ Contact

About

๐Ÿ“ Play and have Fun! ๐Ÿ“

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages