Introduction: ARDUINO NINJA WARRIOR !!!
So many people have done such atrocious things to Arduino !
Today, Arduino will take revenge !
This arduino robot will fight off all invaders, with a SWORD !
YAAAAAAA!!!!!!!!!!
Step 1: Parts Required:
Calm down! You will not require a steel sword with a shining blade and a scabbard to make this project! Killing people is banned in most countries, if not all !
You will need the following mundane items to make this project:
1) An Arduino UNO.
2) An analogue joystick(cheap but awesome stuff).
3) Two servos. I used a 9g servo and a 3.7g servo.
4) Sunboard sheet/ Cardboard sheet/ Depron sheet(Whatever you prefer).
5) A hot glue gun.
6) A mini breadboard, or any sort of base.
7) Jumper wires.
8) A power bank.
Step 2: Assembly:
Connect the following Arduino pins to the analog joystick;
5v- vcc, gnd-gnd, A0- VRX, A1- VRY.
Connect the control wire of the servos to D9 and D10 on the Arduino and the vcc and gnd terminals to 5v/3.3v and gnd respectively.
Note: If you are using larger servos, please power them from a separate source, as the arduino will be insufficient.
Step 3: Building the Robot:
Fix the larger servo to the base with hot glue.
Then, mount the smaller servo on its arm.
Step 4: Making the Sword:
Make the sword with the material of your choice. Then attach it to the arm of the smaller servo of the robot.
(I am really bad at art and craft, so my sword looked more like a stick.)
Step 5: Code;
#include <Servo.h>
Servo myservo;
Servo myservo2;
int x=0;
int y=1;
int pos1=0;
int pos2=0;
int a; int b;
int c;
int d;
void setup() {
myservo.attach(9);
myservo2.attach(10);
pinMode(x,INPUT);
pinMode(y,INPUT);
}
void loop() {
a=analogRead(x);
b=map(a,0,1023,0,180);
myservo.write(b);
delay(15);
c=analogRead(y);
d=map(c,0,1023,0,180);
myservo2.write(d);
delay(15);
}
Step 6: YOUR NINJA IS READY!!!!!!!
Please vote for this instructable for the Make It Move contest, so that I can make more of these awesome projects!
Thank you for reading!