Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Need guidance with custom pid

  1. #1
    Member
    Join Date
    Mar 2007
    Posts
    93

    Default Need guidance with custom pid

    I have never had good results with logging EGTs. So I decided to scrap the old approach. I bought an AEM 30-5131 gage. It out puts a 5v signal that can be easily logged with external inputs on the V2. So far it is working great! My question is how do I write a custom pid to change the volts to Degrees F on my dash?
    The scale is 0* = .5v and 1800* = 4.5v.

    More info here. http://aemelectronics.com/files/inst...AE%20Gauge.pdf

    Thanks

  2. #2
    Lifetime Member 5.7ute's Avatar
    Join Date
    Oct 2006
    Posts
    1,840

    Default

    Should be simple since it is a linear output.
    ( EXT.ADn-0.5)*450
    Last edited by 5.7ute; June 5th, 2014 at 03:55 PM. Reason: wrong way round in expression.
    The Tremor at AIR

  3. #3
    Lifetime Member darcy's Avatar
    Join Date
    Feb 2012
    Posts
    223

    Default

    See page 5 of the manual that you've posted for the formulae.

    For Temp in F* : {EXT.AD1} * 450 -225
    For Temp in C* : {EXT.AD1} * 250 -143

  4. #4
    Member
    Join Date
    Mar 2007
    Posts
    93

    Default

    Thanks guys!

    It was right there in front of me. LOL

  5. #5
    Joe (Moderator) joecar's Avatar
    Join Date
    Apr 2003
    Posts
    28,403

    Default

    You should be able to modify your current pid (with the above formulae) so that the one pid produces both *C and *F.

  6. #6
    Member
    Join Date
    Mar 2007
    Posts
    93

    Default

    I have not had a chance to alter the pid yet. Just referencing the voltage to the chart. Working great. To pulls with flawless EGT monitoring!
    Very please with the AEM hardware so far.

  7. #7
    Member
    Join Date
    Mar 2007
    Posts
    93

    Default

    OK not having much luck with creating the pid

    I keep getting error
    Error code: ERR_DUPLICATE/109

    Duplicate *UNITS: F.

    What am missing?

    # ================================================== ============================
    # File details
    # ------------
    #
    # This section defines various details about the file format.

    *FILE

    #Parameter Value Description
    #---------- ---------------- ---------------------------------------------------
    VERSION 7.1.1 File version
    DECSEP . Decimal separator used in this file



    # ================================================== ============================
    # Units
    # -------------------
    # See sae_generic.txt for more information on the *UNITS section

    *UNITS

    #Code System Abbr Description
    #-------- ---------- -------- -------------------------------------------------------------
    F Imperial °F "Degrees Fahrenheit"



    # ================================================== ============================
    # Add slot definitions here
    # --------------------------------
    # See sae_generic.txt for more information on "SLOT" formats
    #
    #Units Low High Fmt Expression
    #------------ ------------- ------------- ---- --------------------------------------------------------------
    *CLC-00-002
    F 0 1800 .1 "{EXT.AD1} * 450 -225"


    # ================================================== ============================
    *PRN - Parameter Reference Numbers
    # --------------------------------
    # See sae_generic.txt for more information on the *PRN section
    #
    #Code PRN SLOT Units System Description
    #------------------------- ---- ------------ ---------------- ---------------- ------------------------------------
    ------

    CALC.AEM_EGT F066 CLC-00-002 °F Temperature "AEM EGT"






  8. #8
    Member
    Join Date
    Mar 2007
    Posts
    93

    Default

    Click image for larger version. 

Name:	AEM EGT.jpg 
Views:	297 
Size:	187.7 KB 
ID:	16962

  9. #9
    Lifetime Member darcy's Avatar
    Join Date
    Feb 2012
    Posts
    223

    Default

    Try putting the °F in inverted commas in both locations. ie "°F"

  10. #10
    Joe (Moderator) joecar's Avatar
    Join Date
    Apr 2003
    Posts
    28,403

    Default

    °F units already exist (as F), so delete your definition of it.

Page 1 of 2 12 LastLast

Similar Threads

  1. Custom pid for scanner.
    By J.Abbott in forum Petrol / Gas
    Replies: 4
    Last Post: March 14th, 2013, 12:50 PM
  2. How do you make a custom PID???
    By WiseGuyZ06 in forum General (Petrol, Gas, Ethanol)
    Replies: 2
    Last Post: October 10th, 2007, 11:20 AM
  3. Custom PID: What functions can you use?
    By 2002_z28_six_speed in forum General
    Replies: 2
    Last Post: September 3rd, 2007, 06:05 PM
  4. Why LM-1 Custom PID???????
    By 2002_z28_six_speed in forum General
    Replies: 3
    Last Post: June 4th, 2007, 12:52 AM
  5. Anyone made a custom mpg (or km/L) PID?
    By thunder550 in forum General
    Replies: 3
    Last Post: May 17th, 2006, 04:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •