http://www.sae.org/mags/AEI/6906
http://www.freescale.com/support
C. Smith
I'll second that. In the true spirit of the 555 one computer per
injector.
If we can get this to work it will be off the shelf ignition and EFI
at very low cost indeed. Modular and redundant for safety.
For a two rotor, four FreeScale demo PC boards would be required
aseach one has an injector driver. Two triggers are no problem
for usas each rotor fires once per rev. Just like a one cylinder
two cyclepiston engine.
Hopefully there is a one cylinder 2 cycle piston engine FreeScale
software example that we can use to get a fast start.
I downloaded a bunch of stuff and got this version of the code
warrier up and running. Do we have any C programmers on here?
FreeScale makes you jump through a lot of hoops as far as
registering and activation which is a real pain in the ass. I called
them and tried to explain I don't run windows on the Internet for
virus reasons so on-line activation does not work for me.
Thanks Craig for letting me know about this.
Paul Lamar
Robin's Mac OS disk should have X Code on it, provided it's not
tooold. You can program C, C++ , and a variety of others with it.
I just loaded mine for a college course in C++.
Chris Cosman
This is a good project for you Chris.
Paul Lamar
It would be a great project for me. However, if you folks were
expecting any timely results, I may let you down...
Let me get through my class first and see what I know...
Chris C.
OK Chris. C is pretty dry and this should add some incentive.
Plus you could ask the instructor questions. Code Warrior comes with
a C compiler.
Paul Lamar
What are the questions I need to be asking the instructor. He wrote
the book we're using and used to design spy satellites, I'm sure
hecould walk me through this...
My apologies I haven't been paying too much attention to this
thread,until now.
Chris Cosman
Down load the software and print out some of the C examples.
If there is something you don't understand ask him.
Paul Lamar
Paul, I used to program in fortran, pil, sindue, mad and read up
on the Cand later C++ back in 1999. As with other languages the
programer writeshis code including things tagged rem (remember
what this does) statements.Function blocks are written in
sections and when all are ready they are"linked" and "compiled"
to generate an "executable" file which is what weget when we buy
software. During the compile stage all the rem statementsare
dropped and all named variables cas maf ign inj that you used
are converted to generic equivalents. The executable file can be decompiled
for
modification to add mass airflow functions, however not having
realvariablenames, and all the blocks would still be linked
makes a large confusingmessto sort thru. If you have the
original source code (open source) a functionof conditional
statements to convert the floating point mass air flow valueto an
offset of the fuel table would seem to alter mixture. The array of
data for fuel flow time would have the "name" sub x changed to
"name" sub(x+offset)Expanding on this for manual mixture overide
would be "name" sub
(x+offset+manual change)
There are several versions of C++ available. Two of the beter ones
are microsoft C as used in windows and borland C++ It is
generally thoughtthat the automatic debugging during linking is
much better in borlandC++During your code writing you have a lot
of C in where you sendvariables into a function block and C out
where variable values go out toother parts of the program. If for
instance you send in an integer valuebutdeclare it floating
point as it enters the function block and it is outputwith the
original variable name with the new value you have a floating
point defined an an integer(no decimal point) and an error. The debugger
looks for these and functions linked to the wrong addresses and changes
them
as necessary. The documentation of borland C++ is more
informative allowingthe original intent of the code to be
obtained. The new code can then berunthru the microsoft
compiler to make the executable file if you preffer.
To write source code an understanding of high school algebra is
essential and secondly conditional statements will be neccessary.
Conditional statements aresomething is greater than, less than,
or equalto something else and based on this decision you "go to"
some line and dosomething. For a beginning "the C++ for dummies"
book is usefull and afullversion of C++ manual might be
usefull if you read it twice. All thesending to and retrieving
from a particular storage address type ofinitialization is done
in the compiler. Personally I found it usefull towrite out a line
in plane english then converting to code. For instance, ifthe
mass air flow voltag e is more than this but less than that and the air
temperature is more than
this and less than that then enter a fuel flow time of something
in anarraynamed whatever on a line number some variable plus 1
then go back andrepeatwith the mass airflow a step higher
until the mass air flow is more thansome number, then start over
with the air temperature one step higher untilsome value is
exceeded then exit this function. This would generate anarray
(look up table) for fuel versus air. A more extensive set of
inputsincluding throttle position and crank angle sensor position
and rpm for asingle master table would generate a larger table.
By using rpm as theinputthe table would sort thru the list to
choose fuel flow time and injectionand ignition timing. Using
multiple tables or branched tables would reducesort time, and
using a polar array as a matrix could be a nice trick tocross
refference many tables in a single sort. We did this to sort
lumber bylength, width, thickness, grade, species, trimmed, untrimmed,
current binlocation etcetera for lumber sorting/packaging systems.
About using a pre built board without mass air flow or some kind
ofair density input I don't understand how to input data on a
board with noinput treminal to connect to. Using a second board
with a sata or serialconnection would add more circuit boards and
this is then starting to looklike an industrial rack system. Is
it possible to match up a mass air flowsensor output to replace
one of the existing inputs to the board, possiblythe throttle
position sensor if a manual throtttle cable is used for power
control. I was thinking the ford maf sensor could be in series with
a pottomodify the voltage and add manual mxture override.
george grimes
The Code Warrior comes with a C compiler debugger and emulator.
All free.The boards have .025 square headers on the opposite side
for data input.
We think there is already a provision for a mass air flow sensor
input. Itwould help if you downloaded the free code samples and
see if there is asample C program source we can use already
written. Just about any onecylinder program will work.
Paul Lamar
The MC9S12P128 has a 10ch 12bit a/d, so a great many possiblities
exist forinput. Download
http://www.freescale.com/files/analog/doc/user_guide/KT33812ECUUG.pdf?
fpsp=1
I don't know as of yet if the sample application has provision
for MAF, butthere is some pre cut smples for demonstration and
application validation.Iwould think it may be as simple as
substituting one input for another, somescaling math?, and maybe
creation of look-up tables.
C. Smith
Paul, pages 31 and 42 user guide show the locaton of the manifold
absoluepressureinputs which could be retained or switched to
maf. The look up tables areuser defined so the nonlinearity of
maf or air temp sensors would be doneon the included spreadsheet
of the kit software. Has anybody got the kitprice and price for
additional boards. I haven't used my oscilliscope fordecades, but
it could be a fun winterproject.george grimes
I see what you are saying. A MAP sensor is a lot cheaper than a mass
airflow sensor.
Cheap enough to use one for each rotor. Like $10. There is also a
throttleposition sensor which would help the throttle response.
Here is the diagram from page 31. It also looks like it has a
missing toothdetector from the crank angle sensor.
Paul Lamar
Yes, missing tooth is the scheme they are using in the
validation. The moreI look at this, the better it looks. With the
available overhead andMC33926: 5.0 A Throttle Control H-Bridge,
this could also be used for thefuel pump PWM project someone has
been working on.
C. Smith
Paul, I was looking at some RX8 engines in my hanger this
afternoon and the stock crank angle sensor looks just fine as is,
and we know that it will function at 13,000 rpm so should be fine
down at 7,000 continuous. The spacing to the triggerwheel looks
excessive IMHO but some testing with the oscilliscope on a running
engine at the stock spacing and at a few closer spacings might be
interesting.
The freescale board download shows 10 analog
to digital converters which is really generous. Their mixture
control seems to use an oxygen sensor so that would be the area to
exchange for an algorithm of the mass air flow to fuel ratio. I
really like the 90MM ford maf with the built in temperature and
humidity correction on the sensor circuit board. The freescale
board has air temperature sensor input and more importantly engine
temperature so the code for a second air temperature correction
would need a revision.
Do you think the MAF sensor gives a more
precise reading than the manifold absolute pressure, and
particularly when higher turbocharging pressure would require a
larger range of sensitivity?
It would seem that the charge temperature and manifold pressure.
sensors would need to be at the same place and that vaporizing
fuel lowering the temperature would make accurate readings
difficult at different fuel flow rates. With the MAF sensor reading
only air it appears to have the edge on accuracy.
george grimes
Yes, The mass airflow sensor would probably be more accurate.
Paul Lamar
Can a pitot tube in the intake stream replace the heated mass air
flow sensor?
Matt-
Probably. I think you will also need the air temperature.
It will need to be a very sensitive pressure sensor as 100 MPH is
only .18 PSI.
You will also need to relate it to ambient pressure.
Here is a data sheet.
Paul Lamar
-
A pitot will give the velocity of the incoming air. You also need the MAP
sensor and temp to calculate the mass air flow. Ford mass air sort of does
this with its bypass style mass meters. I would think it is easier to just
use an automotive mass meter or go the speed density route. A pitot tube in
the intake makes me nervous; the chance of the tube breaking off and going
through the engine.
Dale Davies-
--
The Rotary Engine NewsLetter. Powered by Linux.
ACRE NL web site.
http://www.rotaryeng.net
Youtube key word UTUBPLEASE
Copyright 1998-2009 All world wide rights reserved.