USB datalogger

A forum for discussing the MegaSquirt related (but non-B&G) board development, assembly, installation, and testing.

Moderators: jsmcortina, muythaibxr

Post Reply
Huey
Helpful MS/Extra'er
Posts: 147
Joined: Sat Feb 17, 2007 9:28 pm
Location: Stamping Ground, Ky.

Re: USB datalogger

Post by Huey »

I just ran a jumper to the trace next to U5 see picture. Version 1.1 board already has this correction.

Also pay close attention to these jumpers.
JP1 = optional 3.3v regulator jumper only needed if the unit is to power some external object needing higher current or if not using VDIP1.
JP2 = 3.3v regulator powering logger from VDIP1 on-board regulator. default
JP3 = reset VDIP1 with common reset. default
JP4 = reset VDIP1 from propeller IC pin.
JP5 = make power down input inactive. default

Only JP1 or JP2 may be installed(not both).
Only JP3 or JP4 may be installed(not both).


Huey

Image
Dodge 2.2L MPI Turbo Power Running MSnS1/Extra.
Chevrolet 5.3 LM7 running MSnS2 /Extra
Chevrolet Twin Cam 4 cyl running MSnS2 / Extra
Home of the USB data logger---> http://www.msextra.com/forums/viewtopic ... 67&t=34901
h22
Helpful MS/Extra'er
Posts: 107
Joined: Wed May 27, 2009 12:05 pm

Re: USB datalogger

Post by h22 »

Thanks.

I know its a bit more work, but some assembly instructions would also be a big help.

There are no component referances on the BOM, that would help a bunch. I will modify the BOM as I go to reflect what PN go where. just hope I get them all right! :P

Joe
h22
Helpful MS/Extra'er
Posts: 107
Joined: Wed May 27, 2009 12:05 pm

Re: USB datalogger

Post by h22 »

Here's mine, no propeller chip yet, accidentally forgot to order it...
Huey
Helpful MS/Extra'er
Posts: 147
Joined: Sat Feb 17, 2007 9:28 pm
Location: Stamping Ground, Ky.

Re: USB datalogger

Post by Huey »

Be sure to install the jumpers or it will not work.

Huey
Dodge 2.2L MPI Turbo Power Running MSnS1/Extra.
Chevrolet 5.3 LM7 running MSnS2 /Extra
Chevrolet Twin Cam 4 cyl running MSnS2 / Extra
Home of the USB data logger---> http://www.msextra.com/forums/viewtopic ... 67&t=34901
Huey
Helpful MS/Extra'er
Posts: 147
Joined: Sat Feb 17, 2007 9:28 pm
Location: Stamping Ground, Ky.

Re: USB datalogger

Post by Huey »

How to make it fit in a plastic box from Radio Shack http://www.radioshack.com/product/index ... Id=2062282 Install the LED's, and power switch on the back side of the board, use a external 9-pin connector with a pigtail and install into box with 1/2" long stand-offs. 8)

Huey

Image
Image
Image
Dodge 2.2L MPI Turbo Power Running MSnS1/Extra.
Chevrolet 5.3 LM7 running MSnS2 /Extra
Chevrolet Twin Cam 4 cyl running MSnS2 / Extra
Home of the USB data logger---> http://www.msextra.com/forums/viewtopic ... 67&t=34901
Vanhoe
Experienced MS/Extra'er
Posts: 258
Joined: Wed Oct 05, 2005 1:04 pm
Location: Belgium

Re: USB datalogger

Post by Vanhoe »

Hello

I was looking for a small datalogger unit to use with my MSI V3.0 board.
Are these ready build?
I did build the MS unit but it seems there are some verry small parts to solder
on this one.
As I am using the MS in a race car and It isn`t usual to race with a laptop
in the car (only in movies allowed in Belgium) it would be a great tool !!

Pleas inform me about this unit how to get it and its price even if it is only
in kit form.

Ivan
Huey
Helpful MS/Extra'er
Posts: 147
Joined: Sat Feb 17, 2007 9:28 pm
Location: Stamping Ground, Ky.

Re: USB datalogger

Post by Huey »

Please see my last post on page one of this thread for pricing. The board is designed for you to assemble. All parts are through hole meaning no surface mount parts to deal with.

Huey
Dodge 2.2L MPI Turbo Power Running MSnS1/Extra.
Chevrolet 5.3 LM7 running MSnS2 /Extra
Chevrolet Twin Cam 4 cyl running MSnS2 / Extra
Home of the USB data logger---> http://www.msextra.com/forums/viewtopic ... 67&t=34901
Vanhoe
Experienced MS/Extra'er
Posts: 258
Joined: Wed Oct 05, 2005 1:04 pm
Location: Belgium

Re: USB datalogger

Post by Vanhoe »

Could you put a kit together for me all include to buid and put a price on that?

The same parts are not always so easy to get here.

I assume you are in the states and someone could bring it over
for me that is currently staing in LA.

Ivan
Huey
Helpful MS/Extra'er
Posts: 147
Joined: Sat Feb 17, 2007 9:28 pm
Location: Stamping Ground, Ky.

Re: USB datalogger

Post by Huey »

I will assemble and test one for you for $150.00 USD plus shipping. This is for the completed board only. No adapters, cables, or enclosure. The lithium battery is considered hazardous material so If you can supply that one part it would save you shipping money. I can also email the BOM to you if you would like to see if the parts are available in your area.

Thanks, Huey
Dodge 2.2L MPI Turbo Power Running MSnS1/Extra.
Chevrolet 5.3 LM7 running MSnS2 /Extra
Chevrolet Twin Cam 4 cyl running MSnS2 / Extra
Home of the USB data logger---> http://www.msextra.com/forums/viewtopic ... 67&t=34901
Vanhoe
Experienced MS/Extra'er
Posts: 258
Joined: Wed Oct 05, 2005 1:04 pm
Location: Belgium

Re: USB datalogger

Post by Vanhoe »

Would it be a problem to carry it in the luggage comming back to Europe?
That way if you could send it to my cosin and he brings it to Belgium that
would save me some money, He could do the payment also and I refund him
when home.

Please send the BOM to power.parts@telenet.be

Thanks
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: USB datalogger

Post by jsmcortina »

Vanhoe wrote:Would it be a problem to carry it in the luggage comming back to Europe?
I've bought electronics parts in the USA and brought them back with me on the plane to Europe no problem.

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
Peter Florance
Super MS/Extra'er
Posts: 3653
Joined: Fri Apr 02, 2004 8:40 pm
Location: Virginia Beach, VA
Contact:

Re: USB datalogger

Post by Peter Florance »

mine's all built. I somehow missed SW4 but found a push on / push off that should work ok.

I need to load the image correct?
Peter Florance
PF Tuning
81 BMW Euro 528i ESP Car
60-2 Wheel LS2 Coils, Low Z Inj
Co-Driver 1999 BMW E46 DSP car.
Peter Florance
Super MS/Extra'er
Posts: 3653
Joined: Fri Apr 02, 2004 8:40 pm
Location: Virginia Beach, VA
Contact:

Re: USB datalogger

Post by Peter Florance »

Peter Florance wrote:mine's all built. I somehow missed SW4 but found a push on / push off that should work ok.

I need to load the image correct?
wow, that was easy. Installed the tool, extracted the files. Loaded them into the tool, hit F11 and away it went...
Peter Florance
PF Tuning
81 BMW Euro 528i ESP Car
60-2 Wheel LS2 Coils, Low Z Inj
Co-Driver 1999 BMW E46 DSP car.
Peter Florance
Super MS/Extra'er
Posts: 3653
Joined: Fri Apr 02, 2004 8:40 pm
Location: Virginia Beach, VA
Contact:

Re: USB datalogger

Post by Peter Florance »

So if J5 is installed, I use the toggle switch to start and stop?
L is Log
M is mark

Edit (I think I need to figure out how to get the signature loaded)

I'm running 3.03S; not sure if sig is different from 3.03r or not
Peter Florance
PF Tuning
81 BMW Euro 528i ESP Car
60-2 Wheel LS2 Coils, Low Z Inj
Co-Driver 1999 BMW E46 DSP car.
Huey
Helpful MS/Extra'er
Posts: 147
Joined: Sat Feb 17, 2007 9:28 pm
Location: Stamping Ground, Ky.

Re: USB datalogger

Post by Huey »

L = logging start / stop
M = Mark the file with date, time, and a red line you can see in Megalog Viewer

J5 needs to be installed. The power down circuit tells the processor the power has been turned off and it immediately turns off the LED's and closes any files that are open.
However, It takes longer to close the files than it does for the on-board capacitors to discharge. So to make it work it would need an external power source that was always on. I'm planning on making a new software release that causes the logger to start polling for Megasquirt when it is powered up. I was initially worried that Megasquirt might read the polling byte incorrectly and cause unwanted results during power up such as a memory write. After watching Tuner Studio poll without problems, I think its going to work and I can make it as an option that can be turned on and off. The data logger already stops logging and closes any open files after a communication time out, so that part works if you shut the engine off while logging as long as the power to the logger remains on.

Huey
Dodge 2.2L MPI Turbo Power Running MSnS1/Extra.
Chevrolet 5.3 LM7 running MSnS2 /Extra
Chevrolet Twin Cam 4 cyl running MSnS2 / Extra
Home of the USB data logger---> http://www.msextra.com/forums/viewtopic ... 67&t=34901
Peter Florance
Super MS/Extra'er
Posts: 3653
Joined: Fri Apr 02, 2004 8:40 pm
Location: Virginia Beach, VA
Contact:

Re: USB datalogger

Post by Peter Florance »

Huey wrote:L = logging start / stop
M = Mark the file with date, time, and a red line you can see in Megalog Viewer

J5 needs to be installed. The power down circuit tells the processor the power has been turned off and it immediately turns off the LED's and closes any files that are open.
However, It takes longer to close the files than it does for the on-board capacitors to discharge. So to make it work it would need an external power source that was always on. I'm planning on making a new software release that causes the logger to start polling for Megasquirt when it is powered up. I was initially worried that Megasquirt might read the polling byte incorrectly and cause unwanted results during power up such as a memory write. After watching Tuner Studio poll without problems, I think its going to work and I can make it as an option that can be turned on and off. The data logger already stops logging and closes any open files after a communication time out, so that part works if you shut the engine off while logging as long as the power to the logger remains on.

Huey
Thanks Huey
When I press switch in L direction to stop logging, should I see any change in the LED's?
Peter Florance
PF Tuning
81 BMW Euro 528i ESP Car
60-2 Wheel LS2 Coils, Low Z Inj
Co-Driver 1999 BMW E46 DSP car.
Huey
Helpful MS/Extra'er
Posts: 147
Joined: Sat Feb 17, 2007 9:28 pm
Location: Stamping Ground, Ky.

Re: USB datalogger

Post by Huey »

How to add your own signature:

Format: "MS2Extra Rel 3.0.3r",0,200,"A",169
"MS2Extra Rel 3.0.3r" = Signature
0 = String terminator
200 = Signature ID created and used by datalogger. Even numbers for MSII and odd numbers for MSI incrementing by 10.
A = Get Command
169 = Data Block size


How to get the data:

Look for this directory on your PC---> C:\Program Files (x86)\EFIAnalytics\TunerStudioMS\config\ecuDef
Open the INI file that matches your current setup.
Look for the word "signature" and copy everything in the quotes.
Look for the word "ochGetCommand" and copy the character usually "A" or "R".
Look for the word "ochBlockSize" and copy the number.


How to put the new signature into the data logger:

Open the file megalogger.spin with the propeller tool software from parallax.
Put it all in the format above and paste it towards the end of the file megalogger.spin under the DAT section.
Connect the data logger to your PC serial port.
Press F11 and it will compile and load into the propeller EEPROM.

your done.




The next version of software will allow you to add it from a PC without using the propeller tool.

Huey
Last edited by Huey on Thu Jun 17, 2010 8:15 pm, edited 1 time in total.
Dodge 2.2L MPI Turbo Power Running MSnS1/Extra.
Chevrolet 5.3 LM7 running MSnS2 /Extra
Chevrolet Twin Cam 4 cyl running MSnS2 / Extra
Home of the USB data logger---> http://www.msextra.com/forums/viewtopic ... 67&t=34901
Huey
Helpful MS/Extra'er
Posts: 147
Joined: Sat Feb 17, 2007 9:28 pm
Location: Stamping Ground, Ky.

Re: USB datalogger

Post by Huey »

Operation:
dip switch_1 determines the mode of operation. on = logging mode, off = setting mode.
dip switch_2 selects between baud rates. on = 9600, off = 115200 baud.
dip switch_3 spare not in use
LED_1 on for 115200 baud, off for 9600 baud.
LED_2 flashing for setting mode, flashes when a file is marked during data logging, off otherwise.
LED_3 slow flash when waiting for USB to initialize, flickers on during data logging, off otherwise.
All LED's flash if a USB write error occurs. This will recover if during disk initialize. Otherwise reset is required


Huey
Dodge 2.2L MPI Turbo Power Running MSnS1/Extra.
Chevrolet 5.3 LM7 running MSnS2 /Extra
Chevrolet Twin Cam 4 cyl running MSnS2 / Extra
Home of the USB data logger---> http://www.msextra.com/forums/viewtopic ... 67&t=34901
Peter Florance
Super MS/Extra'er
Posts: 3653
Joined: Fri Apr 02, 2004 8:40 pm
Location: Virginia Beach, VA
Contact:

Re: USB datalogger

Post by Peter Florance »

oops, how do I set time and date?
Peter Florance
PF Tuning
81 BMW Euro 528i ESP Car
60-2 Wheel LS2 Coils, Low Z Inj
Co-Driver 1999 BMW E46 DSP car.
Huey
Helpful MS/Extra'er
Posts: 147
Joined: Sat Feb 17, 2007 9:28 pm
Location: Stamping Ground, Ky.

Re: USB datalogger

Post by Huey »

Peter Florance wrote:oops, how do I set time and date?
Move dip switch_1 to setting mode(LED_2 should start flashing when powered up) and connect your PC. Run Hyperterminal or the parallax serial terminal program at the same baud rate that is set with dip switch_2. Hit any key and a screen should pop up with all available settings. You may have to switch SW4 to swap transmit and receive on the serial port.

Huey
Last edited by Huey on Thu Jun 24, 2010 7:25 pm, edited 1 time in total.
Dodge 2.2L MPI Turbo Power Running MSnS1/Extra.
Chevrolet 5.3 LM7 running MSnS2 /Extra
Chevrolet Twin Cam 4 cyl running MSnS2 / Extra
Home of the USB data logger---> http://www.msextra.com/forums/viewtopic ... 67&t=34901
Post Reply