Hey everyone. Are you a fan of iron man like me. We all love the crazy inventions made by tony stark including armours, weapons, and AI one of his crazy inventions is a mark 42 in the movie which was run remotely. For now we are creating a replica that runs on Bluetooth based instruction that does small task like lifting hand lifting two hands putting down two hands walking etc but soon we we also launch exact replica that imitates you just like mark 42
Connections:
1) rx of Bluetooth to tx of Bluetooth
2) Tx of Bluetooth to Rx of Bluetooth
3) GND of Bluetooth to GND of Arduino
4) VCC of Bluetooth to 5V of Arduino
5) Take 6 servo motors
6) Signal pin of servo motors to 4, 5, 6, 7, 8, 9
7) GND ofservo motors to GND of Arduino
8) VCC of Servo motors to 5V of Arduino
Code:
#include <Servo.h>
Servo pranav;
Servo akshar;
Servo pranav1;
Servo akshar1;
void setup() {
//put your setup code here, to run once:
pranav.attach(4);
akshar.attach(5);
pranav1.attach(6);
akshar1.attach(7);
}
void loop() {
//put your main code here, to run repeatedly:
if(Serial.available() > 0)
{
char data= Serial.read();
Serial.print(data);
Serial.println(data);
if(data == 'a')
{pranav.write(180);
}
else if(data == 'b')
{pranav.write(0);
}
else if(data=='c')
{akshar.write(180);}
else if(data=='d')
{akshar.write(0);
}
else if(data=='e')
{pranav1.write(90);
akshar1.write(0);
delay(1000);
pranav1.write(45);
delay(1000);
akshar1.write(90);
pranav1.write(0);
delay(1000);
akshar1.write(45);
delay(1000);}
else if(data == 'f')
{pranav.write(180);
akshar.write(180);
}
else if(data == 'g')
{pranav.write(0);
akshar.write(0);
}
}
}
Precautions:
Keep Servo motor connected to digital pin 4 at right arm
Keep Servo motor connected to digital pin 5 at left arm
Keep Servo motor connected to digital pin 6 at right leg
Keep Servo motor connected to digital pin 7 at right leg
How to operate:
Press a to lift the right hand
Press b to put down the right hand
Press c to lift the left hand
Press d to put down the left hand
Press e to walk
Press f to lift both hands
Press g to put down both hands
use the 3d printed model and print it for the body
I have made the model so you attach hands and legs could be attached to servo motor make sure the curve thing at the legs should be front and back I made it for balance
do you want to hire me for your projects
Comments
Please log in or sign up to comment.