BlueWave Studio forum
  • Login
  • Register
  • Login Register
    Login
    Username:
    Password:
  • Home
  • Help
  • View Today's Post
  • More
    • BlueWave Studio
    • Shop
User Links
  • Login
  • Register
  • Login Register
    Login
    Username:
    Password:

    Quick Links Home Help View Today's Post
    More
    • BlueWave Studio
    • Shop
    BlueWave Studio forum OpenAuto Pro OBD-II Honda Civic Type R - VTEC

    Honda Civic Type R - VTEC
    jrgibb
    Offline

    Junior Member

    Posts: 29
    Threads: 7
    Joined: Feb 2023
    Reputation: 0
    #1
    03-01-2023, 07:39 PM
    Hi all so I have my OB2 working and I'm getting familiar with the basics, I've reconfigured the 5 Sports gauges and can see how the obd_gauges and pids config files work. 

    What I'd like to do now is configure OAP for when the VTEC comes in on my engine to do something like turn the background on the gauge screen red or the background of the RPM gauge or have it's own gauge with a bright indicator when the VTEC comes on. 

    For those that don't know the Type R engine revs to approx. 8,500 RPM and at 5,400 RPM a hydraulic solenoid is activated which engages a second cam with more aggressive lobes and a corresponding increase in power at the associated scream as the engine revs to 8500RPM in full hooligan mode :-). 

    There are HONDA specific PID codes for VTEC faults but I've been unable to find out if there's an associated PID from the ECU (it'll be a simple on / off) that powers the VTEC solenoid - if anyone know I'd be most welcome . . . . . however not to worry because I can use the engine RPM to activate an OAP gauge with a formula;

    Query=010C
    Formula=(???)

    Can you use < > ?  I was thinking if a>5400 then a=1  with 1 then representing the VTEC being engaged.

    The challenge then and my questions is having achieved this what can I do with this OAP on off indicator to have a bright indicor on the display yelling VTEC IS ON!!!  :-) 

    Any thoughts, help or guidance welcome 

    TIA Jason
    BlueWave
    Offline

    Administrator

    Posts: 2,797
    Threads: 64
    Joined: Jun 2019
    Reputation: 71
    #2
    03-01-2023, 10:05 PM (This post was last modified: 03-01-2023, 10:19 PM by BlueWave.)
    You can try the formula

    if((getPidValue(4) >= 5400),1,0)

    When condition is true then 1 will be returned. Otherwise returned value will be 0. You can then define the gauge with Min=0, Max=1, Limit=0.5, Precision=1 and it should flash when 1 is returned from the formula.

    You can also use the API to read value of RPM and then inject your custom formula's value to the gauge.
    jrgibb
    Offline

    Junior Member

    Posts: 29
    Threads: 7
    Joined: Feb 2023
    Reputation: 0
    #3
    03-02-2023, 06:34 AM (This post was last modified: 03-02-2023, 06:47 AM by jrgibb.)
    Great, thanks!

    Is it possible to add a variable for the flashing element of this to just make the RPM gauge flash if the RPM exceed 5400? My present RPM code is;

    [ObdGauge_4]
    MinValue=0
    MaxValue=9000
    Limit=8500
    Formula=getPidValue(4)
    Label=RPM
    Precision=0

    Would this work?

    if((getPidValue(4) >= 5400),Precision=1,Precision=0)

    Or just change the limit??? ;

    ObdGauge_4]
    MinValue=0
    MaxValue=9000
    Limit=5400
    Formula=getPidValue(4)
    Label=RPM
    Precision=1

    TIA Jason
    BlueWave
    Offline

    Administrator

    Posts: 2,797
    Threads: 64
    Joined: Jun 2019
    Reputation: 71
    #4
    03-02-2023, 07:13 AM
    Flashing of the gauge is controlled by the limit. Second gauge definition you provided should work as you expected.
    jrgibb
    Offline

    Junior Member

    Posts: 29
    Threads: 7
    Joined: Feb 2023
    Reputation: 0
    #5
    03-02-2023, 06:27 PM
    Great, thank.

    Couple of additional questions what are the Precision values, is this 0 whole number 1 1 decimal point etc?

    Is it possible to set a lower and upper Limit for a gauge, I'm thinking specifically about a voltage gauge where you'd want a lower limit of probably 12v and an upper of say 15v - the first being an alternator failure and the second being a regulator failure. Both upper and lower limits require a gauge flashing
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)



    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Help · BlueWave Studio · Shop

    Copyright © bluewavestudio.io. All rights reserved.

    Linear Mode
    Threaded Mode