Tulip/Banner 24V GPIO: K30PAF100AMGRY3Q

This sample/template flow can be used for integration of the Banner K30PAF100AMGRY3Q Optical Sensor with the Tulip no-code app building platform through the use of 24V GPIO on an EdgeIO device. Refer to the Tulip Knowledge Base for more information.

[{"id":"3dcf726ce7d8af91","type":"tab","label":"K30PAF100AMGRY3Q (24V Optical sensor)","disabled":true,"info":"","env":[]},{"id":"3350717278492dd1","type":"group","z":"3dcf726ce7d8af91","name":"Read Sensor","style":{"label":true},"nodes":["7ddf4e264b20a10d","b635e65dd90395c2","6d8b69ab1ccdc6c5"],"x":34,"y":199,"w":1092,"h":82},{"id":"e99a64c97073a4bd","type":"group","z":"3dcf726ce7d8af91","name":"GPIO","style":{"label":true},"nodes":["9f691db997fa3cf6","c01114e2d7cdc2b3","da3c4ecedc59c24c","bf874e5599dfbc29","f655082c6a7bdf53"],"x":34,"y":39,"w":852,"h":122},{"id":"f9f431844f94acc7","type":"group","z":"3dcf726ce7d8af91","name":"Trigger 3 Colors","style":{"label":true},"nodes":["e667dd4bc985be10","2728410f4099b1f9","1ce033f242798d0a","7485c95722cff2c5","bbc559317997f086","bca01205853f09a6","8d6acc3d5391337b","76ed5a834bc41083","d13fa537d76fc75b","ee91c491c0f51a4f"],"x":34,"y":299,"w":952,"h":222},{"id":"7ddf4e264b20a10d","type":"comment","z":"3dcf726ce7d8af91","g":"3350717278492dd1","name":"Outputs true when movement is sensed, defaults to false. Black wire to GPIN (current setup: Pin 2)","info":"","x":760,"y":240,"wires":[]},{"id":"b635e65dd90395c2","type":"tulip-digital-input","z":"3dcf726ce7d8af91","g":"3350717278492dd1","name":"Black wire","runMode":"continuous","configMode":"static","outputMode":"object","refreshRate":1,"enabledPins":[true,true,true,true,true,true,true,true],"x":120,"y":240,"wires":[["6d8b69ab1ccdc6c5"]]},{"id":"6d8b69ab1ccdc6c5","type":"debug","z":"3dcf726ce7d8af91","g":"3350717278492dd1","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":310,"y":240,"wires":[]},{"id":"9f691db997fa3cf6","type":"tulip-digital-output","z":"3dcf726ce7d8af91","g":"e99a64c97073a4bd","name":"tulip-digital-output","pinsWriteEnabled":[true,true,true,true],"pinLevels":[true,true,true,true],"configMode":"static","x":390,"y":120,"wires":[]},{"id":"c01114e2d7cdc2b3","type":"inject","z":"3dcf726ce7d8af91","g":"e99a64c97073a4bd","name":"Turn On GPIO","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":150,"y":120,"wires":[["9f691db997fa3cf6"]]},{"id":"da3c4ecedc59c24c","type":"inject","z":"3dcf726ce7d8af91","g":"e99a64c97073a4bd","name":"Turn Off GPIO","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":150,"y":80,"wires":[["bf874e5599dfbc29"]]},{"id":"bf874e5599dfbc29","type":"tulip-digital-output","z":"3dcf726ce7d8af91","g":"e99a64c97073a4bd","name":"tulip-digital-output","pinsWriteEnabled":[true,true,true,true],"pinLevels":[false,false,false,true],"configMode":"static","x":390,"y":80,"wires":[]},{"id":"f655082c6a7bdf53","type":"comment","z":"3dcf726ce7d8af91","g":"e99a64c97073a4bd","name":"Brown wire and Blue wire GPOUT need to be on","info":"","x":680,"y":120,"wires":[]},{"id":"e667dd4bc985be10","type":"comment","z":"3dcf726ce7d8af91","g":"f9f431844f94acc7","name":"White wire needs to be wired to GPOUT (current setup: Pin 3)","info":"","x":740,"y":340,"wires":[]},{"id":"2728410f4099b1f9","type":"inject","z":"3dcf726ce7d8af91","g":"f9f431844f94acc7","name":"Turn on Green Light","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":170,"y":400,"wires":[["1ce033f242798d0a"]]},{"id":"1ce033f242798d0a","type":"tulip-digital-output","z":"3dcf726ce7d8af91","g":"f9f431844f94acc7","name":"Turn on only GPIO 3","pinsWriteEnabled":[false,true,true,false],"pinLevels":[true,false,true,true],"configMode":"static","x":380,"y":400,"wires":[]},{"id":"7485c95722cff2c5","type":"inject","z":"3dcf726ce7d8af91","g":"f9f431844f94acc7","name":"Turn off Light","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":190,"y":340,"wires":[["bbc559317997f086"]]},{"id":"bbc559317997f086","type":"tulip-digital-output","z":"3dcf726ce7d8af91","g":"f9f431844f94acc7","name":"Turn off both GPIO 2+3","pinsWriteEnabled":[false,true,true,false],"pinLevels":[true,false,false,true],"configMode":"static","x":390,"y":340,"wires":[]},{"id":"bca01205853f09a6","type":"comment","z":"3dcf726ce7d8af91","g":"f9f431844f94acc7","name":"Gray wire needs to be wired to GPOUT (current setup: Pin 2)","info":"","x":740,"y":380,"wires":[]},{"id":"8d6acc3d5391337b","type":"inject","z":"3dcf726ce7d8af91","g":"f9f431844f94acc7","name":"Turn on Yellow Light","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":170,"y":440,"wires":[["76ed5a834bc41083"]]},{"id":"76ed5a834bc41083","type":"tulip-digital-output","z":"3dcf726ce7d8af91","g":"f9f431844f94acc7","name":"Turn on GPIO 2+3","pinsWriteEnabled":[false,true,true,false],"pinLevels":[true,true,true,true],"configMode":"static","x":370,"y":440,"wires":[]},{"id":"d13fa537d76fc75b","type":"tulip-digital-output","z":"3dcf726ce7d8af91","g":"f9f431844f94acc7","name":"Turn on only GPIO 2","pinsWriteEnabled":[false,true,true,false],"pinLevels":[true,true,false,true],"configMode":"static","x":380,"y":480,"wires":[]},{"id":"ee91c491c0f51a4f","type":"inject","z":"3dcf726ce7d8af91","g":"f9f431844f94acc7","name":"Turn on Red Light","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":170,"y":480,"wires":[["d13fa537d76fc75b"]]}]

Flow Info

Created 9 months ago
Rating: not yet rated

Actions

Rate:

Node Types

Core
  • comment (x4)
  • debug (x1)
  • inject (x6)
Other
  • group (x3)
  • tab (x1)
  • tulip-digital-input (x1)
  • tulip-digital-output (x6)

Tags

  • Tulip
  • Banner
  • K30PAF100AMGRY3Q
  • GPIO
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option