telnar1236
Elite member
Looks really neat. I like the testbed setup. Any plans on taking a static pressure reading, or just looking at stagnation pressure?
Looks really neat. I like the testbed setup. Any plans on taking a static pressure reading, or just looking at stagnation pressure?
At some point, I'll need to add an on plane GPS sensor that can be used to calibrate and validate the air speed sensor.
I assume you're using 3 BMP280s? It might be easier to use 1 BMP280 for altitude estimation and 1 MP3V5004DP differential pressure sensor for airspeed estimation
I think you've got some of the names swapped with the pressures. If I'm understanding correctly, your sensors just measure ambient pressure, not a differential across them. This should make it impossible to measure just dynamic pressure, so your sensor on the pitot tube would measure the stagnation pressure of the flow and your second sensor should be measuring a static pressure at its location. More conventional pitot static tubes work by measuring the difference between the static and stagnation pressures, but that requires a measurement of a pressure differential. It seems like all your math is right, as far as I can tell, and just the names are swapped though. You want your static pressure to be measured in as clean of air as possible so if you can stick a second port off the top of pitot tube at 90 degrees or similar, that would probably be the easiest location and the one involving the least calibration. The simplest approach, to me, seems like it would just involve assuming that pressure variation with altitude and time is much smaller than with speed (which should be true if you stay under 400 ft. altitude) and only using the sensor in the pitot tube that measures stagnation pressure. You could just measure static pressure from the sensor each time the system starts up and then use that as a constant value for the rest of the time the system is operating.For tomorrow's testing - I've tweaked the web UI to display (real time 25 Hz) a calculated speed.
View attachment 235347
Basically, I'll be assuming that the test rig will be close to using the equation:
View attachment 235346
Basically, I've simplified it to...
speed = FM * sqrt(dynamic - stagnate) + FB
...with factors that can be changed while testing. FM = multiplier that incorporates the constants in the above equation sqrt(2/rho) and the factor to convert meters/second to mph so I can compare it to my truck's speedometer. The FB factor is to account for the variability between pressure sensors. As can be seen in the Web UI the pressures for my two sensors are different even though they're sitting next to each other.
I should be able to tweak the factors and see the same speed as the truck's speedometer. I can then run at different speeds and see if they need to be tweaked for each speed tested. If they're different then a mapping function will be written.
The point being... I believe... that once done for the test rig, it should be universal no matter what plane it's in as long a true stagnation location can be found in the plane. IOW, if someone else wanted to recreate this, they should not have to go through all this hassle.
I think you've got some of the names swapped with the pressures. If I'm understanding correctly, your sensors just measure ambient pressure, not a differential across them.
I hadn't caught quite how cheap those sensors are. That's definitely a big plus for this approach. I think I have a broken quadcopter with a barometric pressure sensor so I might need to pull it off that and see if I can get usable readings from it. You might be able to make a pitot static tube by putting a coffee stir straw inside of a normal straw with some 3D printed adapters? Not sure how feasible that is.This is entirely possible as I'm coming at it from first principles and a Physicist's standpoint and not from convention by the way it has been done since the Wright Brothers. As a baseline, the sensor most common in electronic usage... Arduino and every cell phone in the World uses absolute sensors, not the differential sensors that used diaphragms from the 1900's. Let's start with the sensors and what I'm conventions I was using.
For altitude, we must have the sensor reading the atmospheric pressure as if the plane is not moving. The sensor has to be in a location that can't have any air ramming into it (causing a pressure increase) or air escaping from it (causing a pressure decrease)... but it must have air transfer to measure the altitude gain/loss. We must have this anyway for altitude determination. I was calling this stagnation as the air is assumed to be stagnate (except what is causes by altitude loss/gain).
Let's take advantage of this for speed as well...
The second sensor only measures the ramming affect of air coming into it. The pressure sensor will see a pressure increase as a function of speed (see data graph above). I was calling this Dynamic pressure as it changes as a result of dynamics on the airplane.
The benefits of this technique are:
The liability of this technique is:
- It require only two cheap sensors ~$1 a piece.
- We get altitude and speed for that price.
- The "pitot" tube equivalent does not need the expensive, double wall machined structure. It might be possible to use a simple straw. It will be cheaper for the builders and easier to integrate into a design and less of a burden when buried into the ground.
Moving forward... what would you call these two pressure sensors based on how they're being used?
- It's non-linear as a function of altitude and speed. The requires the use of a mapping function in a microprocessor. Fortunately, we're are using one and not some metal diaphragm connected to a lever and a gauge needle
If this can be achieved... we have (1) battery monitoring, (2) airplane altitude and (3) airplane speed for less than $6!
As for the conventions your math seems right, just the names seem off. Static pressure is the component of the pressure that the air would have when still, dynamic pressure is the component of the pressure that comes from exclusively the motion of the air, and stagnation, or total, pressure is the sum of the two and represents the pressure the air would have if it was brought to a standstill from moving with no losses.
A common misconception on positioning the static pressure port is that it should be somewhere the air is still, but in reality you want it as close as possible to being in the free stream and to just have the openings at 90 degrees to the flow.
Without knowing where your static pressure sensor was, I'm not 100% sure, but I would guess this was a big contributor to the variability in your readings.
I have a question that is not immediately relevant: Is the reporting altitude going to be absolute or relative, ie. above sea level or above ground level (ASL or AGL)?
The dynamic pressure is the difference between the stagnation pressure (ram pressure) and the static pressure. In a pitot-static tube the static pressure is measured by the side ports and the stagnation pressure by the port in the front. The difference between the two is measured by the sensor. In addition, the static pressure can be used for barometric altitude.The other sensor is just getting the ram (my term) affected pressure. Is not the dynamic pressure the combination of that and the pressure measured in the side ports of a standard pitot tube???
The venturi effect is caused by the flow constriction, not by the air moving across the port. Because stagnation pressure remains constant, an increase in flow speed (and therefore dynamic pressure) results in a drop in static pressure in the venturi effect. Since you're trying to measure the free stream conditions, you want to have the smallest change possible in the flow speed when measuring the dynamic pressure or you will end up with something other than the dynamic pressure. There is a small drop in pressure caused by the air accelerating around the sides of the pitot tube on real ones and you sometimes see geometry meant to avoid that, but with how thin the walls of a straw are, that shouldn't be an issue for you. Unless you mount it on top of the wing you shouldn't see too large a negative change in static pressure. I'm not suggesting mounting a second straw at 90 degrees to the first since that would have its own problems, but plugging the end of a straw parallel to the first and poking some holes in the walls would definitely work and let it get clean air. A number of real aircraft also use static pressure ports on the side of the fuselage, but that runs into issues with the boundary layer and sideslip and typically requires additional calibration.The side tube pressure measurement should show partial vacuum. https://en.wikipedia.org/wiki/Venturi_effect
This component doesn't exist. I'm trying to avoid having to get this with a third sensor. I recognize that convention is against my premise, but I'm experimenting anyway (and having fun with the DIY lab rigs )
By the same venturi effect (air blowing across a port) would this not cause a partial vacuum and thus show an inflated altitude AND affect the speed calculation?
The venturi effect is caused by the flow constriction, not by the air moving across the port.
The first sentence of the Wikipedia article states "The Venturi effect is the reduction in fluid pressure that results when a fluid flows through a constricted section (or choke) of a pipe."Sorry, but that is not correct. Look at any venturi. The air flow crosses the port. I have created impromptu vacuum pumps using this technique. A pitot tube has the same issue but takes account of it in the Mathematics.
View attachment 235398
- From - https://en.wikipedia.org/wiki/Venturi_effect
- Anybody that has had a waterbed has used one. And yes, it works for compressible flow like air - https://waterbedbargains.com/super-...wH9Lj9qNzlhrV2qaJoLNQWHTKzqmh-O4aApsVEALw_wcB
- View attachment 235400