GAME VS. ARDUINO ROBOT

The whole idea of this is to make an arduino contraption that can beat the phone game stack.

Supplies:

  • An Arduino Uno
  • A Pvc Pipe
  • A SG90 Servo Motor
  • A Wood Block
  • A Stylus
  • A smart phone

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Watch the Video

Watch the video.

Step 2: Connect the Pvc Pipe to the Servo Motor

Glue the servo motor to one end of a pvc pipe, mine is 2 3/4 inch fit yours accordingly.

Step 3: Connect the Pvc Pipe to the Wood Block

Glue one end of the pvc pipe on the edge of the wood block mine is about 1/2 a inch high.

Step 4: Connect the Stylus to the Servo

Attach the stylus to the servo, my sylus is 4 inches.

Step 5: Connect the Servo to the Arduino

Connect the wires to the arduino uno accordingly.

  1. The yellow wire of the servo goes to digital pin 7 on the arduino.
  2. The red wire goes to 5volt of the arduino.
  3. And finally, the brown wire goes to ground of arduino.

Step 6: Complete Last Preparations

Tape the phone and wood block on the table, download stack on the phone, tape the phone on the table next to the arduino contraption, and last connect the arduino to the computer.

Step 7: Get the Code Ready

Upload this sketch on your arduino IDE.

/* Sweep

by BARRAGAN This example code is in the public domain.

modified 7/19/2019

http://www.arduino.cc/en/Tutorial/Sweep */

#include

Servo myservo;

void setup() {

myservo.attach(7);

myservo.write(125);

delay(200);

myservo.write(90);

delay(800);

myservo.write(120); }

void loop() {

delay(100);

myservo.write(90);

delay(700);

myservo.write(125);

delay(100);

myservo.write(90);

delay(700);

myservo.write(125);

// Change all servo and delay values if needed

}

Step 8: Enjoy!

ENJOY YOUR VERY OWN ARDUINO GAME BEATER!

Be the First to Share

    Recommendations

    • CNC Contest

      CNC Contest
    • Make it Move

      Make it Move
    • Teacher Contest

      Teacher Contest

    Discussions