The MegaSquirt Project has experienced explosive growth other the years, with hundreds of new MS installations occurring every week - a phenomenal success! MegaSquirt has been successfully used in all aspects of Internal Combustion engine applications including R&D, Industry, Race, and Research. The MS project has transformed itself from a simple R&D project into a full-featured mature engine control system. To reflect this the support structure has also changed to meet the needs of MegaSquirt Users.
Moving forward, the R&D forums for MegaSquirt project are in a read-only mode - no new forum posts are accepted.
However the forums will remain available for view, they still contain a wealth of information on how MegaSquirt works, how it is installed and used. Feel free to search the forums for information, facts, and overview.While the R&D forum traffic has slowed in recent years, this is not at all a reflection of Megasquirt users, which continue to grow year after year. What has changed is that the method of MegaSquirt support today has rapidly moved to Facebook, this is where the vast majority of interaction is happening now. For those not on Facebook the msextra forums is another place for product support. Finally, for product selection assistance, all of the MegaSquirt vendors are there to help you select a system, along with all of the required pieces to make it complete.
This forum is for discussing ignition setup, tuning, and troubleshooting for MicroSquirt (TM)
Forum rules
Read the manual to see if your question is answered there before posting. If you have questions about MS1/Extra or MS2/Extra or other non-B&G code configuration or tuning, please post them at http://www.msextra.com The full forum rules are here: Forum Rules, be sure to read them all regularly.
I am sending a simple one pulse per revolution square wave (high for approx 10 degrees of the revolution +5V) connected to the optoin + optoin - (positive to optoin + gnd to optoin -) I get no reading on the megatune engine speed when cranking - may not have set the software correctly?
Try connecting Optoin + to a 5 volt source through a 330 ohm resistor and Optoin - to the sensor output. Sometimes inverting the trigger input can improve its sensitivity.
The 'Option' input drives an optocoupler MOC-205 which needs 10 milliamps for safe operation. As there is a 680 Ohms resistor in series, 10 milliamps cause a voltage-drop of 6.8 Volts. The LED of the MOC-205 needs 2 additional Volts. That is why 5 Volts are not enough for the 'option' input.
I appreciate all your help. I have programed an AVR micro to send a simulated 380 rpm 12 tooth crank signal - one missing 5 skips to the optoin + 5 v.
The microsquirt and the megatune work fine - I don't think the software can handle the single tooth encoding.
( i also tried 4 tooth one missing one skip - didn't work)
Skip teeth represents the number of teeth between tach pulses (= 1 pulse per cylinder), so it can never be 0 as you specified in the 1 tooth settings. In your 4 tooth, 1 skip tooth case, that would imply 8 cylinders. But this might not work because the tooth logic is premised on having the tooth after the missing tooth being the tach pulse for the first cylinder (or the middle cylinder in wasted spark configuration), and all other tach pulses have to arrive on real teeth not missing ones. So if you specified 4 cylinder, 4 teeth, 2 skip teeth that should work.
I think things should work if you understand that skip teeth is number of teeth between tach pulses and select No_skip = No_teeth / (no_cyl/2), (for a 4-stroke. For the 1 tooth case, you have to declare 2 cylinder, 2 teeth, 1 missing, 2 skip teeth.
Thanks for the explanation of wheel decoder logic.
My latest experiment - AVR microcontroller simulates a 36 tooth wheel 1 missing tooth skip 18 teeth 2ms per pulse/space 416 rpm. Works fine for 38 seconds - then the rpm display stops - time counting on real time display stops - very mysterious! The pulse chain never varies (monitored on an oscilloscope). Mega Tune continues to report the other variables. Reset microsquirt - 38 seconds and RPM & time reporting stops. Consistantly repeatable. Pulse chain is 35 alternating 2ms pulses followed by two zero 2ms pulses.
Also after Start Enrichment and Warm Up Enrichment indicators switch to off
I have run such a configuration 100s of times and never run into anything like that. I can't think of any significance to the 38 secs. To go any further I need an msq and what exact code version you are running.