Announcement

Collapse
No announcement yet.

Variables for FuseGL FB6

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Variables for FuseGL FB6

    FuseGL has no options to add variable and I need to integrate my HVAC heater controls. First I am working on my blower motor switch. A simple switch where if switch is in the OFF position, the ignition (polarity +) makes the OFF position wire hot and the blower speed positions 1-5 are not hot. When switching blower motor swtich from OFF to position 1, the ignition wire connects to position 1 and OFF position wire is not hot anymore. If I switch the blower to position 2, the OFF position, position 1, 3, 4, and 5 are not hot. This switch is manual and I am going to integrate the blower motor to my fusion brain using six 12vdc relays.

    So you probably have an idea of what I'm trying to accomplish, the thing is I don't know how to program the fusion brain with code. Since there are no variables in the FuseGL program, I need help creating the code and not sure which file to edit and I think I need to create variables with boolean or instances so if I click on a button to turn it on, the result will turn off any buttons that are on and only one button will be on at a time. Can anyone write out some code so I have an idea how to write it so if I turn a button on, it will turn on the digital output and turn all others off?

    My vehicle is a 2000 Chevrolet Monte Carlo. It has manual heater controls with vacuum lines. I replacing the manual heater control with a digital heater control with vacuum lines out of a 1999 Chevy Lumina, but the 1992 service manual has the correct wiring for the digital controller.

    Click image for larger version

Name:	HVAC_01.jpg
Views:	1
Size:	79.4 KB
ID:	2309444

    Here are the parts I'm using to integrate my HVAC: TYCO 12vdc relays:

    Click image for larger version

Name:	TYCO.jpg
Views:	1
Size:	60.0 KB
ID:	2309436

    PC board:

    Click image for larger version

Name:	PCboard.jpg
Views:	1
Size:	108.6 KB
ID:	2309437

    AC Delco 15306155 wire harness so I don't have to cut into my factory harness:

    Click image for larger version

Name:	15306155_01.jpg
Views:	1
Size:	62.2 KB
ID:	2309438

    Click image for larger version

Name:	15306155_02.jpg
Views:	1
Size:	62.0 KB
ID:	2309439

    Here is the case I made for the FBv6. It's made of ABS plastic Metra 89-00-9032 and plastic standoffs:

    Click image for larger version

Name:	FBv6_01.jpg
Views:	1
Size:	46.1 KB
ID:	2309440

    Click image for larger version

Name:	FBv6_02.jpg
Views:	1
Size:	38.7 KB
ID:	2309441

    The other case is just for my carputer's power supply:

    Click image for larger version

Name:	FBv6_03.jpg
Views:	1
Size:	48.2 KB
ID:	2309442

    On my FBv6, the digital output 25 is stuck on the on mode, oh well:

    Click image for larger version

Name:	FBv6_04.jpg
Views:	1
Size:	49.2 KB
ID:	2309443

    My Analog HVAC controller with vacuum lines:

    Click image for larger version

Name:	HVAC_01.jpg
Views:	1
Size:	79.4 KB
ID:	2309444

    Click image for larger version

Name:	HVAC_02.jpg
Views:	1
Size:	91.7 KB
ID:	2309445

    Click image for larger version

Name:	HVAC_03.jpg
Views:	1
Size:	81.2 KB
ID:	2309446

    Simply unplug the blower motor harness and connect my white wire harness adapter:

    Click image for larger version

Name:	HVAC_04.jpg
Views:	1
Size:	103.1 KB
ID:	2309447

    I soldered 18 AWG wire to the PC board:

    Click image for larger version

Name:	HVAC_05.jpg
Views:	1
Size:	100.9 KB
ID:	2309448

    The reverse side of PC board has my relays:

    Click image for larger version

Name:	HVAC_06.jpg
Views:	1
Size:	86.2 KB
ID:	2309449

    Click image for larger version

Name:	HVAC_07.jpg
Views:	1
Size:	74.7 KB
ID:	2309450

    Now I can connect my harness to the blower harness and solder my wires to Cat6 wire that I ran from the trunk to my concoction. The Cat6 wires are nice because they have a bundle of 20-some gauge wire so it doesn't bulk under the carpet.

    Click image for larger version

Name:	HVAC_08.jpg
Views:	1
Size:	73.5 KB
ID:	2309451
    Last edited by venfayon; 10-03-2012, 03:26 PM.

  • #2
    "Alpha Release"
    Good Luck. I haven't seen an update in a while. I think you can do variables inside the config XML file.
    You might check out my thread on using VB.net - it's getting somewhere because of Sonic (can control outputs & read inputs, obviously your variables are whatever you want)

    Comment


    • #3
      Here is the xml code for two of my buttons, button 0 and button 1: I'm pretty sure I need a if, then statement to make if button 0 is on, it automatically turns off button 1. Also if I turn on button 1, it will automatically turn off button 0. I will have a total of six buttons. Button 0-5

      <?xml version="1.0" encoding="utf-8"?>
      <FuseGL_User_Settings>
      <User_Object type="FuseGL_Object">
      <setting type="string" name="GL - BTN - DO[0,0]" />
      <image location="internal" path="FuseGL.Configurator.Configurator_IMG_Resourc es.UserButtonBackground" />
      <image_hover location="internal" path="FuseGL.Configurator.Configurator_IMG_Resourc es.BaseButtonHover" />
      <text text="Toggle: 0" />
      <size width="120" height="30" />
      <location x="135" y="135" z="0" alignment="L" />
      <setting type="int" border_size="1" />
      <setting type="bool" mouse_cursor_to_hand_on_hover="true" />
      <events>
      <startup action="FuseGL.ExecuteCode" inputArgs="ChangeTextOnDigitalOutputChange.cs;Fuse GL_TextManipulation.InternalFlyCompile_ChangeTextO nDigitalOutputChange;ChangeButtonTextOnDigitalOutp utPersistant;{FB.DigitalOutput(0.0)};{this.text};T urn off: 0;Turn on: 0;" outputTo="this.text.text" />
      <onmousedown action="FB.ToggleDigitalOutput" inputArgs="Port:0.0" />
      </events>
      </User_Object>
      <User_Object type="FuseGL_Object">
      <setting type="string" name="GL - BTN - DO[0,1]" />
      <image location="internal" path="FuseGL.Configurator.Configurator_IMG_Resourc es.UserButtonBackground" />
      <image_hover location="internal" path="FuseGL.Configurator.Configurator_IMG_Resourc es.BaseButtonHover" />
      <text text="Toggle: 1" />
      <size width="120" height="30" />
      <location x="135" y="195" alignment="left" z="0.0" />
      <setting type="int" border_size="1" />
      <setting type="bool" mouse_cursor_to_hand_on_hover="true" />
      <events>
      <startup action="FuseGL.ExecuteCode" inputArgs="ChangeTextOnDigitalOutputChange.cs;Fuse GL_TextManipulation.InternalFlyCompile_ChangeTextO nDigitalOutputChange;ChangeButtonTextOnDigitalOutp utPersistant;{FB.DigitalOutput(0.1)};{this.text};T urn off: 1;Turn on: 1;" outputTo="this.text.text" />
      <onmousedown action="FB.ToggleDigitalOutput" inputArgs="Port:0.1" />
      </events>
      </User_Object>
      </FuseGL_User_Settings>

      Comment


      • #4
        This is what I came up with so far, not sure about variable name. A guy from work said to create an instance. The program describes fusion brain and ports as (0,0), (0,1) The (0...is the fusion brain number, I can connect up to 15 fusion brains. The ...,0) is the port number so fusion brain number 0 on port 0 is (0,0). Fusion brain 0 on port 1 is (0,1). I'm hoping by adding the following if, then statement it will automatically turn off all ports except the port that is turned on.

        <rule>
        <if>
        <conditions>
        <condition var="GL - BTN - DO[0,0]" operator="true"></condition>
        <!-- more conditions possible -->
        </conditions>
        <then>
        <startup action="FB.ToggleDigitalOutput" inputArgs="Port:0.1"/>
        </then>
        </if>
        <elseif>
        <condition var="GL - BTN - DO[0,1]" operator="false"></condition>
        <statements>do nothing</statements>
        </elseif>
        <else>
        <statements></statements>
        </else>
        </rule>
        Last edited by venfayon; 10-06-2012, 04:02 PM.

        Comment


        • #5
          I think instead of using FB.ToggleDigitalOutput, I should use FB.DigitalOutputSet for it to turn off the fusion brain port. Any suggestions would help. Of course according to basic commands:

          high = Switch an output pin on
          low = Switch an output pin off
          toggle = Change an output pin between on and off

          When I change FB.ToggleDigitalOutput to FB.LowDigitalOutput so the second button would ideally switch off the first, but nothing happens. I've tried different combinations and case sentivity and placement of the word low and high, but toggle works.
          Last edited by venfayon; 10-08-2012, 06:54 PM.

          Comment

          Working...
          X