Arduino Arcade punshing machine

I am looking for someone who can help me to program what is shown in the video with an LM393 light barrier:

Watch at 11:54

my electronics:
Arduino
LM393 DEBO SEN HALL1: Entwicklerboards - Lichtschranken-Zähler bei reichelt elektronik
TM1637 display

"help me to program" - can you be more specific? Do you want to pay for software development, or post code here and have us help you fix any problems with it?

What is your level of programming experience?

SMH

Yeah that's 20 minutes of my life I'm not giving to you.

Besides the ethics of it.

Perhaps you could tell us exactly where in the video is the thing you want to try.

Or go to engineering school for a few years, figure it out for yourself. It's not rocket science.

a7

So you want to measure the speed your punching-bag is swinging?

yes

The swing speed sensor is explained in the video starting at 12:10.

did it.

unsigned long startTime = 0; // Startzeit der unterbrochenen Zeit
unsigned long interruptedTime = 0; // gemessene unterbrochene Zeit
const unsigned long maxTime = 500; // maximale Zeit, um 9999 Punkte zu erhalten

void setup() {
  Serial.begin(9600); // Serielle Kommunikation mit 9600 Baudrate starten
  pinMode(sensorPin, INPUT); // Sensorpin als Eingang konfigurieren
}

void loop() {
  if (digitalRead(sensorPin) == HIGH) { // Wenn die Lichtschranke unterbrochen wird
    startTime = millis(); // Startzeit festlegen
    while (digitalRead(sensorPin) == HIGH); // Warten, bis die Lichtschranke wiederhergestellt wird
    interruptedTime = millis() - startTime; // unterbrochene Zeit berechnen
    int score = map(interruptedTime, 0, maxTime, 9999, 0); // Punktzahl berechnen
    if (interruptedTime >= maxTime) {
      score = 0; // Setze die Punktzahl auf 0, wenn die Zeit 500ms oder länger ist
    }
    Serial.print("Unterbrochene Zeit (ms): ");
    Serial.print(interruptedTime);
    Serial.print("\t Punkte: ");
    Serial.println(score);
  }
}