Notices
ECU Flash

Meth Failsafe and Patches

Thread Tools
 
Search this Thread
 
Old Jan 1, 2008, 09:49 PM
  #166  
EvoM Guru
Thread Starter
iTrader: (6)
 
tephra's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 9,486
Received 66 Likes on 42 Posts
yes exactly, also it will only switch to the safe map if it was on the aggressive map by-way of the 4.7v+ beforehand.

I haven't thought too much about the logic, and there is probably a hole in there someplace

no worries MrFred, the change from 9417xxxx is quite complex anyways due to the extra 4 maps... I need to triple check everything

edit - in fact I should have gone from 88580014(myrom) to 88590015... would have been easier, duh!!! /smacks self!

Last edited by tephra; Jan 1, 2008 at 10:09 PM.
Old Jan 1, 2008, 10:19 PM
  #167  
EvoM Guru
Thread Starter
iTrader: (6)
 
tephra's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 9,486
Received 66 Likes on 42 Posts
ok something in the logic might be a problem.

when going from aggresive -> safe, I do a check to ensure the previous ADC value was 4.7v+.

Is there any chance that the methbox will transmit a value in between 4.7v and 0v?

ie if my code sees:
5v.... 5v.... 5v.... 4.2v... 3v.... 0v... 0v... 0v...

Then it will stay on aggressive...

This may seem counter-intuitive, but if I go straight to safe when I see 0v then that will break nonMeth+ICS equipped evo's...
Old Jan 2, 2008, 01:26 AM
  #168  
Former Sponsor
iTrader: (5)
 
Richard L's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 2,236
Likes: 0
Received 0 Likes on 0 Posts
It is quite simple to generate a 5-0V decay on a failsafe output.

Adding a small hysteresis would be nice between switch voltage points.

aggressive map >2.5V
safe Map <2.5V
Hysteresis ~1V would be nice to start with.

Last edited by Richard L; Jan 2, 2008 at 01:29 AM.
Old Jan 2, 2008, 05:11 AM
  #169  
EvoM Guru
Thread Starter
iTrader: (6)
 
tephra's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 9,486
Received 66 Likes on 42 Posts
well I don't want a decay because that will break the code

Can you explain the Hysteresis more? I know what it means, but not in your context!

Cheers
D.
Old Jan 2, 2008, 05:41 AM
  #170  
Evolved Member
 
jcsbanks's Avatar
 
Join Date: May 2006
Location: UK
Posts: 2,399
Likes: 0
Received 5 Likes on 4 Posts
I know you know this tephra, but the ECU has some ready made code in the TPS hysteresis IC spray control in auto mode. Of course voltage hysteresis is no good for debouncing.

Are we not better using a digital input for switching and analog one for scaling?
Old Jan 2, 2008, 06:08 AM
  #171  
EvoM Guru
Thread Starter
iTrader: (6)
 
tephra's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 9,486
Received 66 Likes on 42 Posts
mmm, i can add in debounce logic pretty easy, just a combo of counters and nested if's :P

re two inputs, i was thinking about this today, 1 cable is less wiring and we can use the extents (0v and 5v) as off/on - digital switching.
Old Jan 2, 2008, 06:32 AM
  #172  
Evolved Member
 
jcsbanks's Avatar
 
Join Date: May 2006
Location: UK
Posts: 2,399
Likes: 0
Received 5 Likes on 4 Posts
Analog inputs are scarce, best read with interrupts disabled, susceptible to noise, don't always read 0 or 255/1023 etc when fed 0 or 5V because of analog grounds and Vcc etc. Digital inputs require less processing overhead, have the option of being interrupt driven, often have built in Schmitt triggers etc. If we don't have or can't find a digital input then we don't have the option, but if we can use one and leave the analog one for sensors that require it I think it would work out better all round.

Last edited by jcsbanks; Jan 2, 2008 at 06:35 AM.
Old Jan 2, 2008, 06:41 AM
  #173  
Former Sponsor
iTrader: (5)
 
Richard L's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 2,236
Likes: 0
Received 0 Likes on 0 Posts
Deboucing circuitry many not be as necessary if you have two quite well defined voltages. Debouncing is more important for toggle/flipflop single hit switching.

As far as we are trying to achieve now is a reliable transition switch between the two maps. We can almost leave the analogue part out.

Having a switch point of 2.5v with a certain amount of hysteresis will ensure a one-shot cross-over point.

Having a dead band of 1V well allow 0-5V positive transition, system treat it as "1" when it crossover the 2.5V. It has a noise immunity of 0.99V during the transition. I am just trying to terat the ADC as a Digital input for the timing being.

Reserve the ADC capability for the future to perform, perhaps close-loop fuel/alcohol ratio control.
Old Jan 2, 2008, 06:56 AM
  #174  
Former Sponsor
iTrader: (5)
 
Richard L's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 2,236
Likes: 0
Received 0 Likes on 0 Posts
tephra,

You have a full inbox. I have one more off-topic question for you please.
Old Jan 2, 2008, 02:40 PM
  #175  
Evolved Member
iTrader: (17)
 
Jack_of_Trades's Avatar
 
Join Date: Jun 2007
Location: Opelika,AL
Posts: 3,523
Likes: 0
Received 2 Likes on 1 Post
Ok, just got in from work. Trying to catch up on all the transitioning talk,lol. So Tephra, with the ROM you emailed me, it will only switch properly if it see's an instant voltage difference of 5V? I'll see what I can test tonight but its dark and the temps are dipping into the single digits already :burr:

I got the first set of pins I ordered and they are definitely for the larger of the 2 pins. I should have the correct size in a few days. For now I may just steal a few of the ICS wires for testing.
Old Jan 2, 2008, 04:25 PM
  #176  
EvoM Guru
Thread Starter
iTrader: (6)
 
tephra's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 9,486
Received 66 Likes on 42 Posts
Richard - fixed.

JoT - yup basically

John - I see your point, I will leave it upto the group to decide - Hijack the AutoICS digital input OR continue to use the ADC.
Old Jan 2, 2008, 04:30 PM
  #177  
Evolved Member
iTrader: (17)
 
Jack_of_Trades's Avatar
 
Join Date: Jun 2007
Location: Opelika,AL
Posts: 3,523
Likes: 0
Received 2 Likes on 1 Post
Originally Posted by tephra
John - I see your point, I will leave it upto the group to decide - Hijack the AutoICS digital input OR continue to use the ADC.
Since I have no idea what the true differences are to these options, I'll leave it up to you guys to explain at some point,lol. I just finished swapping over my ROM info so I can possibly load it tonight.
Old Jan 2, 2008, 05:14 PM
  #178  
Former Sponsor
iTrader: (5)
 
Richard L's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 2,236
Likes: 0
Received 0 Likes on 0 Posts
Jamie,

I think we are try to emulate the ADC input as a digital input for the time being until one day it can be used as a true Analogue input for close loop control such as duel fuel E85/normal gas etc.

I am sorry it is getting so cold for you to do the work.
Old Jan 2, 2008, 05:55 PM
  #179  
Evolved Member
iTrader: (55)
 
Evoryder's Avatar
 
Join Date: Apr 2004
Location: ☼ Florida ☼
Posts: 7,383
Likes: 0
Received 10 Likes on 10 Posts
Originally Posted by Jack_of_Trades
Since I have no idea what the true differences are to these options, I'll leave it up to you guys to explain at some point,lol. I just finished swapping over my ROM info so I can possibly load it tonight.
are you going to be using the pin#42 that you found and tested..or we sticking with one of the ICS pins?
Old Jan 2, 2008, 06:09 PM
  #180  
EvoM Guru
Thread Starter
iTrader: (6)
 
tephra's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 9,486
Received 66 Likes on 42 Posts
thats the option yes, however if we are to use the ICS pins for meth failsafe then the code will need to be changed and this will conflict with current ICS altmap users...


Quick Reply: Meth Failsafe and Patches



All times are GMT -7. The time now is 07:47 AM.