AFR Safety Settings - Polarity?
Moderators: jsmcortina, muythaibxr
-
- Super MS/Extra'er
- Posts: 875
- Joined: Wed Dec 05, 2007 1:40 pm
- Location: San Diego, CA
- Contact:
AFR Safety Settings - Polarity?
I didn't see a way to alter the polarity on the AFR safety outputs. Since the spark outputs are low current, I put in an NPN buffer (before I knew what I was going to use them for), and now AFR warning (AWESOME feature, btw) lights my light when things are ok and turns it off when they are not.
I propose that be added as an option - though if I just missed it, er, where is it?
I propose that be added as an option - though if I just missed it, er, where is it?
2000 VVT Miata turbo, MS3Pro
Contact me if interested in a MS-II 2nd gen NB Miata PnP board.
Contact me if interested in a MS-II 2nd gen NB Miata PnP board.
-
- Super MS/Extra'er
- Posts: 6828
- Joined: Sun May 15, 2011 11:41 am
- Location: Walnut Creek, Calif. USA
Re: AFR Safety Settings - Polarity?
I guess I'm confused... it looks to me like the existing AFR Safety can kill either the fuel or spark, or both. What else are you looking for?
-
- Super MS/Extra'er
- Posts: 875
- Joined: Wed Dec 05, 2007 1:40 pm
- Location: San Diego, CA
- Contact:
Re: AFR Safety Settings - Polarity?
Ah! I should have been more clean - I just mean the indicator light!
I'm not actually using it as a safety right now so much as a better way to keep an eye on things. A gauge is too much to look at, constantly having to check boost and rpm to know what you're supposed to be at. I suppose an IDEAL output would be an AFR-error gauge (add it to the list - AFR-error, FuelPressure-error, VVT-error, etc etc)...
But the light is just fine, I can set it to be what I want... The only issue, as mentioned, is that it turns off instead of on when I want it the other way around - to light up when there's a situation and to just leave me alone the rest of the time.
I'm not actually using it as a safety right now so much as a better way to keep an eye on things. A gauge is too much to look at, constantly having to check boost and rpm to know what you're supposed to be at. I suppose an IDEAL output would be an AFR-error gauge (add it to the list - AFR-error, FuelPressure-error, VVT-error, etc etc)...
But the light is just fine, I can set it to be what I want... The only issue, as mentioned, is that it turns off instead of on when I want it the other way around - to light up when there's a situation and to just leave me alone the rest of the time.
2000 VVT Miata turbo, MS3Pro
Contact me if interested in a MS-II 2nd gen NB Miata PnP board.
Contact me if interested in a MS-II 2nd gen NB Miata PnP board.
-
- Site Admin
- Posts: 39617
- Joined: Mon May 03, 2004 1:34 am
- Location: Birmingham, UK
- Contact:
Re: AFR Safety Settings - Polarity?
It should already be doing what you are asking - lighting if there's a problem.
MSQ ?
James
MSQ ?
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".
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".
-
- Super MS/Extra'er
- Posts: 875
- Joined: Wed Dec 05, 2007 1:40 pm
- Location: San Diego, CA
- Contact:
Re: AFR Safety Settings - Polarity?
Er, I have it turned off right now - but it behaves as you'd expect - it agrees with the "AFR WARNING" indicator in TS.
But the light is on when off and off when on. It's the same circuit I use for lighting up when there is knock retard, but there I can select polarity. I can re-set-up AFR warning if you'd like.
-Abe.
But the light is on when off and off when on. It's the same circuit I use for lighting up when there is knock retard, but there I can select polarity. I can re-set-up AFR warning if you'd like.
-Abe.
2000 VVT Miata turbo, MS3Pro
Contact me if interested in a MS-II 2nd gen NB Miata PnP board.
Contact me if interested in a MS-II 2nd gen NB Miata PnP board.
-
- Site Admin
- Posts: 39617
- Joined: Mon May 03, 2004 1:34 am
- Location: Birmingham, UK
- Contact:
Re: AFR Safety Settings - Polarity?
I can only assume that you have a wiring error. I just tested on the stim using Spk H and it behaves exactly as it should. When the AFR safety kicks in, the pin puts out 5V and lights up the LED.
James
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".
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".
-
- Super MS/Extra'er
- Posts: 875
- Joined: Wed Dec 05, 2007 1:40 pm
- Location: San Diego, CA
- Contact:
Re: AFR Safety Settings - Polarity?
That's exactly what I'm saying. It would be nice to have the ability to alter it in software. Mine isn't wired "wrong" it's just wired - in this case, active low.
I used an NPN because the outputs were not rates for the kinda currents a large LED or any regular light would take, so I put a buffer in there.
I'm not trying to make anyone defensive, I'm requesting a feature which I think would be useful in general - when you have a low power output, you don't run big bright lights off of it. The other generic outputs recognize this, but not this one, I'm asking if it could be brought inline with the other outputs.
-Abe.
I used an NPN because the outputs were not rates for the kinda currents a large LED or any regular light would take, so I put a buffer in there.
I'm not trying to make anyone defensive, I'm requesting a feature which I think would be useful in general - when you have a low power output, you don't run big bright lights off of it. The other generic outputs recognize this, but not this one, I'm asking if it could be brought inline with the other outputs.
-Abe.
2000 VVT Miata turbo, MS3Pro
Contact me if interested in a MS-II 2nd gen NB Miata PnP board.
Contact me if interested in a MS-II 2nd gen NB Miata PnP board.
-
- Super MS/Extra'er
- Posts: 6828
- Joined: Sun May 15, 2011 11:41 am
- Location: Walnut Creek, Calif. USA
Re: AFR Safety Settings - Polarity?
So, why can't the warning light be wired the other way? If it already has a supply voltage to it, and you are looking for an open-collector type ground to turn the light on, just changing polarity of the MS output may not work. I don't know that specific circuit, but it may not be pulling to a hard ground when low, it may be floating; and it certainly doesn't sound like it is open-circuit when "high", it is connecting to the +5V supply.
-
- Super MS/Extra'er
- Posts: 875
- Joined: Wed Dec 05, 2007 1:40 pm
- Location: San Diego, CA
- Contact:
Re: AFR Safety Settings - Polarity?
It's wired to use the stock lights from the original car - i.e. npn to ground, being fed with +12V. Some of them are LED retrofits, some are the OEM incandescent lights. I can always put a SECOND transistor in there to invert the signal again, but it's a lot more work than checking a "polarity" box in software - especially since I have all my left over sparks set up that way. As "generic outputs" I can set them that way. Perhaps I can set up a generic output that turns on when AFR warning is off. Is there a status bit I could watch for this?
As far as keeping it from taking actions (warning only) mode) burring protection - I just set:
"kill sparks" for 0 sec
TPS below 110%
MAP below 400
RPM below 9000
All of which are the extreme values allowed - the 9k is technically something I could be over but I wasn't that worried. Still, a "indicator only" mode would be nice for daily driving just to see how the tune is behaving, and "Warning output inverted" would also be awesome!
As far as keeping it from taking actions (warning only) mode) burring protection - I just set:
"kill sparks" for 0 sec
TPS below 110%
MAP below 400
RPM below 9000
All of which are the extreme values allowed - the 9k is technically something I could be over but I wasn't that worried. Still, a "indicator only" mode would be nice for daily driving just to see how the tune is behaving, and "Warning output inverted" would also be awesome!
2000 VVT Miata turbo, MS3Pro
Contact me if interested in a MS-II 2nd gen NB Miata PnP board.
Contact me if interested in a MS-II 2nd gen NB Miata PnP board.
-
- Site Admin
- Posts: 39617
- Joined: Mon May 03, 2004 1:34 am
- Location: Birmingham, UK
- Contact:
Re: AFR Safety Settings - Polarity?
You are going to have to post a circuit diagram of your circuit to explain how it doesn't work.
The AFR safety system puts 5V on the spark pins when it is active. (i.e. it already does what you are asking for.)
As a warning only mode, you could configure an On/off output based on the value of "AFR1 error".
James
The AFR safety system puts 5V on the spark pins when it is active. (i.e. it already does what you are asking for.)
As a warning only mode, you could configure an On/off output based on the value of "AFR1 error".
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".
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".
-
- Super MS/Extra'er
- Posts: 875
- Joined: Wed Dec 05, 2007 1:40 pm
- Location: San Diego, CA
- Contact:
Re: AFR Safety Settings - Polarity?
Ah, awesome, thanks!! "AFR1 error" will work only when AFR-safety is enabled? Does it use the same AFR difference table?
As to the circuit, it's inverting - I was just hoping to be able to SET to polarity in software. Thank you.
-Abe.
As to the circuit, it's inverting - I was just hoping to be able to SET to polarity in software. Thank you.
-Abe.
2000 VVT Miata turbo, MS3Pro
Contact me if interested in a MS-II 2nd gen NB Miata PnP board.
Contact me if interested in a MS-II 2nd gen NB Miata PnP board.
-
- Site Admin
- Posts: 39617
- Joined: Mon May 03, 2004 1:34 am
- Location: Birmingham, UK
- Contact:
Re: AFR Safety Settings - Polarity?
Actually, scrub that. I just checked and then found that "AFR error" is a calculated field in TunerStudio (ini file) so you can't use it for the on/off outputs. (Currently!)
I can't help with your circuit if you keep it secret.
James
I can't help with your circuit if you keep it secret.
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".
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".
-
- Super MS/Extra'er
- Posts: 875
- Joined: Wed Dec 05, 2007 1:40 pm
- Location: San Diego, CA
- Contact:
Re: AFR Safety Settings - Polarity?
Too bad about the variable, that would be excellent!
The circuit is just a standard NPN inverting circuit, to find out I'd have to pull my dash apart.
That's the best I can do right now, but I think I took it out and tweaked it since. Currently I'm using one for Low Battery, and another for Knock Retard > 1 degree or something. Power On Value "ON", Active Value "Off".
I'm not confused on the circuit, it's just not how I built them.
The circuit is just a standard NPN inverting circuit, to find out I'd have to pull my dash apart.
That's the best I can do right now, but I think I took it out and tweaked it since. Currently I'm using one for Low Battery, and another for Knock Retard > 1 degree or something. Power On Value "ON", Active Value "Off".
I'm not confused on the circuit, it's just not how I built them.
2000 VVT Miata turbo, MS3Pro
Contact me if interested in a MS-II 2nd gen NB Miata PnP board.
Contact me if interested in a MS-II 2nd gen NB Miata PnP board.
-
- Site Admin
- Posts: 39617
- Joined: Mon May 03, 2004 1:34 am
- Location: Birmingham, UK
- Contact:
Re: AFR Safety Settings - Polarity?
The LED driver transistors are "inverting" but successfully light the LEDs when the CPU outputs 5V.
James
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".
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".