Hello, so i am doing this project where i need to start a lawn mower engine with hydrogen. I already have a hall effect sensor attached to the engine(one magnet at TDC and one magnet at BDC) where i will switch between the ignition and injection using the hall effect sensors. I have managed to code the arduino so that it will only read the odd numbers of magnet as the shaft rotates, i.e 1,3,5,7,9...etc. where 1 is going to be injection output, 3 ignition output, 7 injection output, 9 ignition output and so on..
The problem is, there's no way of telling that which magnet will go first. it could either be the magnet at BDC that will go first and ideally will going to start the injection process at BDC which isn't correct. One way i can think of is that i need to manually turn the shaft to its correct location and start the again as usual which is not very practical.
And also, the speed of the crank rotation when starting the engine is not going to be the same as after starting the engine right? So, there's problem with the injection and ignition timing too.
Thanks in advance! :o