Been around arduino for a while and made some handy "state" controls for various things... so not quite new, but not familiar with all the possibilities and limits.
My current "problem": I'm involved in a racecar. The ignition is controlled by a "high tech" ignition controller anno 1985 :roll_eyes:. Due the racecar competes in a classic class it it not permitted OR wanted to change the original ignition controller. To change the timing, the engine have to be taken out of the car and a couple of hours later you are running again. The ignition controller uses a hall-sensor mounted on the crankshaft. The wheel have 4 tooth's giving a 30% duty-cycle signal.
My wish: to be able to move the trigger-point back and forth to change the ignition advance. I my dreams by using 2 pots, one for rough and one for fine tuning the signal.
I would appreciate would comment on my following thoughts:
Max rpm is 10500, and I want a signal that is precise within max 0.5 degree. Is that possible with the arduino? I have no intention in learning assembler for this project.
The math for this(?): 10500 rpm/60 secs = 175 rev/sec 1 sec / 175 rev / 360 degrees / 2 (to have a ½ degree) = 0.0000079 sec. to calculate, count time and set the output pin on the arduino.
Next when the micros resets, I can't have it to fire at the wrong time, is it possible to make it skip the one output when that happens?
Finally, did I miss something obvious, that is much easier or that makes this a bad idea?
Thanks in advance, Jesper