Activity

tpranav2009

Shipped this project!

Hours: 44.98
Cookies: 🍪 811
Multiplier: 18.04 cookies/hr

This code predicts the apogee that the rocket will achieve during its flight, while the flight is happening.

Okay… Where do I even begin to explain this code. It might look like a small file, but this was easily one of the MOST difficult things I’ve ever done. Predicting drag and velocity using a filter was genuinely so hard, and I had to learn what crazy things like “quarternions” were to accurately differentiate tilt. I also had to use some calculus to integrate velocity and acceleration, which was also not fun. But in the end it predicted the apogee pretty well (I think it predicted 599 ft when it actually went 603ft on the second flight). The flight in the video that I showed went 676 ft but because I set the drag coefficient too low and messed up some integrals, it predicted 720 ft. But yeah, I’m really proud of how it came out and you guys can use the same code if you ever want to build a mid power rocket… Anyways, thanks for reading this and I hope that viewing this code helps you realize just how hard it was for me to build this and pack it in a rocket successfully…

OH MY GOD I forgot to mention that the Arduino we used had only 4096 bytes of memory, so optimizing that was ABSOLUTELY INSANE. No Idea how I managed to fit suich a complex algorithm in there but literally EVERY variable, function, and everything I coded had to be extremely specific otherwise the arduino just gave up and corrupted the data (which happened on one of the first tests)!

tpranav2009

OMG I completely forgot about this. SOOOOOOOOOOOO much progress over the past few weeks its insane. After our first rocket launch, here was the data! It was super epic to visualize it and I hope you guys understand it was NOTTT easy to develop! There’s a second test launch I could include but I won’t because the rocket kinda exploded… . I’m done with the project for now but it was a blast to make and for the subsystem to end up working. I had such a great time and learned so much about how Arduino, filters, and math work in coding!

I also attached a video of the rocket launch and the picture of the PCB once it got here.

Attachment
0
tpranav2009

Coded a large portion of the telemetry data, but kind of boring because it’s just Arduino code for now, nothing to see. On another note, I started designing the PCB for the rocket, which will connect to the code! I attached it to this log (I know it’s not directly code, but it’s what I’m designing at the moment and I can demonstrate what the code does once my PCB arrives). Hoping I can attach a video or photo of my rocket being calibrated or at least the system working with the PCB before I ship…

Attachment
0
tpranav2009

I just started working on the frontend portion of the app! It took a while to get the styles right(had to learn how to use tailwind and Vue correctly), but I got it running! We also got the homepage running too! So far it looks good to me, but I would love some feedback on how the UI looks and how I could improve it more. I started working on the backend a little bit but not much work to show as of now, since the data is currently raw and I need to find ways to parse it correctly. I blocked out my name for privacy, and right now it’s just a placeholder. It’s the first time I’ve ever made a real UI, so please tell me if it looks good! I designed it on Figma before and then used the Tailwind docs to make the navbar and the home page.

Attachment
0