Servus zusammen, baue mir gerade ein Wohnmobil aus und möchte gerne die Heizungsschieber von der Planar Luftstandheizung elektrisch verstellen, Ich verbaue auch das Neue Van Pi Core System mit ein. Hat hierzu schon jemand was gemacht
Gruß Markus
Servus zusammen, baue mir gerade ein Wohnmobil aus und möchte gerne die Heizungsschieber von der Planar Luftstandheizung elektrisch verstellen, Ich verbaue auch das Neue Van Pi Core System mit ein. Hat hierzu schon jemand was gemacht
Gruß Markus
Meinst du das???
Gruß Arno
Ja genau so was suche ich mit was kann ich das genau steuern und programmieren bin da recht neu auf diesen thema programmieren
@Markus1
Hi Markus
5V ist ja in Ordnung ist mein Servo auch, für die 5V kannst du ja so was nehmen.
-547f4c2cfe41e8a3ac4c856eff6637&afSmartRedirect=y
Der PCA9685 hab ich soetwas genommen
Und der Programm Code ist im anderen Post kannst du einfach importieren
Gruß
Arno
Step down link hat nicht funktioniert.
Ist halt 12 auf 5V
Servus,
Ich habe vier Heizungsschieber die ich einbinden will und ich möchte mit auf und zu auch eine Mittelstellung anfahren oder auch nur 10% öffnen ist dies möglich und wo steure ich dann den PCA9685 genau an. Könntest mir da dabei evtl. Behilflich sein.
Gruß Markus
@Markus1
Moin Markus,
grundsätzlich sind mit einem PCA9685 16 Schieber möglich.
Wie ich in dem anderen Post schon geschrieben habe könnte man mit node-red-contrib-ui-multistate-switch mehrere Zwischen-positionen anfahren. Oder mann nimmt dafür einen Slider. Gesteuert würde das über das Node-Red Dashboard, nicht über Pekaway Daschboard, NS-Panel oder APP (APP geht zur Not auf und zu???)
Bei dem Programm könnte ich dir helfen, soweit ich kann.
Gruß Arno
Servus Arno,
Wenn dann nur über node Red so das es über Pekawey funktioniert welche teile muss ich noch besorgen ausser PCA9685
Gruß Markus
du benötigst noch einen DC-DC Wandler 12 auf 5 V für deine Servos. Soetwas in der Art.
@Markus1
Moin Markus
hier ist dein Programm, 4 Regler und 1 LED
Ich habe 2 Seiten angelegt, 1 Seite zur Bedienung, und eine Seite für die Konfiguration
[
{
"id": "7df3ced66a8aa735",
"type": "tab",
"label": "4 Heizungsklappen",
"disabled": false,
"info": "",
"env": []
},
{
"id": "5b2a28c7fb434c9c",
"type": "PCA9685 out",
"z": "7df3ced66a8aa735",
"name": "PWM Output 0 (Servo)",
"pca9685": "804c98d6fe0be90d",
"channel": "0",
"payload": "",
"unit": "microseconds",
"onStep": "0",
"x": 980,
"y": 320,
"wires": []
},
{
"id": "3877c588fa385f1f",
"type": "comment",
"z": "7df3ced66a8aa735",
"name": "Hex Adresse in Dezimal angeben Adr.40=64",
"info": "",
"x": 810,
"y": 80,
"wires": []
},
{
"id": "b7df72109f24b4b0",
"type": "ui_slider",
"z": "7df3ced66a8aa735",
"name": "",
"label": "Servo-0",
"tooltip": "",
"group": "79264ad14fb207dc",
"order": 1,
"width": 0,
"height": 0,
"passthru": true,
"outs": "end",
"topic": "topic",
"topicType": "msg",
"min": "200",
"max": "2000",
"step": 1,
"className": "",
"x": 540,
"y": 340,
"wires": [
[
"2e4ee1ebcab429df"
]
]
},
{
"id": "d5040b1410c1f41b",
"type": "ui_switch",
"z": "7df3ced66a8aa735",
"name": "",
"label": "Klappe Servo-0",
"tooltip": "",
"group": "de8dfc55aaf31854",
"order": 1,
"width": 0,
"height": 0,
"passthru": true,
"decouple": "false",
"topic": "topic",
"topicType": "msg",
"style": "",
"onvalue": "true",
"onvalueType": "bool",
"onicon": "",
"oncolor": "",
"offvalue": "false",
"offvalueType": "bool",
"officon": "",
"offcolor": "",
"animate": false,
"className": "",
"x": 500,
"y": 300,
"wires": [
[
"ea2c2cf6980b227f"
]
]
},
{
"id": "2e4ee1ebcab429df",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "flow set ",
"func": "\n\nflow.set(\"Servo_0\", msg.payload);\n \nreturn msg\n \n ",
"outputs": 1,
"timeout": "",
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 680,
"y": 340,
"wires": [
[
"5b2a28c7fb434c9c"
]
]
},
{
"id": "e488bb4722562b93",
"type": "ui_button",
"z": "7df3ced66a8aa735",
"name": "Servo-0 AUF Speicher",
"group": "79264ad14fb207dc",
"order": 2,
"width": 0,
"height": 0,
"passthru": false,
"label": "Servo-0 AUF Speicher",
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"payload": "true",
"payloadType": "bool",
"topic": "topic",
"topicType": "msg",
"x": 500,
"y": 380,
"wires": [
[
"30bdf6f240ca6884"
]
]
},
{
"id": "ea171e7a85c10783",
"type": "ui_button",
"z": "7df3ced66a8aa735",
"name": "Servo-0 ZU Speicher",
"group": "79264ad14fb207dc",
"order": 3,
"width": 0,
"height": 0,
"passthru": false,
"label": "Servo-0 ZU Speicher",
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"payload": "true",
"payloadType": "bool",
"topic": "topic",
"topicType": "msg",
"x": 500,
"y": 460,
"wires": [
[
"b2c9d434641d06cb"
]
]
},
{
"id": "142d2dced96d9cd4",
"type": "file",
"z": "7df3ced66a8aa735",
"name": "",
"filename": "pekaway/Servo_0_AUF",
"filenameType": "str",
"appendNewline": false,
"createDir": true,
"overwriteFile": "true",
"encoding": "none",
"x": 970,
"y": 380,
"wires": [
[]
]
},
{
"id": "40cde1c42b603b16",
"type": "file",
"z": "7df3ced66a8aa735",
"name": "",
"filename": "pekaway/Servo_0_ZU",
"filenameType": "str",
"appendNewline": false,
"createDir": true,
"overwriteFile": "true",
"encoding": "none",
"x": 980,
"y": 460,
"wires": [
[]
]
},
{
"id": "1ee73a6488485530",
"type": "file in",
"z": "7df3ced66a8aa735",
"name": "",
"filename": "pekaway/Servo_0_AUF",
"filenameType": "str",
"format": "utf8",
"chunk": false,
"sendError": false,
"encoding": "none",
"allProps": false,
"x": 510,
"y": 420,
"wires": [
[
"faa4db7f93146990"
]
]
},
{
"id": "486adaaae09a84b9",
"type": "file in",
"z": "7df3ced66a8aa735",
"name": "",
"filename": "pekaway/Servo_0_ZU",
"filenameType": "str",
"format": "utf8",
"chunk": false,
"sendError": false,
"encoding": "none",
"allProps": false,
"x": 500,
"y": 500,
"wires": [
[
"a40d1b375afb1efc"
]
]
},
{
"id": "b02280218786eef4",
"type": "inject",
"z": "7df3ced66a8aa735",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": true,
"onceDelay": "10",
"topic": "",
"payload": "false",
"payloadType": "bool",
"x": 210,
"y": 980,
"wires": [
[
"01308eebdf61f373",
"1ee73a6488485530",
"486adaaae09a84b9",
"d5040b1410c1f41b",
"b4cf989e857f13df",
"c4f7896c6d0735c3",
"e5cab2796f86a25f",
"64b586f9b4332d3a",
"56fd6c76c0ed27e6",
"46141f51c99e5591",
"5c0cad9257247295",
"61904b313bbba556",
"134360ba200d09aa"
]
]
},
{
"id": "ea2c2cf6980b227f",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "global.get Servo_0",
"func": "var on = msg.payload;\nvar auf = Number(global.get(\"Servo_0_AUF\"));\nvar zu = Number(global.get(\"Servo_0_ZU\"));\n\nif (msg.payload === true){\n msg.payload = auf\n}\nif (msg.payload === false){\n msg.payload = zu\n}\n\nreturn msg;\n\n\n",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 730,
"y": 300,
"wires": [
[
"5b2a28c7fb434c9c",
"b7df72109f24b4b0",
"0ce1c8bd7bb2259e"
]
]
},
{
"id": "30bdf6f240ca6884",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "global.set Servo AUF",
"func": "var servo = flow.get(\"Servo_0\");\n\nglobal.set(\"Servo_0_AUF\",servo);\nmsg.payload = servo;\n\nreturn msg;\n\n",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 720,
"y": 380,
"wires": [
[
"142d2dced96d9cd4"
]
]
},
{
"id": "b2c9d434641d06cb",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "global.set Servo ZU",
"func": "var servo = flow.get(\"Servo_0\");\n\nglobal.set(\"Servo_0_ZU\",servo);\nmsg.payload = servo;\n\nreturn msg;\n\n",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 720,
"y": 460,
"wires": [
[
"40cde1c42b603b16"
]
]
},
{
"id": "a40d1b375afb1efc",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "global.set Servo ZU",
"func": "var servo = msg.payload;\n\nglobal.set(\"Servo_0_ZU\",servo);\nmsg.payload = servo;\n\nreturn msg;\n\n",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 720,
"y": 500,
"wires": [
[]
]
},
{
"id": "faa4db7f93146990",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "global.set Servo AUF",
"func": "var servo = msg.payload;\n\nglobal.set(\"Servo_0_AUF\",servo);\nmsg.payload = servo;\n\nreturn msg;\n\n",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 740,
"y": 420,
"wires": [
[]
]
},
{
"id": "942c42cb4c8ed810",
"type": "comment",
"z": "7df3ced66a8aa735",
"name": "Servo Adresse 0",
"info": "",
"x": 680,
"y": 200,
"wires": []
},
{
"id": "58aa0504c0a4aa77",
"type": "PCA9685 out",
"z": "7df3ced66a8aa735",
"name": "PWM Output 1 (Servo)",
"pca9685": "804c98d6fe0be90d",
"channel": "1",
"payload": "",
"unit": "microseconds",
"onStep": "0",
"x": 980,
"y": 680,
"wires": []
},
{
"id": "b0a813e4115ebdb3",
"type": "ui_slider",
"z": "7df3ced66a8aa735",
"name": "",
"label": "Servo-1",
"tooltip": "",
"group": "79264ad14fb207dc",
"order": 4,
"width": 0,
"height": 0,
"passthru": true,
"outs": "end",
"topic": "topic",
"topicType": "msg",
"min": "200",
"max": "2000",
"step": 1,
"className": "",
"x": 540,
"y": 700,
"wires": [
[
"dda67111e7ad1ff2"
]
]
},
{
"id": "e5cab2796f86a25f",
"type": "ui_switch",
"z": "7df3ced66a8aa735",
"name": "",
"label": "Klappe Servo-1",
"tooltip": "",
"group": "de8dfc55aaf31854",
"order": 3,
"width": 0,
"height": 0,
"passthru": true,
"decouple": "false",
"topic": "topic",
"topicType": "msg",
"style": "",
"onvalue": "true",
"onvalueType": "bool",
"onicon": "",
"oncolor": "",
"offvalue": "false",
"offvalueType": "bool",
"officon": "",
"offcolor": "",
"animate": false,
"className": "",
"x": 480,
"y": 660,
"wires": [
[
"e3de6165c1d3f81c"
]
]
},
{
"id": "dda67111e7ad1ff2",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "flow set ",
"func": "\n\nflow.set(\"Servo_1\", msg.payload);\n \nreturn msg\n \n ",
"outputs": 1,
"timeout": "",
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 680,
"y": 700,
"wires": [
[
"58aa0504c0a4aa77"
]
]
},
{
"id": "4c90d4cb5192ee50",
"type": "ui_button",
"z": "7df3ced66a8aa735",
"name": "Servo-1 AUF Speicher",
"group": "79264ad14fb207dc",
"order": 5,
"width": 0,
"height": 0,
"passthru": false,
"label": "Servo-1 AUF Speicher",
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"payload": "true",
"payloadType": "bool",
"topic": "topic",
"topicType": "msg",
"x": 500,
"y": 760,
"wires": [
[
"3ae322afe5d14e4e"
]
]
},
{
"id": "c6b1fdad1814931c",
"type": "ui_button",
"z": "7df3ced66a8aa735",
"name": "Servo-1 ZU Speicher",
"group": "79264ad14fb207dc",
"order": 6,
"width": 0,
"height": 0,
"passthru": false,
"label": "Servo-1 ZU Speicher",
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"payload": "true",
"payloadType": "bool",
"topic": "topic",
"topicType": "msg",
"x": 500,
"y": 840,
"wires": [
[
"35d1ad6e059f4bdb"
]
]
},
{
"id": "1b44677fc5d78795",
"type": "file",
"z": "7df3ced66a8aa735",
"name": "",
"filename": "pekaway/Servo_1_AUF",
"filenameType": "str",
"appendNewline": false,
"createDir": true,
"overwriteFile": "true",
"encoding": "none",
"x": 970,
"y": 760,
"wires": [
[]
]
},
{
"id": "2e9614c23416e3a9",
"type": "file",
"z": "7df3ced66a8aa735",
"name": "",
"filename": "pekaway/Servo_1_ZU",
"filenameType": "str",
"appendNewline": false,
"createDir": true,
"overwriteFile": "true",
"encoding": "none",
"x": 980,
"y": 840,
"wires": [
[]
]
},
{
"id": "b4cf989e857f13df",
"type": "file in",
"z": "7df3ced66a8aa735",
"name": "",
"filename": "pekaway/Servo_1_AUF",
"filenameType": "str",
"format": "utf8",
"chunk": false,
"sendError": false,
"encoding": "none",
"allProps": false,
"x": 510,
"y": 800,
"wires": [
[
"85b9ab12b3266af4"
]
]
},
{
"id": "c4f7896c6d0735c3",
"type": "file in",
"z": "7df3ced66a8aa735",
"name": "",
"filename": "pekaway/Servo_1_ZU",
"filenameType": "str",
"format": "utf8",
"chunk": false,
"sendError": false,
"encoding": "none",
"allProps": false,
"x": 500,
"y": 880,
"wires": [
[
"765094fc992885c8"
]
]
},
{
"id": "e3de6165c1d3f81c",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "global.get Servo_1",
"func": "var on = msg.payload;\nvar auf = Number(global.get(\"Servo_1_AUF\"));\nvar zu = Number(global.get(\"Servo_1_ZU\"));\n\nif (msg.payload === true){\n msg.payload = auf\n}\nif (msg.payload === false){\n msg.payload = zu\n}\n\nreturn msg;\n\n\n",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 730,
"y": 660,
"wires": [
[
"58aa0504c0a4aa77",
"b0a813e4115ebdb3",
"fae57a91dab5368d"
]
]
},
{
"id": "3ae322afe5d14e4e",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "global.set Servo AUF",
"func": "var servo = flow.get(\"Servo_1\");\n\nglobal.set(\"Servo_1_AUF\",servo);\nmsg.payload = servo;\n\nreturn msg;\n\n",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 720,
"y": 760,
"wires": [
[
"1b44677fc5d78795"
]
]
},
{
"id": "35d1ad6e059f4bdb",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "global.set Servo ZU",
"func": "var servo = flow.get(\"Servo_1\");\n\nglobal.set(\"Servo_1_ZU\",servo);\nmsg.payload = servo;\n\nreturn msg;\n\n",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 720,
"y": 840,
"wires": [
[
"2e9614c23416e3a9"
]
]
},
{
"id": "765094fc992885c8",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "global.set Servo ZU",
"func": "var servo = msg.payload;\n\nglobal.set(\"Servo_1_ZU\",servo);\nmsg.payload = servo;\n\nreturn msg;\n\n",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 720,
"y": 880,
"wires": [
[]
]
},
{
"id": "85b9ab12b3266af4",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "global.set Servo AUF",
"func": "var servo = msg.payload;\n\nglobal.set(\"Servo_1_AUF\",servo);\nmsg.payload = servo;\n\nreturn msg;\n\n",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 740,
"y": 800,
"wires": [
[]
]
},
{
"id": "ff9e544f9682a871",
"type": "comment",
"z": "7df3ced66a8aa735",
"name": "Servo Adresse 1",
"info": "",
"x": 700,
"y": 580,
"wires": []
},
{
"id": "0ce1c8bd7bb2259e",
"type": "ui_slider",
"z": "7df3ced66a8aa735",
"name": "",
"label": "Servo-0.1",
"tooltip": "",
"group": "de8dfc55aaf31854",
"order": 2,
"width": 0,
"height": 0,
"passthru": true,
"outs": "end",
"topic": "topic",
"topicType": "msg",
"min": "200",
"max": "2000",
"step": 1,
"className": "",
"x": 700,
"y": 260,
"wires": [
[
"5b2a28c7fb434c9c"
]
]
},
{
"id": "a70dc63bae1c3adc",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "flow set ",
"func": "var auf = Number(global.get(\"Servo_0_AUF\"));\nvar zu = Number(global.get(\"Servo_0_ZU\"));\n\nmsg = {\n ui_control:{\n min:zu,\n max:auf\n }\n}\nreturn msg\n \n ",
"outputs": 1,
"timeout": "",
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 560,
"y": 260,
"wires": [
[
"0ce1c8bd7bb2259e"
]
]
},
{
"id": "a812dcf8aa238aa7",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "flow set ",
"func": "var auf = Number(global.get(\"Servo_1_AUF\"));\nvar zu = Number(global.get(\"Servo_1_ZU\"));\n\nmsg = {\n ui_control:{\n min:zu,\n max:auf\n }\n}\nreturn msg\n \n ",
"outputs": 1,
"timeout": "",
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 560,
"y": 620,
"wires": [
[
"fae57a91dab5368d"
]
]
},
{
"id": "fae57a91dab5368d",
"type": "ui_slider",
"z": "7df3ced66a8aa735",
"name": "",
"label": "Servo-1.1",
"tooltip": "",
"group": "de8dfc55aaf31854",
"order": 4,
"width": 0,
"height": 0,
"passthru": true,
"outs": "end",
"topic": "topic",
"topicType": "msg",
"min": "200",
"max": "2000",
"step": 1,
"className": "",
"x": 700,
"y": 620,
"wires": [
[
"58aa0504c0a4aa77"
]
]
},
{
"id": "01308eebdf61f373",
"type": "ui_button",
"z": "7df3ced66a8aa735",
"name": "Werte Speichern",
"group": "79264ad14fb207dc",
"order": 13,
"width": 0,
"height": 0,
"passthru": true,
"label": "Werte Speichern",
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"payload": "false",
"payloadType": "bool",
"topic": "topic",
"topicType": "msg",
"x": 190,
"y": 1020,
"wires": [
[
"a812dcf8aa238aa7",
"a70dc63bae1c3adc",
"ccfd5a0de14fe32c",
"0619752b969505cc"
]
]
},
{
"id": "fcb247ec8c9b9041",
"type": "PCA9685 out",
"z": "7df3ced66a8aa735",
"name": "PWM Output 2 (Servo)",
"pca9685": "804c98d6fe0be90d",
"channel": "2",
"payload": "",
"unit": "microseconds",
"onStep": "0",
"x": 980,
"y": 1080,
"wires": []
},
{
"id": "ed4d007d74bd3741",
"type": "ui_slider",
"z": "7df3ced66a8aa735",
"name": "",
"label": "Servo-2",
"tooltip": "",
"group": "79264ad14fb207dc",
"order": 7,
"width": 0,
"height": 0,
"passthru": true,
"outs": "end",
"topic": "topic",
"topicType": "msg",
"min": "200",
"max": "2000",
"step": 1,
"className": "",
"x": 540,
"y": 1100,
"wires": [
[
"340277c2f23a2fe4"
]
]
},
{
"id": "46141f51c99e5591",
"type": "ui_switch",
"z": "7df3ced66a8aa735",
"name": "",
"label": "Klappe Servo-2",
"tooltip": "",
"group": "de8dfc55aaf31854",
"order": 5,
"width": 0,
"height": 0,
"passthru": true,
"decouple": "false",
"topic": "topic",
"topicType": "msg",
"style": "",
"onvalue": "true",
"onvalueType": "bool",
"onicon": "",
"oncolor": "",
"offvalue": "false",
"offvalueType": "bool",
"officon": "",
"offcolor": "",
"animate": false,
"className": "",
"x": 500,
"y": 1060,
"wires": [
[
"8d3c9dad6a8a820e"
]
]
},
{
"id": "340277c2f23a2fe4",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "flow set ",
"func": "\n\nflow.set(\"Servo_2\", msg.payload);\n \nreturn msg\n \n ",
"outputs": 1,
"timeout": "",
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 680,
"y": 1100,
"wires": [
[
"fcb247ec8c9b9041"
]
]
},
{
"id": "d657f3a31adf411d",
"type": "ui_button",
"z": "7df3ced66a8aa735",
"name": "Servo-2 AUF Speicher",
"group": "79264ad14fb207dc",
"order": 8,
"width": 0,
"height": 0,
"passthru": false,
"label": "Servo-2 AUF Speicher",
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"payload": "true",
"payloadType": "bool",
"topic": "topic",
"topicType": "msg",
"x": 500,
"y": 1140,
"wires": [
[
"60b0887fcffeeda9"
]
]
},
{
"id": "aeca603e1dcff3e7",
"type": "ui_button",
"z": "7df3ced66a8aa735",
"name": "Servo-2 ZU Speicher",
"group": "79264ad14fb207dc",
"order": 9,
"width": 0,
"height": 0,
"passthru": false,
"label": "Servo-2 ZU Speicher",
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"payload": "true",
"payloadType": "bool",
"topic": "topic",
"topicType": "msg",
"x": 500,
"y": 1220,
"wires": [
[
"1bc0f6c4fb247d18"
]
]
},
{
"id": "b91c6df585dd86b6",
"type": "file",
"z": "7df3ced66a8aa735",
"name": "",
"filename": "pekaway/Servo_2_AUF",
"filenameType": "str",
"appendNewline": false,
"createDir": true,
"overwriteFile": "true",
"encoding": "none",
"x": 970,
"y": 1140,
"wires": [
[]
]
},
{
"id": "30cb348b6d5f99d3",
"type": "file",
"z": "7df3ced66a8aa735",
"name": "",
"filename": "pekaway/Servo_2_ZU",
"filenameType": "str",
"appendNewline": false,
"createDir": true,
"overwriteFile": "true",
"encoding": "none",
"x": 980,
"y": 1220,
"wires": [
[]
]
},
{
"id": "64b586f9b4332d3a",
"type": "file in",
"z": "7df3ced66a8aa735",
"name": "",
"filename": "pekaway/Servo_2_AUF",
"filenameType": "str",
"format": "utf8",
"chunk": false,
"sendError": false,
"encoding": "none",
"allProps": false,
"x": 510,
"y": 1180,
"wires": [
[
"58a79e5db6a0cb51"
]
]
},
{
"id": "56fd6c76c0ed27e6",
"type": "file in",
"z": "7df3ced66a8aa735",
"name": "",
"filename": "pekaway/Servo_2_ZU",
"filenameType": "str",
"format": "utf8",
"chunk": false,
"sendError": false,
"encoding": "none",
"allProps": false,
"x": 500,
"y": 1260,
"wires": [
[
"95562eb42bd1b4f0"
]
]
},
{
"id": "8d3c9dad6a8a820e",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "global.get Servo_2",
"func": "var on = msg.payload;\nvar auf = Number(global.get(\"Servo_2_AUF\"));\nvar zu = Number(global.get(\"Servo_2_ZU\"));\n\nif (msg.payload === true){\n msg.payload = auf\n}\nif (msg.payload === false){\n msg.payload = zu\n}\n\nreturn msg;\n\n\n",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 730,
"y": 1060,
"wires": [
[
"fcb247ec8c9b9041",
"ed4d007d74bd3741",
"2db9eb6ab1b0469f"
]
]
},
{
"id": "60b0887fcffeeda9",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "global.set Servo AUF",
"func": "var servo = flow.get(\"Servo_2\");\n\nglobal.set(\"Servo_2_AUF\",servo);\nmsg.payload = servo;\n\nreturn msg;\n\n",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 720,
"y": 1140,
"wires": [
[
"b91c6df585dd86b6"
]
]
},
{
"id": "1bc0f6c4fb247d18",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "global.set Servo ZU",
"func": "var servo = flow.get(\"Servo_2\");\n\nglobal.set(\"Servo_2_ZU\",servo);\nmsg.payload = servo;\n\nreturn msg;\n\n",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 720,
"y": 1220,
"wires": [
[
"30cb348b6d5f99d3"
]
]
},
{
"id": "95562eb42bd1b4f0",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "global.set Servo ZU",
"func": "var servo = msg.payload;\n\nglobal.set(\"Servo_2_ZU\",servo);\nmsg.payload = servo;\n\nreturn msg;\n\n",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 720,
"y": 1260,
"wires": [
[]
]
},
{
"id": "58a79e5db6a0cb51",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "global.set Servo AUF",
"func": "var servo = msg.payload;\n\nglobal.set(\"Servo_2_AUF\",servo);\nmsg.payload = servo;\n\nreturn msg;\n\n",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 740,
"y": 1180,
"wires": [
[]
]
},
{
"id": "36c57f8248ad344b",
"type": "comment",
"z": "7df3ced66a8aa735",
"name": "Servo Adresse 2",
"info": "",
"x": 680,
"y": 960,
"wires": []
},
{
"id": "546310b293967441",
"type": "PCA9685 out",
"z": "7df3ced66a8aa735",
"name": "PWM Output 3 (Servo)",
"pca9685": "804c98d6fe0be90d",
"channel": "3",
"payload": "",
"unit": "microseconds",
"onStep": "0",
"x": 980,
"y": 1440,
"wires": []
},
{
"id": "f946c5dcc68d739b",
"type": "ui_slider",
"z": "7df3ced66a8aa735",
"name": "",
"label": "Servo-3",
"tooltip": "",
"group": "79264ad14fb207dc",
"order": 10,
"width": 0,
"height": 0,
"passthru": true,
"outs": "end",
"topic": "topic",
"topicType": "msg",
"min": "200",
"max": "2000",
"step": 1,
"className": "",
"x": 540,
"y": 1460,
"wires": [
[
"760a452e47e9f43a"
]
]
},
{
"id": "134360ba200d09aa",
"type": "ui_switch",
"z": "7df3ced66a8aa735",
"name": "",
"label": "Klappe Servo-3",
"tooltip": "",
"group": "de8dfc55aaf31854",
"order": 7,
"width": 0,
"height": 0,
"passthru": true,
"decouple": "false",
"topic": "topic",
"topicType": "msg",
"style": "",
"onvalue": "true",
"onvalueType": "bool",
"onicon": "",
"oncolor": "",
"offvalue": "false",
"offvalueType": "bool",
"officon": "",
"offcolor": "",
"animate": false,
"className": "",
"x": 480,
"y": 1420,
"wires": [
[
"8cb70e836cd54cb3"
]
]
},
{
"id": "760a452e47e9f43a",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "flow set ",
"func": "\n\nflow.set(\"Servo_3\", msg.payload);\n \nreturn msg\n \n ",
"outputs": 1,
"timeout": "",
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 680,
"y": 1460,
"wires": [
[
"546310b293967441"
]
]
},
{
"id": "d6c15830cc9e1a96",
"type": "ui_button",
"z": "7df3ced66a8aa735",
"name": "Servo-3 AUF Speicher",
"group": "79264ad14fb207dc",
"order": 11,
"width": 0,
"height": 0,
"passthru": false,
"label": "Servo-3 AUF Speicher",
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"payload": "true",
"payloadType": "bool",
"topic": "topic",
"topicType": "msg",
"x": 500,
"y": 1520,
"wires": [
[
"fee24f9bbf1f14ba"
]
]
},
{
"id": "d175c2de35bdfe7d",
"type": "ui_button",
"z": "7df3ced66a8aa735",
"name": "Servo-3 ZU Speicher",
"group": "79264ad14fb207dc",
"order": 12,
"width": 0,
"height": 0,
"passthru": false,
"label": "Servo-3 ZU Speicher",
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"payload": "true",
"payloadType": "bool",
"topic": "topic",
"topicType": "msg",
"x": 500,
"y": 1600,
"wires": [
[
"f523eeede5b73310"
]
]
},
{
"id": "4cf983c3111deca0",
"type": "file",
"z": "7df3ced66a8aa735",
"name": "",
"filename": "pekaway/Servo_3_AUF",
"filenameType": "str",
"appendNewline": false,
"createDir": true,
"overwriteFile": "true",
"encoding": "none",
"x": 970,
"y": 1520,
"wires": [
[]
]
},
{
"id": "9f2018a9ef57600b",
"type": "file",
"z": "7df3ced66a8aa735",
"name": "",
"filename": "pekaway/Servo_3_ZU",
"filenameType": "str",
"appendNewline": false,
"createDir": true,
"overwriteFile": "true",
"encoding": "none",
"x": 980,
"y": 1600,
"wires": [
[]
]
},
{
"id": "5c0cad9257247295",
"type": "file in",
"z": "7df3ced66a8aa735",
"name": "",
"filename": "pekaway/Servo_3_AUF",
"filenameType": "str",
"format": "utf8",
"chunk": false,
"sendError": false,
"encoding": "none",
"allProps": false,
"x": 510,
"y": 1560,
"wires": [
[
"add2f6ea6bd5fdbc"
]
]
},
{
"id": "61904b313bbba556",
"type": "file in",
"z": "7df3ced66a8aa735",
"name": "",
"filename": "pekaway/Servo_3_ZU",
"filenameType": "str",
"format": "utf8",
"chunk": false,
"sendError": false,
"encoding": "none",
"allProps": false,
"x": 500,
"y": 1640,
"wires": [
[
"c30e0a31e9dd5f3e"
]
]
},
{
"id": "8cb70e836cd54cb3",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "global.get Servo_3",
"func": "var on = msg.payload;\nvar auf = Number(global.get(\"Servo_3_AUF\"));\nvar zu = Number(global.get(\"Servo_3_ZU\"));\n\nif (msg.payload === true){\n msg.payload = auf\n}\nif (msg.payload === false){\n msg.payload = zu\n}\n\nreturn msg;\n\n\n",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 730,
"y": 1420,
"wires": [
[
"546310b293967441",
"f946c5dcc68d739b",
"f7fa9e71e6e11125"
]
]
},
{
"id": "fee24f9bbf1f14ba",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "global.set Servo AUF",
"func": "var servo = flow.get(\"Servo_3\");\n\nglobal.set(\"Servo_3_AUF\",servo);\nmsg.payload = servo;\n\nreturn msg;\n\n",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 720,
"y": 1520,
"wires": [
[
"4cf983c3111deca0"
]
]
},
{
"id": "f523eeede5b73310",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "global.set Servo ZU",
"func": "var servo = flow.get(\"Servo_3\");\n\nglobal.set(\"Servo_3_ZU\",servo);\nmsg.payload = servo;\n\nreturn msg;\n\n",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 720,
"y": 1600,
"wires": [
[
"9f2018a9ef57600b"
]
]
},
{
"id": "c30e0a31e9dd5f3e",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "global.set Servo ZU",
"func": "var servo = msg.payload;\n\nglobal.set(\"Servo_3_ZU\",servo);\nmsg.payload = servo;\n\nreturn msg;\n\n",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 720,
"y": 1640,
"wires": [
[]
]
},
{
"id": "add2f6ea6bd5fdbc",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "global.set Servo AUF",
"func": "var servo = msg.payload;\n\nglobal.set(\"Servo_3_AUF\",servo);\nmsg.payload = servo;\n\nreturn msg;\n\n",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 740,
"y": 1560,
"wires": [
[]
]
},
{
"id": "e7d7a97cc3d551c9",
"type": "comment",
"z": "7df3ced66a8aa735",
"name": "Servo Adresse 3",
"info": "",
"x": 700,
"y": 1340,
"wires": []
},
{
"id": "2db9eb6ab1b0469f",
"type": "ui_slider",
"z": "7df3ced66a8aa735",
"name": "",
"label": "Servo-2.1",
"tooltip": "",
"group": "de8dfc55aaf31854",
"order": 6,
"width": 0,
"height": 0,
"passthru": true,
"outs": "end",
"topic": "topic",
"topicType": "msg",
"min": "200",
"max": "2000",
"step": 1,
"className": "",
"x": 700,
"y": 1020,
"wires": [
[
"fcb247ec8c9b9041"
]
]
},
{
"id": "0619752b969505cc",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "flow set ",
"func": "var auf = Number(global.get(\"Servo_2_AUF\"));\nvar zu = Number(global.get(\"Servo_2_ZU\"));\n\nmsg = {\n ui_control:{\n min:zu,\n max:auf\n }\n}\nreturn msg\n \n ",
"outputs": 1,
"timeout": "",
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 560,
"y": 1020,
"wires": [
[
"2db9eb6ab1b0469f"
]
]
},
{
"id": "ccfd5a0de14fe32c",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "flow set ",
"func": "var auf = Number(global.get(\"Servo_3_AUF\"));\nvar zu = Number(global.get(\"Servo_3_ZU\"));\n\nmsg = {\n ui_control:{\n min:zu,\n max:auf\n }\n}\nreturn msg\n \n ",
"outputs": 1,
"timeout": "",
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 560,
"y": 1380,
"wires": [
[
"f7fa9e71e6e11125"
]
]
},
{
"id": "f7fa9e71e6e11125",
"type": "ui_slider",
"z": "7df3ced66a8aa735",
"name": "",
"label": "Servo-3.1",
"tooltip": "",
"group": "de8dfc55aaf31854",
"order": 8,
"width": 0,
"height": 0,
"passthru": true,
"outs": "end",
"topic": "topic",
"topicType": "msg",
"min": "200",
"max": "2000",
"step": 1,
"className": "",
"x": 700,
"y": 1380,
"wires": [
[
"546310b293967441"
]
]
},
{
"id": "2a34ac7039a09e91",
"type": "inject",
"z": "7df3ced66a8aa735",
"name": "100%",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": "",
"topic": "",
"payload": "100",
"payloadType": "num",
"x": 770,
"y": 1900,
"wires": [
[
"e03b3288243445f0"
]
]
},
{
"id": "e34d484e5d1d83d2",
"type": "inject",
"z": "7df3ced66a8aa735",
"name": "50%",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": "",
"topic": "",
"payload": "50",
"payloadType": "num",
"x": 770,
"y": 1940,
"wires": [
[
"e03b3288243445f0"
]
]
},
{
"id": "538600d263176a9f",
"type": "inject",
"z": "7df3ced66a8aa735",
"name": "Off",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": "",
"topic": "",
"payload": "0",
"payloadType": "num",
"x": 770,
"y": 1980,
"wires": [
[
"e03b3288243445f0"
]
]
},
{
"id": "e03b3288243445f0",
"type": "PCA9685 out",
"z": "7df3ced66a8aa735",
"name": "PWM Output 4 (Led)",
"pca9685": "804c98d6fe0be90d",
"channel": "4",
"payload": "",
"unit": "percent",
"onStep": "0",
"x": 950,
"y": 1820,
"wires": []
},
{
"id": "a7d7acbc733a2179",
"type": "comment",
"z": "7df3ced66a8aa735",
"name": "LED-Adresse 4",
"info": "",
"x": 680,
"y": 1760,
"wires": []
},
{
"id": "79c38d1c1719756b",
"type": "ui_slider",
"z": "7df3ced66a8aa735",
"name": "",
"label": "LED-4",
"tooltip": "",
"group": "de8dfc55aaf31854",
"order": 9,
"width": 4,
"height": 1,
"passthru": true,
"outs": "end",
"topic": "topic",
"topicType": "msg",
"min": "0",
"max": "80",
"step": 1,
"className": "",
"x": 410,
"y": 1820,
"wires": [
[
"7fcb1da2de51a29f",
"a74c580c7de4afb8"
]
]
},
{
"id": "7fcb1da2de51a29f",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "flow set ",
"func": "\n\nflow.set(\"PCA_4\", msg.payload);\n \nreturn msg\n \n ",
"outputs": 1,
"timeout": "",
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 540,
"y": 1820,
"wires": [
[
"e03b3288243445f0"
]
]
},
{
"id": "ba9a089e619c3458",
"type": "function",
"z": "7df3ced66a8aa735",
"name": "Global set",
"func": "global.set(\"PCAfour\", msg.payload);\nreturn msg;",
"outputs": 1,
"timeout": "",
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 550,
"y": 1860,
"wires": [
[]
]
},
{
"id": "e361ad9dc7b512cd",
"type": "change",
"z": "7df3ced66a8aa735",
"name": "on=flow PCA",
"rules": [
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "on",
"fromt": "str",
"to": "\"PCA_4\"",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 710,
"y": 1860,
"wires": [
[
"e03b3288243445f0"
]
]
},
{
"id": "eac8caf773b44d8e",
"type": "ui_switch",
"z": "7df3ced66a8aa735",
"name": "LED-4",
"label": "",
"tooltip": "",
"group": "de8dfc55aaf31854",
"order": 10,
"width": 2,
"height": 1,
"passthru": true,
"decouple": "false",
"topic": "",
"topicType": "str",
"style": "",
"onvalue": "on",
"onvalueType": "str",
"onicon": "",
"oncolor": "",
"offvalue": "off",
"offvalueType": "str",
"officon": "",
"offcolor": "",
"animate": true,
"className": "",
"x": 410,
"y": 1860,
"wires": [
[
"ba9a089e619c3458",
"e361ad9dc7b512cd"
]
]
},
{
"id": "a74c580c7de4afb8",
"type": "function",
"z": "7df3ced66a8aa735",
"name": ">=1 = on",
"func": "if (msg.payload>=1){\n msg.payload=\"on\"\n}\nelse msg.payload=\"off\"\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 700,
"y": 1820,
"wires": [
[
"eac8caf773b44d8e"
]
]
},
{
"id": "804c98d6fe0be90d",
"type": "PCA9685",
"deviceNumber": "1",
"address": "64",
"frequency": "200"
},
{
"id": "79264ad14fb207dc",
"type": "ui_group",
"name": "Config",
"tab": "b54a609c296fa188",
"order": 2,
"disp": true,
"width": "6",
"collapse": false,
"className": ""
},
{
"id": "de8dfc55aaf31854",
"type": "ui_group",
"name": "Regler",
"tab": "b54a609c296fa188",
"order": 1,
"disp": true,
"width": "6",
"collapse": false,
"className": ""
},
{
"id": "b54a609c296fa188",
"type": "ui_tab",
"name": "4 Heizungs Regler",
"icon": "dashboard",
"order": 38,
"disabled": false,
"hidden": false
}
]
Viel Spass
Gruß Arno
Servus Arno,
Danke dir
Mit welchen Programm muss ich das auf
spielen auf den PCA
Und es ist mit mehreren stellen dann schaltbar Servos müssen zur grundrindtellung mittig stehen oder
Haste das Van Pi Core System schon???
Das Programm kommt da drauf. Auf dem System läuft NodeRed, der pca9685 ist ein i2c bus Teilnehmer, der pekommt seine Befehle in diesem Fall vom Van Pi Core System.
Ich denke aber du solltest dich mit dem System, und den Komponenten beschäftigen.
Gruß Arno
Oky
Den bekomme ich morgen
Gruß Markus
Servus Zusammen
Ich bräuchte hierbei eure Unterstützung wo genau muss ich das hin kopieren und wie muss ich das anschließen
Gruß Markus
@ Arno
Servus
ich bräuchte hierzu bitte deine Hilfe wo genau ich das hinkopieren oder schreiben muss in node red und wie ich den PCA an den Core anschließen muss.
Gruß Markus
Wenn du das importierst bekommst du am Ende eine neue Seite in Node Red.
Der PCA ist ein I2C Bus Modul.
Also 4 Strippen in der richtigen Reihenfolge an den Bus, und 3,3V, GND anschließen. Richtige Adresse einstellen, glücklich sein
Gruß Arno
Servus Arno
Danke schonmal
Ich probiere es aus ob ich es hin bekomme, wie ist dasbei einen Update wird das dann mit übernommen
Gruß Markus
.Morgen
Nein alles was nicht von Pekaway kommt muss gesichert, und neu importiert werden.
Servus Arno,
Ich hätte dazu noch 2 fragen bevor ich es jetzt umsetze
Der pca9685 ist ein i2c bus Teilnehmer, der pekommt seine Befehle in diesem Fall vom Van Pi verstehe ich. Ich habe aber am ic2 Bus schon den Dimmy dran hängen per Kabel, muss ich dann einen von den Uart nehmen die da neben sind
Das nächste da kommen ja vom Core 3,3V raus oder auch gesagt er verträgt ja nur 3,3V aber mit dem Converter von 12V auf 5V für den pca liegen ja dann 5V an macht das nichts
Gruß Markus
Du nimmst den gleichen bus für den pca9685, das ist ja der Trick an soeinem bus durch die verschiedenen Adressen geht das.
Der pca9685 hat verschiedenen Spannungs Eingänge, einmal die Bus Spannung, und die verbraucher Spannung, Schau mal in die Anleitung