const fluxControllerConfig = {
panelName: "GeriBellJr_Controller_1.0",
inputs: [
{ name: "temp_sensor", type: "PT1000", pin: "A0", range: [-50, 200] },
{ name: "pressure_sensor", type: "analog", pin: "A1", unit: "bar" },
{ name: "ntc_skin", type: "NTC100", pin: "A2", location: "head/neck" }
],
outputs: [
{ name: "motor_PWM_left", type: "PWM", pin: "D3", frequency: 1000 },
{ name: "motor_PWM_right", type: "PWM", pin: "D5", frequency: 1000 },
{ name: "status_led", type: "digital", pin: "D13" },
{ name: "relay_output", type: "relay", pin: "D7" }
],
communication: {
protocol: "ModbusRTU",
address: "0x01",
baudRate: 9600,
parity: "even"
},
logicBlocks: [
{
id: "temp_shutdown",
description: "Overtemperature protection",
condition: "inputs.temp_sensor > 70",
action: "outputs.relay_output = 0"
},
{
id: "cooling_trigger",
description: "Turn on relay if skin temp > 45",
condition: "inputs.ntc_skin > 45",