Microsquirt-IO box

This forum is for the discussion of other projects on Megasquirt/Microsquirt hardware that don't fit into any of the other forums

Moderators: jsmcortina, muythaibxr

Post Reply
jsmcortina
Site Admin
Posts: 39614
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Microsquirt-IO box

Post by jsmcortina »

To announce a new firmware that allows a Microsquirt to be used as an CAN-connected expansion board for MS3 with a "zero config" concept.

It can offer a useful I/O addition:
7 Analog inputs (0-5V variable)
2 Wheel speed inputs (VR or hall type)
2 Wheel speed (hall type) or ground-switch inputs
1 dedicated ground-switch input
2 high current PWM/switch ground-switching outputs
4 mid current PWM/switch ground-switching outputs
1 low current PWM/switch 0-12V output
By design, the inputs and outputs have a fixed function to simplify configuration.
All configuration is performed through TunerStudio in the MS3/MS3-Pro settings pages. (No "CAN projects" required.)

The firmware and PDF manual package can be downloaded at:
http://www.msextra.com/doc/iobox/files/iobox-1.002.zip
EDIT: Requires MS3 pre-1.4 alpha9 or later firmware.
EDIT2: Newer version.

Go buy a Microsquirt...

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".
nathaninwa
Super MS/Extra'er
Posts: 2639
Joined: Tue Sep 14, 2004 4:17 pm
Location: Aberdeen, Wa

Re: Microsquirt-IO box

Post by nathaninwa »

No kiddin! How cool is this. When I was thinking that I had all my I/O's used up, along comes this

Thankyou James, sure can make use of the analog inputs!
Volvo 940, 2jzge, MS3Pro, daily
240Z, 2JZ, MS3Pro boost control
Buelliholic
Helpful MS/Extra'er
Posts: 56
Joined: Fri Mar 29, 2013 3:49 pm
Location: Helsinki, Finland

Re: Microsquirt-IO box

Post by Buelliholic »

Very cool indeed - seems there's no limit what else CAN do! Just a curiosity, how about the previous MicroSquirt V1/V2, why doesn't work - perhaps partly only? And also why cannot be used with MicroSquirt V3 e.g. pre-3.4 alpha 8? Should not mention I've two old V1 lying here waiting for recycling on something... :mrgreen:

Nice innovation James!
jsmcortina
Site Admin
Posts: 39614
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Microsquirt-IO box

Post by jsmcortina »

The older Microsquirts could likely be made to work too, but they will need some modifications to get all of the features. From memory the key difference is the logic spark outputs on the V3. The V2 had selectable logic vs. VB921 and the V1 was VB921 only. To use these two wires as inputs, you need to mimic the logic spark wiring on the V3 - it shouldn't be difficult. Other than that, the VR conditioner circuits are a bit different, but just for wheel speed that will likely have little effect.

Regarding interfacing with MS2/Extra as the master, that's a different matter. A key part of this IO-box concept is plug-and-play "zero config". It uses 11bit CAN messages to communicate with the MS3 and is configured by the MS3. Just a few setting options in the MS3 user interface enable it.

The MS2 doesn't presently have the needed "CAN receiving" system or the vehicle speed sensors system or the generic sensors and some other parts. I'm not sure if there's room to add them either.

It would be possible to use the existing (more clunky) CAN polling infrastructure to make MS2 collect data from a remote IO-box and most of the features would work. If there's enough demand for this I can work out what the required settings are.

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".
Mario
Master MS/Extra'er
Posts: 409
Joined: Sun Jan 30, 2005 11:13 pm
Location: Monroe, Wa.
Contact:

Re: Microsquirt-IO box

Post by Mario »

This is outstanding!!! Way to go 8)
1967 Beetle My test mule
The Dub Shop
Facebook
Megasquirt for life!
Raymond_B
Super MS/Extra'er
Posts: 1398
Joined: Thu Mar 06, 2014 2:17 pm
Location: Texas
Contact:

Re: Microsquirt-IO box

Post by Raymond_B »

Your steady stream of work is very much appreciated! I am going to have to donate again :)
1995 Ford Lightning. Dart based 427 Windsor, Novi 2000, full sequential, E-85, etc. MS3X/v3.57
http://www.buildpics.org/
jsmcortina
Site Admin
Posts: 39614
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Microsquirt-IO box

Post by jsmcortina »

I posted an updated version. The only changes since 1.001 are:
New CAN TX implementation from MS2/Extra.
Serial tweaks.

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".
dontz125
Super MS/Extra'er
Posts: 4221
Joined: Mon May 11, 2009 7:14 pm
Location: York, ON
Contact:

Re: Microsquirt-IO box

Post by dontz125 »

gpioadc5 represents the digital switch inputs * 256
Just to confirm, the bit fields of CANIN1 (FLEX), 2 (IGN1), and 3 (IGN2) = 1, 2, and 4 (x 256 = 256, 512, 1024)?
Temporarily shut down - back soon!
QuadraMAP Sensor Module -- PWM-to-Stepper Controller -- Dual Coil Driver
Coming soon: OctoMAP Sensor Module
TTR Ignition Systems
jsmcortina
Site Admin
Posts: 39614
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Microsquirt-IO box

Post by jsmcortina »

If read onto an MS2 using the old Megasquirt-CAN polling, yes.

It integrates better with MS3.

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".
dontz125
Super MS/Extra'er
Posts: 4221
Joined: Mon May 11, 2009 7:14 pm
Location: York, ON
Contact:

Re: Microsquirt-IO box

Post by dontz125 »

jsmcortina wrote:It integrates better with MS3.
No doubt ... :D

I can see the speed sensor channels just getting too ugly, but can the various output pins be accessed? There are 8 Output Port 'Remote Port channels'; would it be hard to declare RPC1 = CANOUT1, etc?

Would it be possible to have a uSM version, with PA0, PT6 and PT7 added to the mix? (MS3, most likely)
Temporarily shut down - back soon!
QuadraMAP Sensor Module -- PWM-to-Stepper Controller -- Dual Coil Driver
Coming soon: OctoMAP Sensor Module
TTR Ignition Systems
jsmcortina
Site Admin
Posts: 39614
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Microsquirt-IO box

Post by jsmcortina »

Probably best to start a new topic for MS2 / IObox integration ideas. For MS3, I had a clear plan. For MS2, I've not spent a great deal of time thinking about it as so many needed subsystems are missing and unlikely to be able to be added.

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".
dontz125
Super MS/Extra'er
Posts: 4221
Joined: Mon May 11, 2009 7:14 pm
Location: York, ON
Contact:

Re: Microsquirt-IO box

Post by dontz125 »

Temporarily shut down - back soon!
QuadraMAP Sensor Module -- PWM-to-Stepper Controller -- Dual Coil Driver
Coming soon: OctoMAP Sensor Module
TTR Ignition Systems
Mario
Master MS/Extra'er
Posts: 409
Joined: Sun Jan 30, 2005 11:13 pm
Location: Monroe, Wa.
Contact:

Re: Microsquirt-IO box

Post by Mario »

Just to make sure, if I put a bias resistor in the harness, I can use the other available 0-5 volt inputs for GM temp senders if I select GM Calibration as the transformation in the generic sensor calibration page?
1967 Beetle My test mule
The Dub Shop
Facebook
Megasquirt for life!
jsmcortina
Site Admin
Posts: 39614
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Microsquirt-IO box

Post by jsmcortina »

Mario wrote:Just to make sure, if I put a bias resistor in the harness, I can use the other available 0-5 volt inputs for GM temp senders if I select GM Calibration as the transformation in the generic sensor calibration page?
Yes you can. 2.49k is the value required.

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".
Mario
Master MS/Extra'er
Posts: 409
Joined: Sun Jan 30, 2005 11:13 pm
Location: Monroe, Wa.
Contact:

Re: Microsquirt-IO box

Post by Mario »

jsmcortina wrote:
Mario wrote:Just to make sure, if I put a bias resistor in the harness, I can use the other available 0-5 volt inputs for GM temp senders if I select GM Calibration as the transformation in the generic sensor calibration page?
Yes you can. 2.49k is the value required.
That's what I though, just wanted to confirm before I got overly excited about it :mrgreen:
1967 Beetle My test mule
The Dub Shop
Facebook
Megasquirt for life!
acab
Experienced MS/Extra'er
Posts: 243
Joined: Tue Aug 21, 2012 5:52 am

Re: Microsquirt-IO box

Post by acab »

its possible work with ms2 or without any ms?
jsmcortina
Site Admin
Posts: 39614
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Microsquirt-IO box

Post by jsmcortina »

acab wrote:its possible work with ms2 or without any ms?
See the included manual.
With MS2 you can use "Megasquirt CAN" to fetch the ADC inputs.

For 3rd party devices, if you implement the 11bit CAN protocol that is documented you can talk to it.

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".
sfrederick
Helpful MS/Extra'er
Posts: 35
Joined: Wed Apr 18, 2012 6:35 pm

Re: Microsquirt-IO box

Post by sfrederick »

jsmcortina wrote:
acab wrote:its possible work with ms2 or without any ms?
See the included manual.
With MS2 you can use "Megasquirt CAN" to fetch the ADC inputs.

For 3rd party devices, if you implement the 11bit CAN protocol that is documented you can talk to it.

James
Hey James I know this is an old thread but would this be able to get info from another EMS? And would it be able to display to say a shadow dash?

Thank You
jsmcortina
Site Admin
Posts: 39614
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Microsquirt-IO box

Post by jsmcortina »

sfrederick wrote:Hey James I know this is an old thread but would this be able to get info from another EMS? And would it be able to display to say a shadow dash?

Thank You
That's a totally different type of function unrelated to the purpose of the Io-Box.

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".
Post Reply