Walter (
@diyaerospace),
I am coming in late here, but I really like your project. There is a lot to learn to get accurate data sampling from barometers and accelerometers on a rocket, but it sounds like you are on the right path.
Have you figured out what your braking logic will look like once you have good data to meet your "mission objectives"? Simplifying that logic might help you substantially simplify your data sampling needs.
For example, if you are using the brakes to hit a specific altitude (e.g., TARC or FAR 51025) then the barometer data might be all you need. You can get reliable altitude and speed from a pressure sensor (barometer) to build braking logic around. An accelerometer will give you a more precise and more responsive velocity, but I'm not sure if that is really required. A gyro might tell you if you are upside down, but that requires a massive level of computation and likely isn't needed if the objective is just to hit an altitude goal.
I've done over 100 launches with our custom flight computer capturing baro data, accelerometer data, gyro data, etc. The barometer I use samples at about 40 hz and on the way up, I report speed every 500ms as the average altitude differential of the last 20 samples. On the way down, I average over a four second period, since barometers can be much more noisy. That said, with the raw sample data you can choose any filter or average method to fit your needs.
If I use a flight I did last Saturday as an example... The flight went to 5665 feet, but if I was trying to hit 5000 feet using air brakes then I would probably set up logic to kick in around 4000 or 4500 feet (depending on how strong those brakes were). At 4500 feet, 11 seconds into the flight, I can see I am going 303fps and I've decelerated from 364fps a second earlier. So, I am clearly going to overshoot 5000 feet (apply brakes). On a smaller faster rocket you will need to sample your speed real-time with some type of trailing filter, but the concept is the same. I personally would get the setup working with just the baro and then move to integrate the accelerometer as a more precise next step (unless I'm missing something).
Attached is raw data from my flight on Saturday. Sometimes it helps just to have good raw data when you are trying to model or work out your own data sampling needs.
Mike