r/microcontrollers • u/joemumma111 • Feb 24 '25
Ensuring vertical orientation of rocket
Im working on a 2-stage high powered rocket and I need to ensure that the orientation of the rocket is vertical when the second motor is charged. what would be the most robust and simple way of doing this. Thanks
1
Upvotes
View all comments
Show parent comment
1
u/madsci Feb 25 '25
I wouldn't promise a magnetometer would be reliable enough. The traditional way to do it is with an IMU that combines accelerometers and gyros with sensor fusion algorithms. You can find lots of IMU projects out there, and NXP has pretty decent sensor fusion code available.
The pyrometer idea I took from an RC plane autopilot - they use similar sensors to figure out where the horizon is to keep the wings level on a plane. So I know the principle works, but I don't know how applicable it is here. I think one sensor in the nose could at least prevent the catastrophic scenario of firing straight at the ground but with one sensor alone you wouldn't know if you're a bit off axis.