The engine that I am currently working on for this project is a simple, one cylinder Briggs and Stratton based generator. SO, it is a constant RPM motor at 3600RPM. Therefore, I don't think I need anything really in the way of lookup tables, etc. It is statically timed now, so that's all I need for electronic control. I just want to be able to adjust the delay manually. I'll handle idle control mechanically.

The reason for using software instead of physically moving the position of the sensor is really just one of flexibility. When I get it working on this, then it will work on ANY motor with a static timing by simply mounting the Hall effect sensor on the leading edge of the magneto.

As for Hydrogen: Compared to fossil fuels it's heaven BECAUSE it burns so fast and in such a wide range of ratios (07%-74% Air to fuel.) In an internal combustion engine, that fact makes it more efficient because it doesn't need time to "get going" like petrol. It should be ignited at almost top dead center and will have done it's work and completed combustion before the valve opens. Additionally, and this is huge, we don't need to throttle the AIR intake. It always runs "lean," wide open air intake! We simply meter the amount of fuel. That fact itself has great consequences on efficiency. Furthermore, since there is no time for heat to transfer to the surrounding cylinder head, etc BEFORE TDC, the engine runs very cool, for zero Oxides of Nitrogen emmissions - the exhaust is cleaner than the air that went in to it (the stuff we breathe.)

I'm sure I could make a solid state ignition circuit to replace the magneto, but I would like to do it with software to reduce hassles with positioning the sensor.

As you can see, I Love talking about this stuff. Don't EVEN get me started about what Hydrogen can do mixed WITH fossil fuels. Gas, diesel, veggie oil, propane, turpines, all run in a standard engine with Hydrogen injection. It's true.