Results 1 to 10 of 10

Thread: Calc PID's for AD Input

  1. #1
    Junior Member
    Join Date
    Feb 2009
    Posts
    15

    Default Calc PID's for AD Input

    How do I write these? I have seen others figure this out, and EFILive made one for me, but how do I do this myself?

    I have some Aeroforce transmitters that read from 0-150 psi, and 0.5-4.5 VDC output.

    How do I make a Calc-PID statement for these to read correctly when I input them into the analog inputs on a V2?

    FWIW, the Aeroforce folks say to configure their gauge with an intercept of 37.5, and a slope of -18.7.

    I am not looking for the metric units on this, just the imperial.
    Black Max....

    '03 2500 4x4 CC/LB; HTT SS-66/16/71, EFILive DSP-5 & tunes by McRat , II Mod CP3, PPE Lift Pump;
    RDL Uppies, Banks Intake, Exhaust;
    ATS Stage 3 w/CoPilot , by Top Jimmy Performance, Mike L Cooler;
    AeroForce Dualscan Gauges.

  2. #2
    Lifetime Member mr.prick's Avatar
    Join Date
    Nov 2006
    Posts
    3,195

    Default

    (Volts*Slope)+Intercept
    512k RoadRunner Firmware 12.14R
    FlashScan V2 Bootblock V2.07.04 Firmware V2.07.22 EFILive V7.5.7 (Build 191) V8.2.1 (Build 181)
    LC-1 WBO2

    _________________________________________________

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

    Default

    What mr.prick said...

    1: 0.5V = 0 psi = 0 kPa

    2: 4.5V = 150 psi = 1034.2 kPa

    Imperial:
    slope = (p2 - p1)/(v2 - v1) = (150 - 0)/(4.5 - 0.5) = 37.5
    intercept = p1- v1*slope = 0 - 0.5*37.5 = -18.75
    so p = slope*v + intercept = 37.5*v - 18.75

    Metric:
    slope = (p2 - p1)/(v2- v1) = (1034.2 - 0)/(4.5 - 0.5) = 258.6
    intercept = p1 - v1*slope = 0 - 0.5*258.6 = -129.3
    so p = slope*v + intercept = 258.6*v - 129.3

    See attached calc_pids.txt, copy it to My Documents\EFILive\V7.5\User Configuration.

    When you select this pid on the pids tab, do rightclick->Imperial for psi.
    Attached Files Attached Files

  4. #4
    Lifetime Member mr.prick's Avatar
    Join Date
    Nov 2006
    Posts
    3,195

    Default

    Great service as always Joe.
    Coincidentally, I made a spreadsheet for WBO2 expressions a few days ago.
    Attached Files Attached Files
    Last edited by mr.prick; January 30th, 2010 at 11:56 AM.
    512k RoadRunner Firmware 12.14R
    FlashScan V2 Bootblock V2.07.04 Firmware V2.07.22 EFILive V7.5.7 (Build 191) V8.2.1 (Build 181)
    LC-1 WBO2

    _________________________________________________

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

    Default

    Handy spreadsheet...

  6. #6
    Junior Member
    Join Date
    Feb 2009
    Posts
    15

    Default

    Thanx Guys....

    Merry Christmas
    Black Max....

    '03 2500 4x4 CC/LB; HTT SS-66/16/71, EFILive DSP-5 & tunes by McRat , II Mod CP3, PPE Lift Pump;
    RDL Uppies, Banks Intake, Exhaust;
    ATS Stage 3 w/CoPilot , by Top Jimmy Performance, Mike L Cooler;
    AeroForce Dualscan Gauges.

  7. #7
    Lifetime Member mr.prick's Avatar
    Join Date
    Nov 2006
    Posts
    3,195

    Default

    I updated the spreadsheet to compare AFR/Lambda PID expression to {B3601}.
    Attached Files Attached Files
    Last edited by mr.prick; March 2nd, 2010 at 10:33 PM.
    512k RoadRunner Firmware 12.14R
    FlashScan V2 Bootblock V2.07.04 Firmware V2.07.22 EFILive V7.5.7 (Build 191) V8.2.1 (Build 181)
    LC-1 WBO2

    _________________________________________________

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

    Default

    Thanks for the update...

    My only comment is: now you divide instead of multiplying to arrive at the AFR (just like HPT do)...?


  9. #9
    Lifetime Member mr.prick's Avatar
    Join Date
    Nov 2006
    Posts
    3,195

    Default

    There are 2 pages.
    I saved it with the HPT side open so when it opens that is what you see and
    it was the first version too.
    It's fixed now.
    512k RoadRunner Firmware 12.14R
    FlashScan V2 Bootblock V2.07.04 Firmware V2.07.22 EFILive V7.5.7 (Build 191) V8.2.1 (Build 181)
    LC-1 WBO2

    _________________________________________________

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

    Default

    Ah, I see... (or rather I missed the tabs/pages ).

Similar Threads

  1. Analog input / CALC-PID
    By AWL INN in forum General (Petrol, Gas, Ethanol)
    Replies: 8
    Last Post: July 3rd, 2008, 06:49 AM
  2. V2 and 12v input
    By kbracing96 in forum General
    Replies: 14
    Last Post: December 7th, 2006, 05:38 PM
  3. Calc PID for FJO AFR Input
    By heavyfoot in forum General
    Replies: 1
    Last Post: June 29th, 2006, 02:05 PM
  4. BAD PCM input?
    By Jdperk-86elco in forum General (Petrol, Gas, Ethanol)
    Replies: 2
    Last Post: May 2nd, 2006, 03:13 PM
  5. FJO Calc PID
    By bink in forum General (Petrol, Gas, Ethanol)
    Replies: 3
    Last Post: July 4th, 2005, 03:45 PM

Posting Permissions

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