Close

Shoulder launcher part 1

A project log for Iron Man Armor Mark 42

Using tech to make Iron man's armor.

walkerdevWalkerDev 04/28/2017 at 00:310 Comments

Alright. So now that the rocket launcher is almost done, I am going to go on a few topics. The main topic is the shoulder launcher. The hardest part of this will not be the price, or the placement of servos. In fact, even the code is easier than this. What will be hard is getting the rockets to do what CGI did. In reality, making what the suit did is insane, due to what comes out of small space. Here is my plan.

In the clip, two panels from the left and right go up and the shoulder missile home goes up in a swinging motion.

Here is the code:

String readString;
#include <Servo.h> 
Servo leftpanel, rightpanel, hookleft, hookright, cliphookupl, cliphookupr;  

void setup() {
  Serial.begin(9600);

  //myservoa.writeMicroseconds(1500); //will do experimentation

  leftpanel.attach(1);  
  rightpanel.attach(2);  
  hookleft.attach(3);  
  hookright.attach(4);                                                   
  cliphookupl.attach(5);   
  cliphookupr.attach(6);  
  Serial.println("multi-servo-delimit-test-dual-input-11-22-12"); 
void loop() {


  if (Serial.available())  {
    char c = Serial.read(); 
    if (c == ',') {
      if (readString.length() >1) {
        Serial.println(readString); 

        int n = readString.toInt(); 

       
        {
          Serial.print("writing Microseconds: ");
          Serial.println(n);
          if(readString.indexOf('1') >0) leftpanel.writeMicroseconds(n);
          if(readString.indexOf('2') >130) rightpanel.writeMicroseconds(n);
          if(readString.indexOf('3') >0) hookleft.writeMicroseconds(n);
          if(readString.indexOf('4') >0) hookright.writeMicroseconds(n);        
          if(readString.indexOf('5') >0) cliphookupl.writeMicroseconds(n); 
          if(readString.indexOf('6') >0) cliphookupr.writeMicroseconds(n);

        }
        else
        {   
          Serial.print("writing Angle: ");
          Serial.println(n);
          if(readString.indexOf('1') >130) leftpanel.write(n);
          if(readString.indexOf('2') >0) rihtpanel.write(n);
          if(readString.indexOf('3') >90) hookleft.write(n);
          if(readString.indexOf('4') >90) hookriht.write(n);         
          if(readString.indexOf('5') >90) cliphookupl.write(n);                 
          if(readString.indexOf('6') >90) cliphookupr.write(n);
        }
         readString=""; 
      }
    }  
    else {     
      readString += c; 
    }
  }
Now obviously this a lot of work to go through before this can be put into the arduino mini, but here's a start. If anyone wants to edit and fix it, let me know.

Here is a picture of the missile rocket housing and rocket.

files easily found here: https://grabcad.com/library/iron-man-shoulder-missile

Now, I will start in this buildup.

Discussions