Voltage logging?

This forum is for discussion of MicroSquirt (TM) from Bowling and Grippo. The MicroSquirt information site is at www.usEasyDocs.com
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.
Post Reply
fordfanboi
MegaSquirt Newbie
Posts: 13
Joined: Mon Dec 19, 2005 11:36 pm

Voltage logging?

Post by fordfanboi »

Is there any sort of voltage logging I can view in the data logs for the MS II? I'd like to record what my voltage readings are.

Thanks!
bleoh
Helpful Squirter
Posts: 43
Joined: Tue Aug 16, 2005 12:36 pm
Location: Maryland

Post by bleoh »

IIRC that is one of the standard readings that is logged.
MS2 v3.0 MT2.25 controlling 6 high z injectors and ignition
Bernard Fife
Super Squirter
Posts: 1009
Joined: Mon Feb 16, 2004 3:15 pm

Post by Bernard Fife »

Bleoh, fordfanboi,

I don't think battery voltage is in the standard MS-II logs in order to manitain compaitibility with older logs. It is easily added though.

Add the line:

Code: Select all

entry = batteryVoltage,  "VBatt",       float,  "%.3f" 
to the [Datalog] section of the megasquirt-II.ini file (near the end) and you will be logging battery voltage.

I use MegaLogViewer, so I can just select VBatt once I load the datalog to see the voltages.

Note that 'batteryVoltage' also needs to be in the 'Output Channels' in the INI file, but it should be there by default in MS-II in a line like:

Code: Select all

batteryVoltage = { batADC / 255.0 * 30.0 } ; Current MS power supply voltage.


More on voltage logging: http://www.msefi.com/viewtopic.php?p=94 ... batt#94115

Lance.
fordfanboi
MegaSquirt Newbie
Posts: 13
Joined: Mon Dec 19, 2005 11:36 pm

Post by fordfanboi »

GREAT! Thanks much!
fordfanboi
MegaSquirt Newbie
Posts: 13
Joined: Mon Dec 19, 2005 11:36 pm

Post by fordfanboi »

I didn't see exactly what you typed in my .ini. Here's what I have - is it correct?

batteryVoltage = scalar, S16, 26, "v", 0.100, 0.0

Thanks!
Bernard Fife
Super Squirter
Posts: 1009
Joined: Mon Feb 16, 2004 3:15 pm

Post by Bernard Fife »

batteryVoltage = scalar, S16, 26, "v", 0.100, 0.0
fordfanboi,

Yes, that will work! You still need to add:

Code: Select all

entry = batteryVoltage,  "VBatt",       float,  "%.3f"


to the datalog section of the INI, of course.

Lance.
fordfanboi
MegaSquirt Newbie
Posts: 13
Joined: Mon Dec 19, 2005 11:36 pm

Post by fordfanboi »

Yep - got'r done! :D

Thanks much!
Post Reply