I have setup four nodes using the RPI-GPIO-In nodes.
I am aiming at storing alarms into Influxdb. If the GPIO is High the function output "1" if GPIO is low the function output a "0".
The nodes work correctly when I inject the 0 or 1 from Nodered.
It doesn't work when the real physical high happens injecting 3.2 V to the pin. At time it works other times instead of one pin high the nodes give me multiple pins high. Something is wrong.
Here is my node:
[{"id":"cc08c4d980616d50","type":"rpi-gpio in","z":"4e4990f3.d4ada","name":"Digi1","pin":"33","intype":"tri","debounce":"1000","read":false,"x":210,"y":440,"wires":[["631ad68655357cb0"]]},{"id":"1b5a1b7ac77825e9","type":"rpi-gpio in","z":"4e4990f3.d4ada","name":"Digi4","pin":"15","intype":"tri","debounce":"1000","read":false,"x":210,"y":860,"wires":[["e00a34770df4768c"]]},{"id":"eff3f759c2e735d7","type":"rpi-gpio in","z":"4e4990f3.d4ada","name":"Digi3","pin":"13","intype":"tri","debounce":"1000","read":false,"x":210,"y":720,"wires":[["ce490c93d11a0064"]]},{"id":"19d8e7f9151ccdd6","type":"rpi-gpio in","z":"4e4990f3.d4ada","name":"Digi2","pin":"11","intype":"tri","debounce":"1000","read":false,"x":210,"y":580,"wires":[["0ff9ad772d22ebea"]]},{"id":"ec5eed2580800251","type":"debug","z":"4e4990f3.d4ada","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":510,"y":400,"wires":[]},{"id":"631ad68655357cb0","type":"function","z":"4e4990f3.d4ada","name":"","func":"var D= msg.payload\nmsg.payload={\"Digi1\": D};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":340,"y":440,"wires":[["ec5eed2580800251","7642286748afd7c9","4b48f8c4ecf91f7a"]]},{"id":"0ff9ad772d22ebea","type":"function","z":"4e4990f3.d4ada","name":"","func":"var D= msg.payload\nmsg.payload={\"Digi2\": D};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":340,"y":580,"wires":[["70e8097fbf8cf778","67ee41c72c281da5","2359fb37468b4149"]]},{"id":"ce490c93d11a0064","type":"function","z":"4e4990f3.d4ada","name":"","func":"var D= msg.payload\nmsg.payload={\"Digi3\": D};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":340,"y":720,"wires":[["c935a383d24b16c6","b90190576a86f390","e862f4066071b713"]]},{"id":"e00a34770df4768c","type":"function","z":"4e4990f3.d4ada","name":"","func":"var D= msg.payload\nmsg.payload={\"Digi4\": D};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":340,"y":860,"wires":[["86475015814e3835","4d2280e842b3a856","90148ce2bdcaa22b"]]},{"id":"67ee41c72c281da5","type":"debug","z":"4e4990f3.d4ada","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":490,"y":540,"wires":[]},{"id":"b90190576a86f390","type":"debug","z":"4e4990f3.d4ada","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":510,"y":680,"wires":[]},{"id":"4d2280e842b3a856","type":"debug","z":"4e4990f3.d4ada","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":490,"y":820,"wires":[]},{"id":"47fc6e50e6153506","type":"inject","z":"4e4990f3.d4ada","name":"","props":[{"p":"payload"},{"p":"topic","v":"1","vt":"num"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":70,"y":660,"wires":[["631ad68655357cb0","0ff9ad772d22ebea","ce490c93d11a0064","e00a34770df4768c"]]},{"id":"81e917c6a831d839","type":"inject","z":"4e4990f3.d4ada","name":"","props":[{"p":"payload"},{"p":"topic","v":"0","vt":"num"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":70,"y":620,"wires":[["631ad68655357cb0","0ff9ad772d22ebea","ce490c93d11a0064","e00a34770df4768c"]]}]
Do I need to setup the 4 GPIO with a Python script as input before using the GPIO node?