Spare ports to monitor 0-.5 volts for data logging

For discussing how to choose sensors and create a wiring harness for all Bowling and Grippo versions of the MegaSquirt® EFI controller.
Forum rules
Read the manual to see if your question is answered there before posting. Many users will not reply if the answer is already available in the manual.

If your question is about troubleshooting, configuration, or tuning, you MUST include your processor type (MS-I or MS-II) and code version in your post. If your question is about PCB assembly or modifications, you must also include the main board version number (1.01, 2.2 or 3.0).

If you have questions about MS1/Extra or MS2/Extra code configuration or tuning, please post them at www.msextra.com Such questions posted here will be moved to: a temporary MSextra sub-forum, where they will be removed after 7 days

The full forum rules are here: Forum Rules, be sure to read them all regularly.
Post Reply
1983sc
MegaSquirt Newbie
Posts: 7
Joined: Mon Nov 26, 2007 7:17 pm

Spare ports to monitor 0-.5 volts for data logging

Post by 1983sc »

I'm interested in using MS 2 spare ports to monitor input from my twin ignition systems in the range of 0 to .5 volts. Each of the twin ignition systems provides a linear signal where .1 volt equals 10 degrees of advance, .3 volts = 30 degrees, etc. I'd like to route these signals to MS 2 spare ports for data logging. Can anyone suggest which ports to use and how to configure the code to read and display the signal? Thanks
Bernard Fife
Master Squirter
Posts: 475
Joined: Thu Oct 29, 2009 12:54 pm

Re: Spare ports to monitor 0-.5 volts for data logging

Post by Bernard Fife »

1983sc,

The spare ports are configured as outputs, not inputs. You may be able to use other unused pins to monitor a voltage, but this depends on which pins you are currently using, and which code you are using.

For example, you might be able to use the 'full-time baro/EGO2' pin (AD6 - jumpered to JS5) or the 'Knock/MAF' pin (AD7 - jumpered to JS4); if you aren't using these. For a 0-5V signal, you would need to copy the EGO circuit, which consists of a couple of resistors (1K and 1M) and a capacitor (0.22uF). You can do this in the beta area of the V3 board.

You could bring the signal in on one of the unused DB37 pins (these are connected to SPR3 (pin 5) and SPR4 (pin 6))

All the hardware details you need are here: http://www.megamanual.com/ms2/pcb.htm

The knock channel reports the voltage directly as 'knock' and you can add this to your datalogs in the [Datalog] section by adding a line like:

Code: Select all

   entry = knock,  "myVolts",       float,  "%.2f"
EGO2 does not report the voltage or ADC count directly. So you would have to work with the settings in TunerStudio (and/or adjust the INI's OutputChannels section) to get the output signal to reflect the actual voltage.

Lance.
"Never wrestle with pigs. You both get dirty and the pig likes it.” - George Bernard Shaw
Post Reply