Arduino Uno Playing Stack Highscore (Uncaliberated) | Arduino Beats Human in Game | Arduino Game Bot
by LifeHacking in Circuits > Arduino
526 Views, 1 Favorites, 0 Comments
Arduino Uno Playing Stack Highscore (Uncaliberated) | Arduino Beats Human in Game | Arduino Game Bot

 | Arduino beats Human in game | Arduino game bot)
Check out this great Arduino game playing bot, this bot can be used to play various games available on play store for this video we can see it is playing one of the popular games called " Stack ".
To make this bot yourself you are going to need the following parts:
1) Arduino Uno: https://goo.gl/tGqwbt
2) SG90 Motor : https://goo.gl/E3XyC1
3) Stylus : https://goo.gl/1ZNL91
4) Wires : https://goo.gl/X4zNye
Making the Bot Is Very Easy
SG-90 servo motor used in this project has 3 pins, namely vcc(+5v) , Ground (-ve) , Data Pin. Just connect the data pin to pin 9 on the arduino uno board and vcc and grond respectively.
Stick a stylus to the motor mount and connect a wire to the stylus which then goes to arduino ground ( Otherwise the stylus won't work). In order to make the circuit more compact and portable I have made a shield which plugs into my Arduino Board.
Upload this code to Arduino board and enjoy the bot playing the game :
int pos = 0; // variable to store the servo position
void setup()
{
myservo.attach(9); // attaches the servo on pin 9 to the servo object
}
void loop()
{
for (pos = 0; pos <= 80; pos += 1)
{ myservo.write(pos);
delay(5);
}
for (pos = 80; pos >= 0; pos -= 1)
{ myservo.write(pos);
delay(5);
} }