Hackster is hosting Hackster Holidays, Ep. 7: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Friday!Stream Hackster Holidays, Ep. 7 on Friday!
Cole Purtzer
Published © GPL3+

Xenon | Thrust Vector Controlled Rocket!!!

The Xenon controls itself to not by fins but by moving the motor at the bottom back and forth!

AdvancedWork in progress15,145
Xenon | Thrust Vector Controlled Rocket!!!

Things used in this project

Story

Read more

Schematics

Circuit

Code

Xenon_Static_Fire_Test_1_Code_.ino

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
16 projects • 212 followers
Hey I am Cole, the lead engineer at Delta Space Systems! Youtube Channel: https://www.youtube.com/channel/UC7Nhgj_PVCtroPXHMhdku-g

Comments