Results 1 to 4 of 4

Thread: AFR calculator program

  1. #1

    AFR calculator program

    Hey watssup

    As an assignment for my java programming class.. I did a program that calculated AFR with the formula that monochrome stated.

    NMAFR = DAFR * MAFR / AAFR

    To calculate AFR value for your tune. Just one single AFR value at a time. You could do this in excel as well.. is a fairly simple program or function.
    You need to java JAVA environment installed other than that is not gonna work... i think.
    http://java.com/en/download/index.jsp

    This is the code in case you think I am being sneaky and sending you a virus:

    import javax.swing.JOptionPane;
    public class desiredAfr {

    public static void main (String [] args){
    double mafr;
    do {
    mafr=Double.parseDouble(JOptionPane.showInputDialo g("Enter your fuel map AFR: "));
    double aafr=Double.parseDouble(JOptionPane.showInputDialo g("Enter your actual AFR: "));
    double dafr=Double.parseDouble(JOptionPane.showInputDialo g("Enter your desired AFR: "));

    double nmafr=(dafr*mafr)/aafr;

    JOptionPane.showMessageDialog(null, "Your new AFR value: "+ String.format("%.2f",nmafr));
    }
    while(mafr != 0);
    }
    }

    https://www.dropbox.com/s/hnj4gqnery...Calculator.zip
    This is my dropbox link.. when you hit download it might ask you if you really want to download it.. it looks risky.. it only says that because I am sending you and Exectuable file... do not click on discard..just click on the litthe arrow next to it and click: keep.

    Last edited by surfersamu; 11-19-2013 at 02:48 PM.
    2013 Yamaha R1
    2003 Honda CBR600RR
    Evo X 2008

    Blue 1995 3000GT NA

    *Performance: Test pipe, OBX headers, Custom Single Exhaust, TT Plenum, TT fuel pump, 272/272 cams, VR4 2nd gen heads, 3rd gen lifters, Under drive pulley, Slotted Drilled Rotors, Rear and front solid motor mount, Intake 11.5inch Spectre air filter.
    *Weight: 2930lb
    *Electronics: AEM UEGO wideband, Evoscan, 99 Flashable ECU, Tactrix 2.0.
    WHP~231 WTQ~207 VDR Dyno http://i70.photobucket.com/albums/i1...ps03a88b79.jpg

  2. #2
    I lack color... verified

    Join Date
    Sep 2010
    Owner Since
    Aug 1998

    Posts
    3,589
    Thanks
    104
    Thanked 498 Times in 241 Posts
    Awesome!!! Great work!

    Since then I came up with an even easier way to tune. Set the fuel table to your desired AFR and use the MAF smoothing table to do the percentage correction.

    2014 Exomotive Exocet - #101 "shocker yellow" - 1.8L 5-speed 3.9 torsen FMII powered
    Read more: http://mevowners.proboards.com/threa.../greg-pa-build

    99 Solano Black VR4 - #16 of 287 - ground up restoration - sold
    98 Pearl White VR4 #54 of 231 - 12.84@105mph - 93 Octane 12.50@107mph - 100 Octane with Chromed ECU - sold
    99 Pearl White VR4 #108 of 287 - 3RD place stock car class ECG 11 - Sold
    98 Black VR4: 100% stock - totalled by an Illegal 2-12-08
    95 White Stealth TT - 11.852 @ 118.25 - sold
    95 SSG Stealth TT - 11.981 @ 115.81mph - sold

    "I don't actually work on cars, I just talk about them on the internet."

  3. #3
    Forum User Not Verified

    Join Date
    Sep 2010
    Owner Since
    2004

    Location
    Cape Girardeau
    Posts
    4,791
    Thanks
    365
    Thanked 296 Times in 214 Posts
    this is good, be slightly careful though. Depending on where and how exactly you start a pull the afrs can move just a bit. Me personally I wouldn't go more than 50-70% of the way there in each adjustment, but apparently my caution didn't help me, LOL.

    Parting 6 speed
    Pampena 3.5 Stroker, GTX 2867 Gen IIs, AEM Series2, oohnoo SMIC, DN Hardpipes, FIC 1650s, Walbro 525, aermotive fpr, Dejon intake pipes, Tial Q, Koyo Rad, Samco Hoses, Stoptech 332mm fronts, HKS GT4 Coilovers, Spec 4+ LW, JDM 6 Speed, Billet shift forks, Pampena brace

  4. #4
    That's pretty cool... !! kind of like a safc.. but then Karmen HZ would be equivalent to Load?

    I got a question.. for my AFR values.. I have a NA.

    I am trying to make a guide of what AFR values represent on the fuel map.. this is stock afr map.
    could you correct me on this picture if you see anything wrong?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
The 3000GT/Stealth/GTO Web History Project
3000gt.com
3000GT / Stealth International WWWboard Archive
Jim's (RED3KGT) Reststop
3000GT/Stealth/GTO Information and Resources
Team 3S
3000GT / Stealth / GTO Information
daveblack.net
3000GT/Stealth/GTO Clubs and Groups
Michigan 3S
MInnesota 3S
Wisconsin 3S
Iowa, Nebraska, Kansas 3S
North California 3000GT/Stealth
United Society of 3S Owners
3000GT/Stealth/GTO Forums
3000GT/Stealth International
3000GT/Stealth/GTO Event Pages
3S National Gathering
East Coast Gathering
Upper Mid-West Gathering
Blue Ridge Gathering