Files
xod/docs/guide/analog-sensor-node/sharp-irm.step3.xodball

356 lines
8.1 KiB
Plaintext

{
"name": "sharp-irm",
"patches": {
"@/gp2y0a02-range-meter": {
"comments": {
"Bko0B0xsgz": {
"content": "Divide by 100 to convert centimeters to meters",
"id": "Bko0B0xsgz",
"position": {
"x": 136,
"y": 612
},
"size": {
"height": 51,
"width": 170
}
},
"H1FCSCxsxf": {
"content": "Map the voltage to inverse distance (1/cm)",
"id": "H1FCSCxsxf",
"position": {
"x": 272,
"y": 408
},
"size": {
"height": 51,
"width": 136
}
},
"SJu0H0xsxz": {
"content": "Multiply by AVcc to get the voltage level",
"id": "SJu0H0xsxz",
"position": {
"x": 170,
"y": 306
},
"size": {
"height": 51,
"width": 170
}
},
"rJqArResef": {
"content": "Invert the distance",
"id": "rJqArResef",
"position": {
"x": 136,
"y": 510
},
"size": {
"height": 51,
"width": 136
}
}
},
"links": {
"BJ80H0xixG": {
"id": "BJ80H0xixG",
"input": {
"nodeId": "SyfABRgjgG",
"pinKey": "BytUCdHD1-"
},
"output": {
"nodeId": "HkWRBRxigf",
"pinKey": "H12bIR_SPyZ"
}
},
"BJw0SRgoeG": {
"id": "BJw0SRgoeG",
"input": {
"nodeId": "rJQABAgilM",
"pinKey": "SkdIRuBD1b"
},
"output": {
"nodeId": "SyfABRgjgG",
"pinKey": "BkqLCOSw1W"
}
},
"ByLeGi0ym": {
"id": "ByLeGi0ym",
"input": {
"nodeId": "SJAyGsRJQ",
"pinKey": "SkUhQ5RkQ"
},
"output": {
"nodeId": "SyeOgZsgG",
"pinKey": "__out__"
}
},
"HJfxGiRJX": {
"id": "HJfxGiRJX",
"input": {
"nodeId": "Skg0rRxjeM",
"pinKey": "B1GfLR_SPk-"
},
"output": {
"nodeId": "SJAyGsRJQ",
"pinKey": "BkoeN9Ay7"
}
},
"Hk0xGjCJm": {
"id": "Hk0xGjCJm",
"input": {
"nodeId": "SJAyGsRJQ",
"pinKey": "r1l3XcR17"
},
"output": {
"nodeId": "HkhxMoR1X",
"pinKey": "__out__"
}
},
"Hy4CHCeigf": {
"id": "Hy4CHCeigf",
"input": {
"nodeId": "HkWRBRxigf",
"pinKey": "BJlzICOSv1-"
},
"output": {
"nodeId": "Skg0rRxjeM",
"pinKey": "BkQzLCurwJZ"
}
},
"SkxtlZjxG": {
"id": "SkxtlZjxG",
"input": {
"nodeId": "Skg0rRxjeM",
"pinKey": "SJ4zUC_BD1-"
},
"output": {
"nodeId": "BJqdlWogG",
"pinKey": "__out__"
}
},
"rkxd0lixz": {
"id": "rkxd0lixz",
"input": {
"nodeId": "SkTw0gjgf",
"pinKey": "__in__"
},
"output": {
"nodeId": "rJQABAgilM",
"pinKey": "BkqLCOSw1W"
}
}
},
"nodes": {
"BJqdlWogG": {
"boundLiterals": {
"__out__": "5"
},
"id": "BJqdlWogG",
"label": "AVcc",
"position": {
"x": 102,
"y": 204
},
"type": "xod/patch-nodes/input-number"
},
"HkWRBRxigf": {
"boundLiterals": {
"HJCWLAdSwyW": "2",
"rJbGU0_Hv1Z": "0.02",
"rkpbU0OrwyZ": "0.033",
"ry1z8CuBDy-": "1.25"
},
"id": "HkWRBRxigf",
"position": {
"x": 68,
"y": 408
},
"type": "xod/math/map"
},
"HkhxMoR1X": {
"id": "HkhxMoR1X",
"label": "PORT",
"position": {
"x": 34,
"y": 0
},
"type": "xod/patch-nodes/input-port"
},
"SJAyGsRJQ": {
"id": "SJAyGsRJQ",
"position": {
"x": 34,
"y": 102
},
"type": "xod/common-hardware/analog-sensor"
},
"SkTw0gjgf": {
"id": "SkTw0gjgf",
"label": "Dm",
"position": {
"x": 34,
"y": 714
},
"type": "xod/patch-nodes/output-number"
},
"Skg0rRxjeM": {
"boundLiterals": {
"SJ4zUC_BD1-": "5"
},
"id": "Skg0rRxjeM",
"position": {
"x": 68,
"y": 306
},
"type": "xod/core/multiply"
},
"SyeOgZsgG": {
"boundLiterals": {
"__out__": "Continuously"
},
"id": "SyeOgZsgG",
"label": "UPD",
"position": {
"x": 136,
"y": 0
},
"type": "xod/patch-nodes/input-pulse"
},
"SyfABRgjgG": {
"boundLiterals": {
"SkdIRuBD1b": "1"
},
"id": "SyfABRgjgG",
"position": {
"x": 34,
"y": 510
},
"type": "xod/core/divide"
},
"rJQABAgilM": {
"boundLiterals": {
"BytUCdHD1-": "100"
},
"id": "rJQABAgilM",
"position": {
"x": 34,
"y": 612
},
"type": "xod/core/divide"
}
},
"path": "@/gp2y0a02-range-meter"
},
"@/main": {
"comments": {
"HJcjI-olf": {
"content": "Look! We can read three sensors at once",
"id": "HJcjI-olf",
"position": {
"x": 204,
"y": 102
},
"size": {
"height": 51,
"width": 136
}
}
},
"links": {
"BJlK0ljez": {
"id": "BJlK0ljez",
"input": {
"nodeId": "HyIFsxjgG",
"pinKey": "HkXK-dGob"
},
"output": {
"nodeId": "BytOAxolG",
"pinKey": "SkTw0gjgf"
}
},
"HJWihGWsxG": {
"id": "HJWihGWsxG",
"input": {
"nodeId": "B1s3zWoeM",
"pinKey": "HkXK-dGob"
},
"output": {
"nodeId": "Hyxo2G-jxf",
"pinKey": "SkTw0gjgf"
}
},
"Hy-YhGZjez": {
"id": "Hy-YhGZjez",
"input": {
"nodeId": "HJF3MWjgG",
"pinKey": "HkXK-dGob"
},
"output": {
"nodeId": "H1xY2GWjez",
"pinKey": "SkTw0gjgf"
}
}
},
"nodes": {
"B1s3zWoeM": {
"id": "B1s3zWoeM",
"position": {
"x": 68,
"y": 204
},
"type": "xod/core/watch"
},
"BytOAxolG": {
"boundLiterals": {
"HJ7vCgjef": "1"
},
"id": "BytOAxolG",
"position": {
"x": -68,
"y": 102
},
"type": "@/gp2y0a02-range-meter"
},
"H1xY2GWjez": {
"id": "H1xY2GWjez",
"position": {
"x": -204,
"y": 102
},
"type": "@/gp2y0a02-range-meter"
},
"HJF3MWjgG": {
"id": "HJF3MWjgG",
"position": {
"x": -204,
"y": 204
},
"type": "xod/core/watch"
},
"HyIFsxjgG": {
"id": "HyIFsxjgG",
"position": {
"x": -68,
"y": 204
},
"type": "xod/core/watch"
},
"Hyxo2G-jxf": {
"boundLiterals": {
"HJ7vCgjef": "2"
},
"id": "Hyxo2G-jxf",
"position": {
"x": 68,
"y": 102
},
"type": "@/gp2y0a02-range-meter"
}
},
"path": "@/main"
}
}
}