Skip to content

Plug in devices & common sensors

Maciej sorek Loboda edited this page Jan 2, 2024 · 13 revisions

Gauge.S is natively configured with few plug-in devices and sensors.

Devices

All predefined devices supported by Gauge.S are listed there.

Accelerometer

If ADXL345 3-axis accelerometer is used, only need to connect I2C version SDA, SCL(clock), 3.3V and GND pins to the device. Note that v4.0 of the boards have this one included!

GPS

Need to connect SCL to RX and EB to TX of pretty much any GPS module. Also 3.3v and GND pins to power it up. Use I2C header plug.

On V.KEL TTL module connect wires:

G -> GND (orange)
R -> SCL (red)
T -> EB  (yellow)
V -> 3v3 (white)

Set "gps": true in main config to enable it.

It can be used along ADXL345 accelerometer.

Sensors

You can use any sensor of course, but I present here list of tested ones with ready to go commands.

Bosch PST-F1

Bosch PST-F1 is combined oil pressure and oil temperature sensor. It needs 5V to power the internals of pressure sensor so I used single 7805 to run it.

Also used 4.7k pullup resistor on Analog 4 to 3.3V level. Unfortunately order than v4.0 versions of Gauge.S requires removing of voltage divider resistors used on the input.

Lut table below:

{
    "header": "Oil temperature",
    "unit": "°C",
    "expr": "lutTable(\"Oil temperature\", x)",
    "x": "Analog 4",
    "lutTable": [       // for 4700 OHM pullup                 
        { "x":    0.05306    ,    "y":    140    },
        { "x":    0.06607    ,    "y":    130    },
        { "x":    0.08284    ,    "y":    120    },
        { "x":    0.10493    ,    "y":    110    },
        { "x":    0.13426    ,    "y":    100    },
        { "x":    0.17339    ,    "y":     90    },
        { "x":    0.22594    ,    "y":     80    },
        { "x":    0.29684    ,    "y":     70    },
        { "x":    0.39251    ,    "y":     60    },
        { "x":    0.52052    ,    "y":     50    },
        { "x":    0.69177    ,    "y":     40    },
        { "x":    0.91302    ,    "y":     30    },
        { "x":    1.18953    ,    "y":     20    },
        { "x":    1.51622    ,    "y":     10    },
        { "x":    1.87423    ,    "y":      0    },
        { "x":    2.23196    ,    "y":    -10    },
        { "x":    2.55412    ,    "y":    -20    },
        { "x":    2.81477    ,    "y":    -30    },
        { "x":    3.00526    ,    "y":    -40    }
    ]                    
},

Here is for 1k pullup (v4.3+):

{
	"header": "Oil temp",
	"unit": "°C",
	"expr": "-6.2402*x^5 + 54.332*x^4 - 184.54*x^3 + 307.91*x^2 - 291.92*x + 190.48",
	"dec": 0,
	"x": "Analog 4",
	"flashPoint": 115
},

Here is oil pressure:

{
        "header": "Oil pressure",
        "unit": "kPa",
        "dec": 1,
        "expr": "250*(filter(\"Analog 1\", 10)-0.5)"
//      "expr": "2.5*(filter(\"Analog 1\", 10)-0.5)" for bar
},