Thursday 12 April 2012

Measuring RPM with LabVIEW

There appears to be two ways of measuring the rotational speed with Labview, one of which is easier than the other. First things first let me explain how the rotational speed of a micro-gas turbine can be found as there are some important subtleties between each technique.
The 'old school' method way back when I first started building jet engines was to use the case pressure of the engine and a compressor characteristic performance map. These performance maps are readily available from turbocharger manufacturers and since most micro-gas turbines are built around a turbocharger compressor this would seem to give a good approximation. But, as with all things to do with jet engines, the simplicity of this idea isn't as simple when you need to use it. Looking at the Wren MW54 which uses a turbocharger compressor from Garrett, (Part number 446335-9), which is also is used on the GT2854R turbocharger. Although the compressor may be identical the second stage of the compressor is different. The MW54 uses a series of wedges for the stator blades of the compressor stage, while the turbocharger uses a bladeless spiral volute. The reason for this is to provide greater efficiency over a wide range of rotational speeds required for a pistion engine, but the increased size, area and weight means that this is a no-no for small model aircraft gas turbines. This means that the compressor map wont truly represent the behaviour of the compressor, and in my experience with the vast amount of experimentation and modelling of these small engines I can say that the average turbocharger compressor map is at best within + 6% of the performance of the compressor used in a gas turbine engine. Now 6% does not sound like much, but if your engine has a mechanical limit of 100K RPM then I will let you figure out how big that error is, and the value of 6% is based entirely on the MW54 engine. Other engines showed as much as 10% deviation from the predicted performance shown on the compressor map. Of course if you have modified a turbocharger into a gas turbine then you wont have this problem.



A typical compressor map looks like the chart shown on the right. It is actually a plot of four non-dimensional values and if you're handy with non dimensional analysis then list all the variables for all the fluid properties that a compressor will experience and you will derive four equations. These are known as corrected massflow, corrected rotational speed, a pressure ratio across the compressor and the isentropic efficiency of the compressor. All the work I have previously seen with amateur gas turbines and in the model gas turbine book by Thomas Kamps, (good general book for beginners but I think a lot of the mathematics was lost in translation from German to English), simply states that you can use the values as given, but the corrected speed and massflow need to be modified with the equations below, before you can use them.
So why am I telling you this, well simply knowing the pressure is not enough to find the corresponding rotational speed or massflow. You will need at least three known values before you can locate the operating point on the compressor map. This is a complex problem and requires complicated computational models to solve them, something that has put years of wrinkles on my face from lack of sleep. But you can take several pressure and temperature measurements at various throttle settings and take a best guess at a 'steady state operating line' shown in dashed red in the picture above. This will give you a line which you get approximate RPM, massflow and effiency values from a known pressure ratio.

The second method was to use some some of frequency counting to measure the rotational speed of the engine. This was commonly done by using infra-red LED's and has now moved onto Hall sensors. The infra-red method works by passing an infra-red beam through a hole in the compressor nut, while the Hall sensor works by detecting the pulse generated from a passing magnet embedded within the compressor nut. Both methods generate a signal that can be approximated to a square wave signal, and the frequency is the rotational speed of the engine.

Now Labview has the necessary functions in which to find the frequency of a signal and in fact I came up with at least four methods which worked with any number of simulated signals, with noise over any frequency from around 10Hz to 2500Hz. Seems ok, but that equates to RPM values of 600 to 150000, not good since I want to measure the RPM from zero up to at least 165000. When I came to test the tachometer with both a signal generator and an actual RPM signal from the engine it didn't work, no matter what much I tried. Labview has what they call an oscilloscope function that you can use to analyse the behaviour of a signal while the program is running and this showed I had a valid signal, and in fact using a premade Tachometer function block which opens up into a nice GUI showing a speed over time graph and a waveform of the signal but it would not output anything!

Hmm, I think I  need much, much, much more experience with Labview but time is short and I have already decided to go another route. Rather than measuring the signals frequency I will convert the frequency into a linear analogue voltage signal using a National Instruments LM2917 chip. The data sheet accompanying this chip and a trawl through Google showed that most people use this chip to build car tachometers measuring low RPM's with multiple pulses per rotation. After a coffee and sitting down to read the data sheet properly resulted in the page of maths in the picture on the right and an order for several bags of capacitors and other bits and pieces. The circuit is based on a maximum frequency of 3500Hz which is 210000 RPM, which should help to keep the results in the linear region of the chips output. The output is also designed to be between 0 and 5V, which is line with all my other analogue voltage signals. This may work, it may not, time will tell once I get my new oscilloscope I will be able to investigate this method better and see if it actually works. Stay tuned!


Edit: The NI LM2917 ic can be found on EBay for £1.40 so cheap enough to experiment with.

2 comments:

  1. Thank you very much for this helpful article . I am a thermal mechainical engineer and I choose building MW54 engine as a final project , I used toyota CT20 turbo compressor instead of Garrette ( because Toyota rules in my country )but it has slight difference in geometry , I downloaded the MW54 PDF plans from their site , the question is can I use this compressor with the MW54 plans or ?
    another question :) , can I do make the diffuser stage without the axial vanes ?
    I'll appriciate your help , thanks .

    ReplyDelete
    Replies
    1. Accidentally deleted my first reply? So here it is again.

      Sorry I haven't updated the blog, I actually filmed a load of gas turbine performance and simulation tutorial videos, and some of the dashboard updates and videos of engine tests, but haven't got around to uploading them. Too busy with my never-ending PhD work!!

      Firstly each compressor will have different characteristics and using a different compressor might result in the turbine no longer matching the carachteristics of the compressor and you may encounter problems like surge. One of my first homebuild engines had a badly matched turbine and compressor and would surge badly at anything other than tiny changes in throttle. If the inducer/exducer diameters, blade heights and trim are near enough the same as the Garrett compressor then you may be okay. It would however be an interesting experiment to see what the differences are between your engine and the original MW54 engine.

      I mentioned earlier about the video tutorials, well for my third year project I built a full transient simulation of a Wren 54 engine, and validated it with experimental data for situations such as this. My code would take the compressor map and use the information to perform a simulation to model the steady state behaviour at any throttle setting, or do a full transient simulation of the performance of the engine from any two throttle settings, based on a fuel pump ramp that mimicked a typical engine's ECU. From this you could then compare the difference between different compressors/turbines/freestream speeds etc, and see how the temps/pressures/thrust/rpm etc varied.

      As far as removal of the axial diffuser vanes, well the latest engines have solid wedges that act like complete ducts to the combustor, and they do away with axial vanes (see the latest Wren 70 diffuser here: http://tinyurl.com/wren7-diffuser) Some of the early engines had similar designs, but instead of solid wedges between the passages, there was just a thin, continuous vane like the one shown in this website: http://tinyurl.com/Kamps-style
      If however you are using the traditional wedge shaped diffuser vanes, then you will need those axial vanes to prevent large losses in turbulence as the flow turns through 90 degrees.
      Hope that helps.

      Delete