John Pearson wrote: > > I am thinking of ways to control the ignition timing advance curve of a > car. I was thinking that I might time the amount of time between cylinder > firings and divide that number by 360. Then I would know when to fire the > next cylinder after checking with a lookup table for the programmed curve. > > Is there a better or easier way? > > Thanks > > John One thing is to remember that the less calculations you have to do while the engine is running, the better. Two ways I have found around this, is to precalculate data that is used while the engine is running, or use a lookup table. I used precalculated data with 4 stages of advance, vac adv, dwell and RPM timing etc. It took a PIC 16F84 about 40 - 60 inline instructions to get the timing for all these parameters as well as do the actual timing from the results. Check out http://www.picnpoke.com/projects/ignition.html There is some early downloadable code there that uses a lookup table. -- Best regards Tony http://www.picnpoke.com mailto:sales@picnpoke.com