Building Automation v4.2 documentation

lymanepp

New member
The Building Automation (Mega BAS) v4.2 has a few differences from the latest documentation. The changes that I have questions about are:
1) The inputs are now configured by DIP switches. Is the 10k thermistor pin 1/4?
2) What is the new "485TERM" DIP switch used for?
 

alexburcea

Moderator
Staff member
Hi

The jumpers has been replaced by the dip-switches, one group of 6 deserve 2 channels. As for the jumpers are 3 settings for one channel.
If you look at the card with the raspberry 40 pin connector up, the first switch on the top is for 0-10V, second for 1k thermistor and third for 10k thermistor. The order is repeat for each channel. (as for the jumpers, only one of thee switch mut be on). Usually the cards come from the factory with 0-10V input settings because that way was tested.

The "485TERM" is used to connect a terminator on the RS485 lines. The RS485 network needs on terminator on each ends.
 

lymanepp

New member
Hi

The jumpers has been replaced by the dip-switches, one group of 6 deserve 2 channels. As for the jumpers are 3 settings for one channel.
If you look at the card with the raspberry 40 pin connector up, the first switch on the top is for 0-10V, second for 1k thermistor and third for 10k thermistor. The order is repeat for each channel. (as for the jumpers, only one of thee switch mut be on). Usually the cards come from the factory with 0-10V input settings because that way was tested.

The "485TERM" is used to connect a terminator on the RS485 lines. The RS485 network needs on terminator on each ends.
Thanks Alex!
 
Hi

The jumpers has been replaced by the dip-switches, one group of 6 deserve 2 channels. As for the jumpers are 3 settings for one channel.
If you look at the card with the raspberry 40 pin connector up, the first switch on the top is for 0-10V, second for 1k thermistor and third for 10k thermistor. The order is repeat for each channel. (as for the jumpers, only one of thee switch mut be on). Usually the cards come from the factory with 0-10V input settings because that way was tested.

The "485TERM" is used to connect a terminator on the RS485 lines. The RS485 network needs on terminator on each ends.
what about getting the 1-wire interface on the Bas to work. which node in NOde red, as there is none available and the IND node will not work on it
 

alexburcea

Moderator
Staff member
Hi,

There is no node for the 1-wire and you can not use the one from industrial but you can use the exec node running the "megabas" command for it.
 

alexburcea

Moderator
Staff member
Here is an usage example:

[
{
"id": "013308049fb66ce6",
"type": "tab",
"label": "Flow 2",
"disabled": false,
"info": "",
"env": []
},
{
"id": "ab8fd7d1bd6b99da",
"type": "exec",
"z": "013308049fb66ce6",
"command": "megabas 0 owbtrd 1",
"addpay": "",
"append": "",
"useSpawn": "false",
"timer": "",
"winHide": false,
"oldrc": false,
"name": "",
"x": 340,
"y": 200,
"wires": [
[
"dd7c5b506b107dd6"
],
[],
[]
]
},
{
"id": "b5c09f7bafd4fe02",
"type": "inject",
"z": "013308049fb66ce6",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 140,
"y": 200,
"wires": [
[
"ab8fd7d1bd6b99da"
]
]
},
{
"id": "dd7c5b506b107dd6",
"type": "debug",
"z": "013308049fb66ce6",
"name": "debug 2",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 580,
"y": 180,
"wires": []
}
]
 

alexburcea

Moderator
Staff member
The easy way is to add a new exec node for each channel and connect the input of one exec node to the output of the previous so the new command will be executed after the previous one is finished.
 
perfect. heres what i have. how do i go about extracting the 2nd temp so i have 2 values simutaneously?

[
{
"id": "5a49526254ec633c",
"type": "debug",
"z": "cced12873da21ab9",
"name": "debug 59",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 700,
"y": 1360,
"wires": []
},
{
"id": "399394da3ae96cf1",
"type": "exec",
"z": "cced12873da21ab9",
"command": "megabas 0 owbtrd 1",
"addpay": "",
"append": "",
"useSpawn": "false",
"timer": "",
"winHide": false,
"oldrc": false,
"name": "",
"x": 200,
"y": 1440,
"wires": [
[
"1feddf9de5d3e61e",
"3812d6cbe983caa9"
],
[],
[]
]
},
{
"id": "1ec7e00827a203f3",
"type": "inject",
"z": "cced12873da21ab9",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "15",
"crontab": "",
"once": true,
"onceDelay": "1",
"topic": "",
"payload": "",
"payloadType": "date",
"x": 130,
"y": 1360,
"wires": [
[
"399394da3ae96cf1"
]
]
},
{
"id": "1feddf9de5d3e61e",
"type": "debug",
"z": "cced12873da21ab9",
"name": "debug 68",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 480,
"y": 1360,
"wires": []
},
{
"id": "b2eaf3b64480d6f3",
"type": "function",
"z": "cced12873da21ab9",
"name": "function 28",
"func": "// Assuming msg.payload contains the temperature in Celsius\nvar celsius = parseFloat(msg.payload);\n\n// Convert Celsius to Fahrenheit\nvar fahrenheit = (celsius * 9 / 5) + 32;\n\n// Update msg.payload with the temperature in Fahrenheit\nmsg.payload = fahrenheit;\n\n// Return the updated message\nreturn msg;\n",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 690,
"y": 1420,
"wires": [
[
"5a49526254ec633c",
"0123fdd11fbe2c91"
]
]
},
{
"id": "3812d6cbe983caa9",
"type": "exec",
"z": "cced12873da21ab9",
"command": "megabas 0 owbtrd 2",
"addpay": "",
"append": "",
"useSpawn": "false",
"timer": "",
"winHide": false,
"oldrc": false,
"name": "",
"x": 460,
"y": 1440,
"wires": [
[
"b2eaf3b64480d6f3"
],
[
"61e17a8a89c526ec"
],
[]
]
}
]
 

alexburcea

Moderator
Staff member
Sorry for being slow, I am switching between projects and I had no Building Card installed to test with.
I am glad you figured it out.
 
Top