Cole Purtzer
Published © GPL3+

Delta Thrust Vector Control Rocket Guidance System

The will gimbal a rocket motor back and forth to keep you rocket upright.

AdvancedWork in progress20,501
Delta Thrust Vector Control Rocket Guidance System

Things used in this project

Story

Read more

Custom parts and enclosures

Outer Gimbal

Inner Gimbal

Motor Tube

Schematics

TVC

Code

Code

C/C++
//Xenon Static Fire 1 (No Feedback)//

#include <Servo.h>

Servo myservo;  // create servo object to control a servo
// twelve servo objects can be created on most boards

int pos = 0;    // variable to store the servo position

void setup() {
  myservo.attach(2);  // attaches the servo on pin 9 to the servo object
 
}

void loop() {
  for (pos = 11; pos <= 87.5; pos += 1.75) { // goes from 0 degrees to 180 degrees
    // in steps of 1 degree
    myservo.write(pos);              // tell servo to go to position in variable 'pos'
    delay(15);                       // waits 15ms for the servo to reach the position
  }
  for (pos = 87.5; pos >= 11; pos -= 1) { // goes from 180 degrees to 0 degrees
    myservo.write(pos);              // tell servo to go to position in variable 'pos'
    delay(15);                       // waits 15ms for the servo to reach the position
  }
}

Credits

Cole Purtzer

Cole Purtzer

16 projects • 211 followers
Hey I am Cole, the lead engineer at Delta Space Systems! Youtube Channel: https://www.youtube.com/channel/UC7Nhgj_PVCtroPXHMhdku-g

Comments