FLEXIFORCE_25LB
Download Flojoy Studio to try this app
Convert voltages measured with the Phidget Interface Kit into pressure units. Params: Calibration1 : float Calibration parameters to convert voltage into pressure. calibration2 : float Calibration parameters to convert voltage into pressure. Returns: out : OrderedPair
Python Code
from flojoy import OrderedPair, flojoy
@flojoy(deps={"pyserial": "3.5"})
def FLEXIFORCE_25LB(
default: OrderedPair,
calibration1: float = 0.015,
calibration2: float = 0.06,
) -> OrderedPair:
"""Convert voltages measured with the Phidget Interface Kit into pressure units.
Parameters
----------
Calibration1 : float
Calibration parameters to convert voltage into pressure.
calibration2 : float
Calibration parameters to convert voltage into pressure.
Returns
-------
OrderedPair
"""
# Example of a Calibration to convert Voltage into pressions :
pressions: list[float] = []
sensor_num = default.x
pression_i: float = (default.y - calibration1) / calibration2
pressions.append(pression_i)
return OrderedPair(sensor_num, pressions)
Example App
Having problems with this example app? Join our Discord community and we will help you out!