Instantly share code, notes, and snippets.

Embed
What would you like to do?
Node-RED Edison Car Configuration
[{
"id": "40490b95.bfb6f4",
"type": "http in",
"z": "cde94781.3216b8",
"name": "Stop",
"url": "/stop",
"method": "get",
"swaggerDoc": "",
"x": 76,
"y": 189,
"wires": [
["8cab820f.73548", "cd3533a.f32cad"]
]
}, {
"id": "8be7a9a5.741858",
"type": "mraa-gpio-dout",
"z": "cde94781.3216b8",
"name": "D0 (RF)",
"pin": "0",
"set": true,
"level": "0",
"x": 759,
"y": 236,
"wires": []
}, {
"id": "8cab820f.73548",
"type": "http response",
"z": "cde94781.3216b8",
"name": "Done",
"x": 352,
"y": 124,
"wires": []
}, {
"id": "3e65b23a.c19a4e",
"type": "mraa-gpio-dout",
"z": "cde94781.3216b8",
"name": "D1 (RF)",
"pin": "1",
"set": true,
"level": "0",
"x": 757,
"y": 276,
"wires": []
}, {
"id": "8c9bbd72.73644",
"type": "http in",
"z": "cde94781.3216b8",
"name": "Forward",
"url": "/forward",
"method": "get",
"swaggerDoc": "",
"x": 68,
"y": 290,
"wires": [
["8cab820f.73548", "61acf4ca.9e530c", "a0497549.5fb688"]
]
}, {
"id": "522d7c9f.add284",
"type": "mraa-gpio-dout",
"z": "cde94781.3216b8",
"name": "D2 (LF)",
"pin": "2",
"set": true,
"level": "0",
"x": 754,
"y": 320,
"wires": []
}, {
"id": "2ef58766.d10a78",
"type": "mraa-gpio-dout",
"z": "cde94781.3216b8",
"name": "D3 (LF)",
"pin": "3",
"set": true,
"level": "0",
"x": 752,
"y": 358,
"wires": []
}, {
"id": "61acf4ca.9e530c",
"type": "function",
"z": "cde94781.3216b8",
"name": "High",
"func": "msg.payload = 1;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 347,
"y": 245,
"wires": [
["3e65b23a.c19a4e", "2ef58766.d10a78", "4c09943a.b3f66c", "fce3ec42.031c1"]
]
}, {
"id": "cd3533a.f32cad",
"type": "function",
"z": "cde94781.3216b8",
"name": "Low",
"func": "msg.payload = 0;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 357,
"y": 177,
"wires": [
["3e65b23a.c19a4e", "522d7c9f.add284", "2ef58766.d10a78", "8be7a9a5.741858", "169345.ffe96cbb", "4c09943a.b3f66c", "21e4bedd.de1b42", "fce3ec42.031c1"]
]
}, {
"id": "a665b6d3.599a48",
"type": "http in",
"z": "cde94781.3216b8",
"name": "Backward",
"url": "/reverse",
"method": "get",
"swaggerDoc": "",
"x": 62,
"y": 400,
"wires": [
["3347d7e8.ccb828", "8cab820f.73548", "e379a4bc.1c8658"]
]
}, {
"id": "3347d7e8.ccb828",
"type": "function",
"z": "cde94781.3216b8",
"name": "High",
"func": "msg.payload = 1;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 334,
"y": 387,
"wires": [
["8be7a9a5.741858", "522d7c9f.add284", "169345.ffe96cbb", "21e4bedd.de1b42"]
]
}, {
"id": "a0497549.5fb688",
"type": "function",
"z": "cde94781.3216b8",
"name": "Low",
"func": "msg.payload = 0;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 354,
"y": 301,
"wires": [
["8be7a9a5.741858", "522d7c9f.add284", "169345.ffe96cbb", "21e4bedd.de1b42"]
]
}, {
"id": "e379a4bc.1c8658",
"type": "function",
"z": "cde94781.3216b8",
"name": "Low",
"func": "msg.payload = 0;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 340,
"y": 435,
"wires": [
["3e65b23a.c19a4e", "2ef58766.d10a78", "4c09943a.b3f66c", "fce3ec42.031c1"]
]
}, {
"id": "169345.ffe96cbb",
"type": "mraa-gpio-dout",
"z": "cde94781.3216b8",
"name": "D4 (RB)",
"pin": "4",
"set": true,
"level": "0",
"x": 768,
"y": 436,
"wires": []
}, {
"id": "4c09943a.b3f66c",
"type": "mraa-gpio-dout",
"z": "cde94781.3216b8",
"name": "D5 (RB)",
"pin": "5",
"set": true,
"level": "0",
"x": 766,
"y": 476,
"wires": []
}, {
"id": "21e4bedd.de1b42",
"type": "mraa-gpio-dout",
"z": "cde94781.3216b8",
"name": "D6 (LB)",
"pin": "6",
"set": true,
"level": "0",
"x": 763,
"y": 520,
"wires": []
}, {
"id": "fce3ec42.031c1",
"type": "mraa-gpio-dout",
"z": "cde94781.3216b8",
"name": "D7 (LB)",
"pin": "7",
"set": true,
"level": "0",
"x": 761,
"y": 558,
"wires": []
}, {
"id": "b4bfad97.4b405",
"type": "http in",
"z": "cde94781.3216b8",
"name": "Left",
"url": "/left",
"method": "get",
"swaggerDoc": "",
"x": 61,
"y": 553,
"wires": [
["1d670c.ffe298f4", "2c3065d8.d3cf9a", "8cab820f.73548"]
]
}, {
"id": "1d670c.ffe298f4",
"type": "function",
"z": "cde94781.3216b8",
"name": "High",
"func": "msg.payload = 1;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 321,
"y": 521,
"wires": [
["3e65b23a.c19a4e", "4c09943a.b3f66c"]
]
}, {
"id": "2c3065d8.d3cf9a",
"type": "function",
"z": "cde94781.3216b8",
"name": "Low",
"func": "msg.payload = 0;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 318,
"y": 572,
"wires": [
["522d7c9f.add284", "2ef58766.d10a78", "8be7a9a5.741858", "169345.ffe96cbb", "21e4bedd.de1b42", "fce3ec42.031c1"]
]
}, {
"id": "976fa58c.689058",
"type": "http in",
"z": "cde94781.3216b8",
"name": "Right",
"url": "/right",
"method": "get",
"swaggerDoc": "",
"x": 60,
"y": 659,
"wires": [
["a927dad8.56d828", "826b9ffa.7d946", "8cab820f.73548"]
]
}, {
"id": "a927dad8.56d828",
"type": "function",
"z": "cde94781.3216b8",
"name": "High",
"func": "msg.payload = 1;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 326,
"y": 643,
"wires": [
["fce3ec42.031c1", "2ef58766.d10a78"]
]
}, {
"id": "826b9ffa.7d946",
"type": "function",
"z": "cde94781.3216b8",
"name": "Low",
"func": "msg.payload = 0;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 323,
"y": 694,
"wires": [
["8be7a9a5.741858", "3e65b23a.c19a4e", "169345.ffe96cbb", "4c09943a.b3f66c", "21e4bedd.de1b42", "522d7c9f.add284"]
]
}, {
"id": "8bdd7400.74229",
"type": "mraa-gpio-din",
"z": "cde94781.3216b8",
"name": "Kill Button",
"pin": "8",
"interrupt": "b",
"x": 75,
"y": 236,
"wires": [
["cd3533a.f32cad"]
]
}, {
"id": "2c6147bc.d39eb8",
"type": "mraa-gpio-din",
"z": "cde94781.3216b8",
"name": "",
"pin": "",
"interrupt": "",
"x": 125,
"y": 74,
"wires": [
[]
]
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment