Tulip/Banner 24V GPIO: K30APT2GRCQ

This sample/template flow can be used for integration of the Banner K30APT2GRCQ Touch Button 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":"12ecd3d9dcd7e32e","type":"tab","label":"K30APT2GRCQ (24V Button)","disabled":true,"info":"","env":[]},{"id":"16988b328ee0c022","type":"group","z":"12ecd3d9dcd7e32e","name":"Read Button","style":{"label":true},"nodes":["e106c404fc3843bd","118b512e178727d3","759e706c97f8db5e"],"x":34,"y":179,"w":1052,"h":82},{"id":"cd41e0c34f4f9f81","type":"group","z":"12ecd3d9dcd7e32e","name":"GPIO","style":{"label":true},"nodes":["17f2dff1a06c810c","0e3e79168b48ec8e","d4ef42ad688356e5","cbc414d8d06f5103","a196b01af4c0d5ee"],"x":34,"y":19,"w":972,"h":122},{"id":"c681f2a556622081","type":"group","z":"12ecd3d9dcd7e32e","name":"Trigger Green Color","style":{"label":true},"nodes":["989e0de64adff053","a0a712e712945f41","b246451b4951e1ae","ee2905850ad4c31c","abe1af069b0b168e"],"x":34,"y":279,"w":892,"h":122},{"id":"e106c404fc3843bd","type":"comment","z":"12ecd3d9dcd7e32e","g":"16988b328ee0c022","name":"Outputs true when pressed, false when unpressed. Black wire to GPIN (current setup: Pin 2)","info":"","x":740,"y":220,"wires":[]},{"id":"17f2dff1a06c810c","type":"tulip-digital-output","z":"12ecd3d9dcd7e32e","g":"cd41e0c34f4f9f81","name":"tulip-digital-output","pinsWriteEnabled":[true,true,true,true],"pinLevels":[true,true,true,true],"configMode":"static","x":390,"y":100,"wires":[]},{"id":"0e3e79168b48ec8e","type":"inject","z":"12ecd3d9dcd7e32e","g":"cd41e0c34f4f9f81","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":100,"wires":[["17f2dff1a06c810c"]]},{"id":"d4ef42ad688356e5","type":"inject","z":"12ecd3d9dcd7e32e","g":"cd41e0c34f4f9f81","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":60,"wires":[["cbc414d8d06f5103"]]},{"id":"cbc414d8d06f5103","type":"tulip-digital-output","z":"12ecd3d9dcd7e32e","g":"cd41e0c34f4f9f81","name":"tulip-digital-output","pinsWriteEnabled":[true,true,true,true],"pinLevels":[false,false,false,true],"configMode":"static","x":390,"y":60,"wires":[]},{"id":"a196b01af4c0d5ee","type":"comment","z":"12ecd3d9dcd7e32e","g":"cd41e0c34f4f9f81","name":"Brown wire and Blue wire GPOUT need to be on for K30 to operate","info":"","x":740,"y":100,"wires":[]},{"id":"118b512e178727d3","type":"tulip-digital-input","z":"12ecd3d9dcd7e32e","g":"16988b328ee0c022","name":"Black wire","runMode":"continuous","configMode":"static","outputMode":"object","refreshRate":1,"enabledPins":[true,true,true,true,true,true,true,true],"x":120,"y":220,"wires":[["759e706c97f8db5e"]]},{"id":"759e706c97f8db5e","type":"debug","z":"12ecd3d9dcd7e32e","g":"16988b328ee0c022","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":310,"y":220,"wires":[]},{"id":"989e0de64adff053","type":"comment","z":"12ecd3d9dcd7e32e","g":"c681f2a556622081","name":"White wire needs to be wired to GPOUT (current setup: Pin 3)","info":"","x":680,"y":320,"wires":[]},{"id":"a0a712e712945f41","type":"inject","z":"12ecd3d9dcd7e32e","g":"c681f2a556622081","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":320,"wires":[["b246451b4951e1ae"]]},{"id":"b246451b4951e1ae","type":"tulip-digital-output","z":"12ecd3d9dcd7e32e","g":"c681f2a556622081","name":"Turn on GPIO","pinsWriteEnabled":[false,false,true,false],"pinLevels":[true,true,true,true],"configMode":"static","x":360,"y":320,"wires":[]},{"id":"ee2905850ad4c31c","type":"inject","z":"12ecd3d9dcd7e32e","g":"c681f2a556622081","name":"Turn off Green Light","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":170,"y":360,"wires":[["abe1af069b0b168e"]]},{"id":"abe1af069b0b168e","type":"tulip-digital-output","z":"12ecd3d9dcd7e32e","g":"c681f2a556622081","name":"Turn off GPIO","pinsWriteEnabled":[false,false,true,false],"pinLevels":[true,true,false,true],"configMode":"static","x":360,"y":360,"wires":[]}]

Flow Info

Created 9 months ago
Rating: not yet rated

Actions

Rate:

Node Types

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

Tags

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