Notices
944 Turbo and Turbo-S Forum 1982-1991
Sponsored by:
Sponsored by: Clore Automotive

Rogue Tuning: DME Logger!

Thread Tools
 
Search this Thread
 
Old 10-27-2020, 09:34 PM
  #166  
markl951
Instructor
 
markl951's Avatar
 
Join Date: Dec 2006
Location: Seattle, WA
Posts: 188
Received 7 Likes on 7 Posts
Default

Originally Posted by PorscheFanatic202
So I checked the grounds and it was only causing a 0.2 AFR error. So it isn't a grounding issue and it points to a software issue. My idle AFR sits between 14.5 and 15.0 per the autometer gauge, but TunerPro RT reads 16.5 AFR. I know there is probably a scaling issue between what voltage my gauge is sending to the DME and the conversion in the datastream file.
Pretty much the same thing I was seeing. Not my preference for the long term but for now I'm powering the WBO2 from the same +12V that sources the DME power, both power and ground wires so I have no ground offset voltage between the two. I still saw the same AFR difference.

I thought it would be easy to just customize the .adx file for my situation but they are password protected. That forced me to modify the MTXL's output voltage curve instead. I'd still like to figure this out someday. Just haven't had the time.
Old 10-27-2020, 09:48 PM
  #167  
PorscheFanatic202
Pro
 
PorscheFanatic202's Avatar
 
Join Date: Jan 2013
Location: Napa, CA
Posts: 547
Received 9 Likes on 3 Posts
Default

Originally Posted by markl951
That forced me to modify the MTXL's output voltage curve instead. I'd still like to figure this out someday. Just haven't had the time.
I don't think I have the option to modify the output voltage of the autometer. I went with the analog needle gauge for a more classic look.

I figure I can wire up and program an arduino to scale the voltage to my needs, but I don't know how they scaled it exactly. I know they are looking for 0-5V in, but I don't know what that correlates to on the AFR side. Mine should be 10-18 AFR, but who knows if they scaled theirs to like 6-20 AFR or something?




https://www.autometer.com/2-1-16-ana...B&gclsrc=aw.ds

Last edited by PorscheFanatic202; 10-27-2020 at 09:53 PM.
Old 10-27-2020, 10:18 PM
  #168  
markl951
Instructor
 
markl951's Avatar
 
Join Date: Dec 2006
Location: Seattle, WA
Posts: 188
Received 7 Likes on 7 Posts
Default

Originally Posted by PorscheFanatic202
I don't think I have the option to modify the output voltage of the autometer. I went with the analog needle gauge for a more classic look.

I figure I can wire up and program an arduino to scale the voltage to my needs, but I don't know how they scaled it exactly. I know they are looking for 0-5V in, but I don't know what that correlates to on the AFR side. Mine should be 10-18 AFR, but who knows if they scaled theirs to like 6-20 AFR or something?
You don't want to change the scaling you need to adjust the offset. If you're using the autometer datastream then the DME Logger/TunerPro is expecting the 0-4V input. This is from the Autometer datasheet. Volts = 0.5 (AFR - 10) or AFR = 2 (Volts) + 10. You want your Arduino to read in the analog voltage, calculate the AFR, offset that AFR to what you think it should really be (should be a constant offset across the range) and then recompute a new voltage based on that. Send that new voltage out to the DME logger. Sounds to me like you need to lower the voltage a bit in order to trick it into reporting the right AFR. A simple resistor divider might do just the same.
Old 10-27-2020, 10:48 PM
  #169  
PorscheFanatic202
Pro
 
PorscheFanatic202's Avatar
 
Join Date: Jan 2013
Location: Napa, CA
Posts: 547
Received 9 Likes on 3 Posts
Default

Originally Posted by markl951
You don't want to change the scaling you need to adjust the offset. If you're using the autometer datastream then the DME Logger/TunerPro is expecting the 0-4V input. This is from the Autometer datasheet. Volts = 0.5 (AFR - 10) or AFR = 2 (Volts) + 10. You want your Arduino to read in the analog voltage, calculate the AFR, offset that AFR to what you think it should really be (should be a constant offset across the range) and then recompute a new voltage based on that. Send that new voltage out to the DME logger. Sounds to me like you need to lower the voltage a bit in order to trick it into reporting the right AFR. A simple resistor divider might do just the same.
Interesting, I thought I would have to scale it. I'll have to take some real time readings. If I can figure out a way to log the raw voltage from the gauge, I should be able to math my way through it
Old 11-01-2020, 10:07 AM
  #170  
PorscheFanatic202
Pro
 
PorscheFanatic202's Avatar
 
Join Date: Jan 2013
Location: Napa, CA
Posts: 547
Received 9 Likes on 3 Posts
Default

I ended up logging some data to see how an Arduino would work as a voltage converter. I'm pretty sure the PWM of the Arduino (500hz) is throwing off the AFRs and they aren't stable. Even though my multimeter shows a steady voltage, I am confident that the PWM is causing the errors. I tried a basic filter to smooth out the PWM, but it didn't work. For some reason the input pin for the WBO2 for logging shows a 5V potential (very weak - and would drop under a load). This made my filter useless.

I stepped the voltage up from 0 to 5V in 0.5V increments on the Arduino and output that into the WBO2 input on the DME. From there I would take the AFR readings from the log to make a conversion. The graph shows the resultant AFRs over time as I stepped them up. The AFRs vary widely and produce a lot of error (due to the PWM).

Next, I plan to try using an Arduino that has a true analog voltage output pin (not PWM). Hopefully, this will produce a different result.


Old 11-02-2020, 04:15 PM
  #171  
Tom M'Guinn

Rennlist Member
 
Tom M'Guinn's Avatar
 
Join Date: Jan 2002
Location: Just CA Now :)
Posts: 12,567
Received 535 Likes on 287 Posts
Default

FYI, you can change the frequency of the Arduino PWM.
https://www.etechnophiles.com/change...s-arduino-uno/

That and a RC filter and you should be able to get nice and smooth voltage outputs. If you need more current, you can run it through an op amp voltage follower...
http://www.learningaboutelectronics....ltage-follower
Old 11-05-2020, 11:21 AM
  #172  
PorscheFanatic202
Pro
 
PorscheFanatic202's Avatar
 
Join Date: Jan 2013
Location: Napa, CA
Posts: 547
Received 9 Likes on 3 Posts
Default

Never knew you could change the frequency of an arduino. Will be doing that next. Thanks for the op amp, i'm going to learn more about them. Good suggestions.
Old 11-08-2020, 08:26 PM
  #173  
PorscheFanatic202
Pro
 
PorscheFanatic202's Avatar
 
Join Date: Jan 2013
Location: Napa, CA
Posts: 547
Received 9 Likes on 3 Posts
Default

So the Nano with the DAC on it did pretty well. It doesn't have enough voltage "scale" on it, therefore i'll have to amplify it slightly anyway. But the data is so much smoother. Only like 0.1 AFR variances (perfectly acceptable). Based on the data it looks like the Autometer profile in Tuner Pro RT doesn't match the documentation.

Based on Autometer AFR = 2 x Volts + 10
It looks like TunerProRT is AFR = 2.5 x Volts + 10 (see below.... y = 2.555x + 10)

So a simple conversion factor of 0.8. This will greatly simplify the electronics. I should be able to make a simple voltage divider circuit followed by a buffer to scale the voltage down by a factor of 0.8 V. More to follow up when I get my Op Amps in this week.

It would be nice to simply change the code, but no replies from Lindsey Racing (even if they knew the password, I doubt they would give it out) and I won't even try Joshua since he is out of the game.

Last edited by PorscheFanatic202; 11-08-2020 at 08:28 PM.
Old 11-11-2020, 08:18 PM
  #174  
PorscheFanatic202
Pro
 
PorscheFanatic202's Avatar
 
Join Date: Jan 2013
Location: Napa, CA
Posts: 547
Received 9 Likes on 3 Posts
Default

Does anyone know why PIN 30 of the DME has a positive voltage coming out of it? It is the altitude compensator circuit. Pin 30 connects to the altitude switch, which is then connected to ground. It is causing errors in the signal being sent from my AFR gauge.
Old 11-11-2020, 10:22 PM
  #175  
Tom M'Guinn

Rennlist Member
 
Tom M'Guinn's Avatar
 
Join Date: Jan 2002
Location: Just CA Now :)
Posts: 12,567
Received 535 Likes on 287 Posts
Default

Originally Posted by PorscheFanatic202
Does anyone know why PIN 30 of the DME has a positive voltage coming out of it? It is the altitude compensator circuit. Pin 30 connects to the altitude switch, which is then connected to ground. It is causing errors in the signal being sent from my AFR gauge.

How is pin 30 causing errors in your AFR gauge?? Pin 30 has a "pull up resistor" inside the DME that brings the voltage level up to 5v (with very little current). When you head up to high altitude, the sensor closes to ground and pulls pin 30 down to ground. It's a super common electronics thing that prevents the line from just floating around and confusing the i/c comparator. This way, the DME always sees either 5v or ground (in the absence of a country code plug anyway).
Old 11-11-2020, 10:58 PM
  #176  
PorscheFanatic202
Pro
 
PorscheFanatic202's Avatar
 
Join Date: Jan 2013
Location: Napa, CA
Posts: 547
Received 9 Likes on 3 Posts
Default

Originally Posted by Tom M'Guinn
How is pin 30 causing errors in your AFR gauge?? Pin 30 has a "pull up resistor" inside the DME that brings the voltage level up to 5v (with very little current). When you head up to high altitude, the sensor closes to ground and pulls pin 30 down to ground. It's a super common electronics thing that prevents the line from just floating around and confusing the i/c comparator. This way, the DME always sees either 5v or ground (in the absence of a country code plug anyway).
It's not causing errors in my aftermarket gauge. I believe it is causing an error in the logger. This pic shows the circuitry I have set up. I'm thinking that pull up resistor is causing an error.

Old 11-11-2020, 11:03 PM
  #177  
PorscheFanatic202
Pro
 
PorscheFanatic202's Avatar
 
Join Date: Jan 2013
Location: Napa, CA
Posts: 547
Received 9 Likes on 3 Posts
Default

I was just thinking. In the instructions from Rogue, he has us cut a resistor on the board. Is that the pull-up resistor that we cut? I just sent my ECU to Focus 9 to be redone, perhaps that resistor was reinstalled (except now in a surface mount form).
Old 11-11-2020, 11:21 PM
  #178  
Tom M'Guinn

Rennlist Member
 
Tom M'Guinn's Avatar
 
Join Date: Jan 2002
Location: Just CA Now :)
Posts: 12,567
Received 535 Likes on 287 Posts
Default

Ah, does the Rogue system use pin 30 as a data logger input?

The pull up is a precision 1k ohm labelled R661 according to the old FRWilk DME schematic. You'd want to confirm that in the DME (I haven't). What issue are you experiencing? Hard to believe Josh would have used pin 30 as a logger without addressing the pull up. I don't know enough about the Rogue system to tell you if it needs that pull up for anything. If not, clipping it seems fairly harmless if you are no longer using the altitude sensor.
Old 11-11-2020, 11:23 PM
  #179  
Tom M'Guinn

Rennlist Member
 
Tom M'Guinn's Avatar
 
Join Date: Jan 2002
Location: Just CA Now :)
Posts: 12,567
Received 535 Likes on 287 Posts
Default

Originally Posted by PorscheFanatic202
I was just thinking. In the instructions from Rogue, he has us cut a resistor on the board. Is that the pull-up resistor that we cut? I just sent my ECU to Focus 9 to be redone, perhaps that resistor was reinstalled (except now in a surface mount form).
I can confirm in the morning but, off the cuff, I thought the resistor that gets clipped is on pin 28, which is repurposed for the MAP sensor.
Old 11-11-2020, 11:53 PM
  #180  
PorscheFanatic202
Pro
 
PorscheFanatic202's Avatar
 
Join Date: Jan 2013
Location: Napa, CA
Posts: 547
Received 9 Likes on 3 Posts
Default

You are correct... It is for the MAP not pin 30. Are you willing to share that schematic? I have been looking for that. On a different note, I just saw that Focus 9 is now beta testing his OBD2. I may support that instead of going further down this rabbit hole.


Quick Reply: Rogue Tuning: DME Logger!



All times are GMT -3. The time now is 06:41 AM.