Smart Football Goalkeeper – Assembly Video & Arduino Code

Code

// C++ Arduino Code (Copy Below)

#include <Servo.h>

Servo keeper;  // Create servo object

void setup() {

  keeper.attach(9);  // Servo signal pin connected to D9

}

void loop() {

  // Move quickly to 0 degrees

  keeper.writeMicroseconds(66);   // 0° position

  delay(250);

  // Move quickly to 180 degrees

  keeper.writeMicroseconds(2500);  // 180° position

  delay(500);

  // Move back to 0 degrees

  keeper.writeMicroseconds(66);

  delay(250);
}

What You Need for This Project

To build this Automatic Goalkeeper, we used the following parts from the Plzpapa Basic Robotic Kit:

  • Arduino Uno Board
  • Servo Motor (SG90)
  • Wooden Goalkeeper Structure
  • Jumper Wires
  • (No soldering required!)

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top