Download the code from the link:
http://www.mediafire.com/folder/ceqjl...
Analog servo motors are inexpensive little powerhouses that can be perfect when you're designing something that needs to move. They pack a lot of torque for their size and their shaft position can be pretty accurately controlled.
Parts used:
1x Breadboard
1x Arduino Nano
3x Jumper Wires (male-male)
1x SG90 Servo Motor
Facebook: / lot10games
Instagram: / 1indie_game_dev