Compressed-Air Engine
Our team's engine for Rowan's Thermofluid Sciences class, built to run on 80 psi shop air. Its valve is thrown by a slotted rod instead of a cam, so the ports snap open and stay open: dwell, before we knew the word for it.
The engine in 3D
Loading the model…
- AluminumNearly everything: plate, mounts, brackets, flywheel, discs, rods, both cylinder bodies
- SteelKeyed 10 mm shafts, pins, the spool’s rod, the piston rod, bearings
- Push-to-connect fittings⅛ NPT to ¼ in tube (McMaster 5779K108), blue release collars
- ¼ in tubingShop air in, and the loops between the cylinders. Not in the CAD: drawn from the build
Nearly everything is aluminum. The empty holes are for screws the model leaves out (they're drawn untapped), and the power cylinder came without drawings, so it's modeled from the outside. The tubing isn't in the CAD: it's drawn here from the build. The viewer sets the phase adjuster to 131°, where the engine ran best; the STEP is the assembly as the team saved it.
A valve that snaps
Drive a valve's spool with an ordinary crank and rod and it moves in a sine wave: the ports crack open slowly and are only wide open for a moment. This rod drives the spool's pin through a slot 0.52 in long. For about a quarter turn the crank moves and the spool doesn't, as the slot slides past the pin; then the end of the slot catches it and throws the spool across. Each port opens in a few degrees and stays open for half a turn, so the power piston gets more air, sooner, every stroke. That's dwell, the job a cam usually does. Probably worse than a cam, but definitely cheaper.
- Shop air in
- Exhausting
- Shut in
Up is away from the crank: the spool toward the valve's far end, the piston toward its cap. Drag across the strip to turn the engine by hand.
Two degrees at a time
The power crank has no arm. Its pin rides in an index disc that turns freely on the shaft until it's bolted to a keyed disc that turns with it, so where the bolts go sets where the pin is, and with it the phase angle: when, in the valve's cycle, the power piston turns around.
The trick is in the two rings of holes. The outer ring has ten bolt holes 34° apart; the inner ring has nine pin holes 36° apart. Bolt the disc one hole further round and it turns 34°; move the pin one hole back and it gives back 36°. The pin ends up just 2° from where it was: a vernier, cut into two aluminum discs. Mate the outer holes, line up the inner ones, and the timing moves a degree or two at a time, from 117° to 133°, with two bolts and a pin.
From 129°: the bolts one hole round (the disc turns 34°), the pin one hole back (−36°): 2° later. The engine ran best here, at 131°.
Change it here and the 3D model and the section above follow. The team planned it in the analysis below: centred on 125°, four 2° steps either way.
What's in it
- Power cylinder40 mm bore, 20 mm stroke and a 16 mm rod, double-acting. Bought, with no drawings
- Timing cylinder (the valve)1¼ in aluminum with a 0.781 in bore, and a two-land spool on a ⅜ in rod
- Slotted connecting rodon a ½ in crank: 3 in to the slot’s near end, 3.52 in to its far end
- Phase adjusterthe power crank, built up from two keyed discs and two index discs so its pin can be moved
- Crankshaft and flywheelthree keyed 10 mm shafts joined by the two cranks, in ball bearings in four mounts, and a six-spoke flywheel
- Off the shelfMcMaster-Carr's keyed 10 mm shafts, ⅛ NPT push-to-connect fittings for ¼ in tube, a linear ball bearing for the spool's rod, ball bearings for the power rod's ⅛ in pins, and threaded rod to the piston
How it works
- Shop air in the middle. 80 psi comes in through ¼ in tubing to the middle of the timing cylinder, where the groove between the spool's two lands always holds it.
- Two ports, two loops. Depending on where the spool is, the groove feeds port A or port B. A loops over to the rod side of the power piston, B to the cap side through a passage in the cap end, so the air pushes the piston both ways: it's double-acting.
- Out the ends. Whichever side isn't being fed is open to an end of the valve's bore, and exhausts through the holes beside the inlet.
- One shaft, two cranks. The power piston turns the crankshaft and flywheel through its rod, and a second crank on the same shaft works the valve through the slotted rod.
- Timed by a vernier. Where the power crank's pin sits relative to the valve crank sets when the air switches over. It adjusts from 117° to 133° in 2° steps; 131° ran best.
- 50 cm³ a turn. The 40 mm bore and 20 mm stroke sweep 25.1 cm³ each way, 50.3 cm³ a revolution, inside the class's 50 ± 3. (The rod side holds a little less, 21.1 cm³, since the 16 mm rod fills part of it.)
What the class asked for
Every year until recently, Rowan's mechanical engineers in Thermofluid Sciences, a blend of thermodynamics, fluid mechanics and heat transfer, built an engine that runs on compressed air. Teams of four or five designed, built and tested one in three to four weeks, for 16 of the class's 30 practicum points.
The rules
- Displace 50 ± 3 cm³ of air per revolution of the output shaft
- Connect to shop air through ¼ in plastic tubing
- Mount to the test stand's plate with machine screws only: no clamps
- Up to $60 for special materials
How it was scored
- On test day (7 points): running for a minute, reaching 1000 rpm, rpm against the rest of the class (full marks over 3000), and rpm per kilogram (full marks under 1.5 kg)
- Toleranced drawings (3 points): each team gave a pool of six parts, three of which other teams machined and graded
- A final report (6 points): the design, the analysis behind it, and how the engine did against the class and its theoretical limits
From the final report
Timing valve analysis, with a slotted connecting rod
Position analysis as a function of crank angle
The aim of this code is to analyze the sizes of the linkages that we need to most closely approximate a square wave on a graph of the timing cylinder's piston pin position as a function of crank angle.
- a = 0.5 in, the crank
- bshort = 3 in, the rod to the beginning of the slot
- blong = 3.52 in, the rod to the end of the slot
- c = 0, the offset from the crank's centre to the piston
- Stroke = TDC − BDC = (a + bshort) − (blong − a) = 0.48 in
- Power piston: 20 mm stroke (0.787 in), 40 mm bore (1.575 in)
To calculate the piston height as a function of theta relative to the BDC position, we'll use the following equations:
With the slotted connecting rod design, the crank only moves the piston throughout certain domains of theta. The following is how the piston pin travels:
- [0, 90)the piston remains at TDC
- [90, 180)the piston is acted on by the long end of the connecting rod
- [180, 270)the piston remains at BDC
- [270, 360)the piston is acted on by the short end of the connecting rod
Next, we'll analyze this data and compare it to having a square wave with “lightswitch timing”, where the position of the piston goes immediately to the other side of the cylinder.
- Piston pin, slotted rod
- Square wave: “lightswitch timing”
- Mid-stroke
The numbers
| Crank angle | Pin position [in] |
|---|---|
| 0° | 3.500 |
| 85° | 3.500 |
| 90° | 3.484 |
| 100° | 3.399 |
| 120° | 3.243 |
| 150° | 3.078 |
| 180° | 3.020 |
| 270° | 3.020 |
| 280° | 3.046 |
| 300° | 3.219 |
| 330° | 3.423 |
| 360° | 3.500 |
Determining the ports' functions depending on crank angle
When looking at the timing cylinder's container, there are a few important measurements that must be identified. The following are measurements from the pin in the BDC position.


- High-pressure air in
- Exhausting
The numbers
| In one turn | Crank angles |
|---|---|
| HP air to left side | 120°–304° |
| HP air to right side | 0°–117°, 307°–360° |
| Left side exhausting | 0°–118°, 306°–360° |
| Right side exhausting | 118°–306° |
Determining the phase angle
Here, we'll compare the differences between the crank angles when the different ports open and close.
>> disp(phase(:,115:123))
115 116 117 118 119 120 121 122 123
-1 -1 -1 0 0 0 0 0 0
0 0 0 0 0 0 1 1 1
>> disp(phase(:,302:310))
302 303 304 305 306 307 308 309 310
0 0 0 0 0 0 -1 -1 -1
1 1 1 0 0 0 0 0 0The right side's air cuts off at exactly 117 degrees while the left side begins to receive air at 121 degrees.
On the travel back the air to the left side cuts off at (304 − 180) = 124 degrees and then goes back to flowing to the right side at (308 − 180) = 128 degrees. This difference is to be expected with this design due to the geometry behind the lengths of the linkages. This length difference can be seen in the jump on the Position vs Crank Angle graph as the small hiccup below BDC.
Knowing this, we've decided to make the admission angle be ~5 degrees. Typically this value is between 5 and 10, however that's with continuous sinusoidal motion. With the fast travel between top and bottom dead center, being able to have a smaller admission angle becomes possible. We will, however, have an adjustable crank to connect to the power cylinder. It will be centered at 125 degrees and have 4 positions, each offset 2 degrees to allow for an eight degree adjustment in either direction. This will allow our range to be from 117–133 degrees.
Our final phase angle was experimentally found to work best at 131 degrees, therefore the admission angle is 11 degrees.
Next, to finish it, I'm going to plot the position of the timing piston against the position of the power piston for a comparison to get to a PVT diagram.
- High-pressure air in
- Exhausting
- Power piston
Redrawn with the power piston at its dead centres at the phase angle, 131° and 311°. The script plots it as sin(θ − 131°), which puts them 90° earlier, at 41° and 221°, mid-way through the valve's strokes; the phase angle (and the 11° admission angle measured from it) puts them here, as −cos(θ − 131°).
The numbers
| Power piston | Crank angle |
|---|---|
| Dead centre, nearest the crank | 131°, 491° |
| Dead centre, farthest from the crank | 311°, 671° |
| HP air to the left side | 120°–304° |
| HP air to the right side | 0°–117°, 307°–360° |
The whole cycle
Zoomed in on the corner at full stroke
14 psia is the room and 94 psia the 80 psi shop air on top of it. The 11° admission angle cuts the corners: the piston sweeps 0.23 cm³ of its 25.13 cm³ stroke in those 11°, so the air switches at 24.90 cm³ and 0.23 cm³, before each end.
The numbers
| Point | Volume [cm³] | Pressure [psia] |
|---|---|---|
| 1 | 0.231 | 14 |
| 2 | 0.000 | 25 |
| 3 | 0.000 | 83 |
| 4 | 0.231 | 94 |
| 5 | 24.902 | 94 |
| 6 | 25.133 | 83 |
| 7 | 25.133 | 25 |
| 8 | 24.902 | 14 |
The script
%% Timing Valve Analysis *With Slotted Connecting Rod*
% _Ryan Sweeney_
clear all; close all; clc
%% Position Analysis as a Function of Crank Angle
% The aim of this code is to analyze the sizes of the linkages that we need
% to most closely approximate a square wave on a graph of the timing cylinder's
% piston pin position as a function of crank angle.
a = .5; % crank length [in]
bshort = 3; % connecting rod length [in] at the beginning of the slot
blong = bshort+(.52); % connecting rod length [in] at the end of the slot
c = 0; % vertical offset [in] from crank origin to piston
n = 2; % number of cycles to plot
BDC = blong - a;
TDC = a + bshort;
% stroke = TDC - BDC
% .48 = 2*a - slot_length (see blong)
Stroke = TDC - BDC % this is for checking purposes and important to be .48 [in]
StrokePP = .787402; % stroke of Power Piston [in] it's actually 20mm
BorePP = 1.5748; % bore of the Power Cylinder [in]
theta = zeros(1,360*n); % accounts for 90 degrees of analysis
theta2 = zeros(1,360*n); % accounts for 90 more degrees of analysis
dX = zeros(1,360*n); % position of the piston pin in the x direction
squareWave = zeros(1,360*n); % allocating space for a square wave
middle(1:1 + 360*n) = (TDC+BDC)/2; %visualizes the middle of the piston for easy
% visual analysis
%%
% To calculate the piston height as a function of theta relative to the
% BDC position, we'll use the following equations:
%
% $$\theta_2 = \sin^{-1}\left(\frac{c - a\cdot\sin(\Theta)}{b}\right)$$
%
% $$dX = a\cdot\cos(\Theta) + b\cdot\cos(\Theta_2)$$
%
% With the slotted connecting rod design, the crank only moves the piston
% throughout certain domains of theta. The following is how the piston pin travels
%
% * *[0 90)* the piston remains at *TDC*
% * *[90 180)* the piston is acted on by the *long end* of the connecting
% rod
% * *[180 270)* the piston remains at *BDC*
% * *[270 360)* the piston is acted on by the *short end* of the connecting
% rod
for j = 1:n
for i = 1 + (360*(j-1)):91 + (360*(j-1))
theta(i) = (i-1)*pi/180;
dX(i) = TDC;
end
for i = 91 + (360*(j-1)):181 + (360*(j-1))
theta(i) = (i-1)*pi/180;
theta2(i) = asin((c-a*sin(theta(i)))/blong);
dX(i) = a*cos(theta(i)) + blong*cos(theta2(i));
end
for i = 181 + (360*(j-1)):271 + (360*(j-1))
theta(i) = (i-1)*pi/180;
dX(i) = BDC;
end
for i = 271 + (360*(j-1)):361 + (360*(j-1))
theta(i) = (i-1)*pi/180;
theta2(i) = asin((c-a*sin(theta(i)))/bshort);
dX(i) = a*cos(theta(i)) + bshort*cos(theta2(i));
end
for i = 1:1 + 360*j
if dX(i) < BDC
dX(i) = BDC; % This corrects geometry where pin doesn't catch until
% slightly after 180 degrees
else
dX(i) = dX(i);
end
end
end
%%
% Next, we'll analyze this data and compare it to having a square wave with
% "lightswitch timing" where the position of the piston goes immediately to the
% other side of the cylinder
for j = 1:n
for i = 1 + (360*(j-1)):180 + (360*(j-1))
squareWave(i) = BDC;
end
for i = 181 + (360*(j-1)):361 + (360*(j-1))
squareWave(i) = TDC;
end
end
SqWaveShift = -90; % square wave offset in degrees
figure
hold on; axis([0 360*n BDC-.2 TDC+.2]); grid on;
set(gca,'XTick',0:60*n:360*n)
plot(theta*180/pi, dX, theta*180/pi-SqWaveShift, squareWave, theta*180/pi, ...
middle, '--')
xlabel('Crank Angle [deg]'); ylabel('Position [in]')
title('Position of Piston Pin [in] vs. Crank Angle')
hold off;
%% Determining the Ports' Functions Depending on Crank Angle
% When looking at the timing cylinder's container, there are a few important
% measurements that must be identified. The following are measurements from the
% pin in the BDC position.
%
%
%
%
airOutLeft = zeros(1,360*n) ; airOutRight = zeros(1,360*n);
exhaustLeft = zeros(1,360*n); exhaustRight = zeros(1,360*n);
for j = 1:n
for i = 1 + (360*(j-1)):361 + (360*(j-1))
% finding when HP air goes to left side
if dX(i)+3.01 < BDC+3.24
airOutLeft(i) = 1;
else
airOutLeft(i) = 0;
end
% finding when HP air goes to right side
if dX(i)+3.74 > BDC+3.99
airOutRight(i) = -1;
else
airOutRight(i) = 0;
end
% finding exhaust going out the left side
if dX(i)+2.75 > BDC+2.99
exhaustLeft(i) = .5;
else
exhaustLeft(i) = 0;
end
% finding exhaust going out the right side
if dX(i)+4.00 < BDC+4.24
exhaustRight(i) = -.5;
else
exhaustRight(i) = 0;
end
end
end
figure
hold on; axis([0 360*n -1.1 1.1]);
set(gca,'XTick',0:60*n:360*n)
set(gca,'YTick',0:1.1)
plot(theta*180/pi,airOutLeft, theta*180/pi,airOutRight, theta*180/pi,exhaustLeft,...
theta*180/pi,exhaustRight, 'LineWidth',2)
legend('HP Air to Left Side', 'HP Air to Right Side', 'Left Side Exhausting', ...
'Right Side Exhausting', 'Location', 'southwest')
xlabel('Crank Angle [deg]'); ylabel('What is Acting')
title('Whats Happening at Each Crank Angle')
%% Determining the Phase Angle
% Here, we'll compare the differences between the crank angles when the different
% ports open and close.
phase = [1:1+360*n; airOutRight; airOutLeft];
disp(phase(:,115:123)) % The switch between HP air going from ...
% the right to the left side
disp(phase(:,302:310)) % The switch between HP air going from ...
% the left to the right side
%%
% The right side's air cuts off at exactly 117 degrees while the left side
% begins to recieve air at 121 degrees.
%
% On the travel back the air to the left side cuts off at (304-180) = 124
% degrees and then goes back to flowing to the right side at (308-180) = 128 degrees.
% This difference is to be expected with this design due to the geometry behind
% the lengths of the linkages. This length difference can be seen in the jump
% on the Position vs Crank Angle graph as the small hiccup below BDC.
%
% Knowing this, we've decided to make the admission angle be ~5 degrees.
% Typically this value is between 5 and 10, however that's with continuous sinusoidal
% motion. With the fast travel between top and bottom dead center, being able
% to have a smaller admission angle becomes possible. We will, however, have an
% adjustable crank to connect to the power cylinder. It will be centered at 125
% degrees and have 4 positions, each offset 2 degrees to allow for an eight degree
% adjustment in either direction. *This will allow our range to be from 117 -
% 133 degrees.*
%
% *Our final phase angle was experimentally found to work best at 131 degrees
% therefore the admission angle is 11 degrees*
%
% Next, to finish it, I'm going to plot the position of the timing piston
% against the position of the power piston for a comparison to get to a PVT diagram
phase = 131; %[deg]
admission = 11; %[deg]
thetaPP = circshift(theta,phase);
for i = 1:1 + 360*j
PPx(i) = 0 + StrokePP/2*sin(thetaPP(i));
end
figure
hold on; grid on;
plot(theta*180/pi,airOutLeft, theta*180/pi,airOutRight, theta*180/pi, ...
exhaustLeft, theta*180/pi,exhaustRight, theta*180/pi, PPx)
xlabel('Crank Angle [deg]'); ylabel('Position [in]')
title('Valve Functions vs. Power Piston Position')
hold off;
VatBDC = 0;
VatBDCadmit = pi*(BorePP/2)^2*(.5*StrokePP-.5*StrokePP*cos((admission*pi/180)));
VatTDC = pi*(BorePP/2)^2*StrokePP;
VatTDCadmit = VatTDC - VatBDCadmit;
% Convert from in^3 to cm^3
VatBDC = VatBDC * 16.3871;
VatBDCadmit = VatBDCadmit * 16.3871;
VatTDC = VatTDC * 16.3871;
VatTDCadmit = VatTDCadmit * 16.3871;
Volume = [VatBDCadmit, VatBDC, VatBDC, VatBDCadmit, VatTDCadmit, VatTDC, ...
VatTDC, VatTDCadmit, VatBDCadmit];
Pressure = [14, 25, 83, 94, 94, 83, 25, 14, 14];
figure
hold on; axis([-1 26 10 100]); grid on;
plot(Volume, Pressure, '--o')
xlabel('Volume [cm^3]'); ylabel('Pressure [psia]')
title('PVT Diagram')
figure
hold on; grid on;
plot(Volume, Pressure,'--o')
xlabel('Volume [cm^3]'); ylabel('Pressure [psia]')
title('PVT Diagram Zoomed In')
xlim([24 25.6])
ylim([78 96.0])