Hello to everyone,
I am a newbie. A rather OLD newbie....but ambitious. I am working on a project of converting a 4 stroke gasoline engine to Hydrogen ( a personal project - no I'm not in school) and my task is this:
Hydrogen combusts FAST, so I need to change the current magneto ignition to one that I can adjust for a LATER (retarded) ignition spark.
The flywheel has a permanently mounted magnet and the magneto will not be able to be repositioned. SO, I want to:
1) Read an input pin to sense the edge of the magnet on flywheel rotation using an Allegro Hall Effect sensor (Output is 2.5V - will PIC see that as "on?")
2) Read a pot to control the "Delay Amount" so I can adjust and experiment.
3) Either just turn on a pin after the determined delay (to turn on current to an ignition coil,) or PWM the same (I wonder if that is necessary considering the time the magnet will be sensed at, say, 3600RPM.)
I've been scouring the examples and they are either way more complicated than I need and over my head, or too simple. Any thoughts will be appreciated.
My experience with PICs thusfar, so you get an idea of where I'm at:
I have successfully programmed a PIC and created a circuit as a PWM generator and have also made a PIC look at the state of certain pin conditions and change PWM duty cycles appropriately (opening water injectors.)
Now then, I would like to do this on a 12f683 with a 20Mhz crystal, but could do it on another configuration if necessary.
Before I try to recreate the mold, does anyone have any snippets that would get me started? Or perhaps a more proper place to search?
Thanks in advance,
Chris
Bookmarks