Home
Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
Main category
Main forum
Polling inputs
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="indygreg" data-source="post: 522" data-attributes="member: 150"><p>so i updated the hat and tried this flow. when connecting opto1 to gnd i get a response sometimes but other times not. here is my nodered flow </p><p>[</p><p> {</p><p> "id": "4b34ee84d0c70aa3",</p><p> "type": "IOPLUS OPT in",</p><p> "z": "5030df393faa6a5a",</p><p> "name": "",</p><p> "stack": "1",</p><p> "channel": "1",</p><p> "payload": "payload",</p><p> "payloadType": "msg",</p><p> "x": 640,</p><p> "y": 380,</p><p> "wires": [</p><p> [</p><p> "337a055dfafea2fd"</p><p> ]</p><p> ]</p><p> },</p><p> {</p><p> "id": "337a055dfafea2fd",</p><p> "type": "debug",</p><p> "z": "5030df393faa6a5a",</p><p> "name": "debug 3",</p><p> "active": true,</p><p> "tosidebar": true,</p><p> "console": false,</p><p> "tostatus": false,</p><p> "complete": "payload",</p><p> "targetType": "msg",</p><p> "statusVal": "",</p><p> "statusType": "auto",</p><p> "x": 860,</p><p> "y": 380,</p><p> "wires": []</p><p> },</p><p> {</p><p> "id": "bd692008508c49c0",</p><p> "type": "rpi-gpio in",</p><p> "z": "5030df393faa6a5a",</p><p> "name": "",</p><p> "pin": "26",</p><p> "intype": "tri",</p><p> "debounce": "5",</p><p> "read": true,</p><p> "bcm": true,</p><p> "x": 210,</p><p> "y": 380,</p><p> "wires": [</p><p> [</p><p> "1db09222d32df279",</p><p> "bababaebece77869"</p><p> ]</p><p> ]</p><p> },</p><p> {</p><p> "id": "1db09222d32df279",</p><p> "type": "debug",</p><p> "z": "5030df393faa6a5a",</p><p> "name": "debug 10",</p><p> "active": false,</p><p> "tosidebar": true,</p><p> "console": false,</p><p> "tostatus": false,</p><p> "complete": "false",</p><p> "statusVal": "",</p><p> "statusType": "auto",</p><p> "x": 390,</p><p> "y": 320,</p><p> "wires": []</p><p> },</p><p> {</p><p> "id": "bababaebece77869",</p><p> "type": "switch",</p><p> "z": "5030df393faa6a5a",</p><p> "name": "filter for 0",</p><p> "property": "payload",</p><p> "propertyType": "msg",</p><p> "rules": [</p><p> {</p><p> "t": "eq",</p><p> "v": "0",</p><p> "vt": "str"</p><p> }</p><p> ],</p><p> "checkall": "true",</p><p> "repair": false,</p><p> "outputs": 1,</p><p> "x": 420,</p><p> "y": 380,</p><p> "wires": [</p><p> [</p><p> "4b34ee84d0c70aa3"</p><p> ]</p><p> ]</p><p> }</p><p>]</p></blockquote><p></p>
[QUOTE="indygreg, post: 522, member: 150"] so i updated the hat and tried this flow. when connecting opto1 to gnd i get a response sometimes but other times not. here is my nodered flow [ { "id": "4b34ee84d0c70aa3", "type": "IOPLUS OPT in", "z": "5030df393faa6a5a", "name": "", "stack": "1", "channel": "1", "payload": "payload", "payloadType": "msg", "x": 640, "y": 380, "wires": [ [ "337a055dfafea2fd" ] ] }, { "id": "337a055dfafea2fd", "type": "debug", "z": "5030df393faa6a5a", "name": "debug 3", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 860, "y": 380, "wires": [] }, { "id": "bd692008508c49c0", "type": "rpi-gpio in", "z": "5030df393faa6a5a", "name": "", "pin": "26", "intype": "tri", "debounce": "5", "read": true, "bcm": true, "x": 210, "y": 380, "wires": [ [ "1db09222d32df279", "bababaebece77869" ] ] }, { "id": "1db09222d32df279", "type": "debug", "z": "5030df393faa6a5a", "name": "debug 10", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 390, "y": 320, "wires": [] }, { "id": "bababaebece77869", "type": "switch", "z": "5030df393faa6a5a", "name": "filter for 0", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "0", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 420, "y": 380, "wires": [ [ "4b34ee84d0c70aa3" ] ] } ] [/QUOTE]
Verification
Post reply
Home
Forums
Main category
Main forum
Polling inputs
Top