Subject: Sensors PicAXE program.
From: Rotary Engine
Date: 12/18/2007, 9:34 AM
To: AARotary Engine


The work load for that is three dozen BASIC instructions.

1.Measure the intake manifold pressure with the A to D.
2.Measure the intake manifold air temperature with the A to D.
3.Use the data to look it up in the 2D mixture table.
4.Adjust the pulse width generator. (Free runs in the background.)
5.Return to back ground loop and wait for next ign. pulse.

That's it!
-------------------------------------------------------
Let me revise and expand on that slightly.

1. Measure the intake manifold pressure with the A to D.

2. Measure the intake manifold air temperature with the A to D.

3. Check the count in the back ground loop counter for RPM.
  (large number low RPM.... small number high RPM.)

4. Use the MAP number and RPM number to look up the
   mixture number stored in the pre loaded 2D mixture map.

5. Adjust the mixture number for the intake air temp up or down.

6. Adjust the pulse width generator. (Free runs in the background.)

7. Return to back ground loop and wait for next ign. pulse.

Once you get the hardware working on the bench it should take
about a day to write the program if not a couple of hours.

Here is the pseudo code for the back ground loop counter.
For x = 1 to 1,000,000,000
Increment loop counter
Next x
Exit the program engine not running :)
(No ign pulse.)

Upon ign pulse:
Read loop counter number.
Store the number in the RPM memory location.
Set loop counter to zero.
Set x to zero.
Do steps 1 through 7.

Thats it!!!!!!!!!!!!!!!!

Paul Lamar ...No rotor no motor.

The Rotary Engine NewsLetter. Powered by Linux.
ACRE NL web site. http://www.rotaryeng.net
Copyright 1998-2007 All world wide rights reserved.