[{"id":"dcbb6baf.a272f8","type":"comment","z":"7112aa8f.bb9df4","name":"PID Control For BBQ Bot","info":"","x":251.89581298828125,"y":642.6666870117188,"wires":[]},{"id":"fbe9d6e9.2dfe98","type":"PID control","z":"7112aa8f.bb9df4","name":"PID Controller","target":"40","kp":"85","ki":"1","kd":"5","x":410.94345474243164,"y":694.0000495910645,"wires":[["5818032.7b1e6fc","616769cd.01cf78"]]},{"id":"5818032.7b1e6fc","type":"debug","z":"7112aa8f.bb9df4","name":"","active":true,"console":"false","complete":"payload","x":650.4791946411133,"y":750.7500553131104,"wires":[]},{"id":"cbd3cc53.37841","type":"mqtt in","z":"7112aa8f.bb9df4","name":"MQTT-tem","topic":"tem","qos":"2","broker":"a5c14b1e.d81948","x":191.51490783691406,"y":695.095064163208,"wires":[["fbe9d6e9.2dfe98"]]},{"id":"fb544c4a.a528e","type":"function","z":"7112aa8f.bb9df4","name":"PLANT","func":"var PID = msg.payload; // PID Value\nvar cycle; // PWM duty cycle\nvar adjustment = 0; // duty cycle adjustment\n\nvar cycle = parseFloat(adjustment) + parseFloat(PID);\n\nif(cycle<0){\n msg.payload=0;\n return msg;\n}\n\nelse if(cycle>100){\n msg.payload=100;\n return msg;\n}\n\nelse\n{\n msg.payload = parseFloat(cycle); \n // 0 - 100\n return msg;\n}\n\nreturn null;","outputs":1,"noerr":0,"x":434.95543616158625,"y":852.2260457447597,"wires":[["77a87f69.1b724","9ea6099f.b3b098"]]},{"id":"77a87f69.1b724","type":"debug","z":"7112aa8f.bb9df4","name":"","active":true,"console":"false","complete":"false","x":658.3244966779437,"y":907.1903563908169,"wires":[]},{"id":"616769cd.01cf78","type":"mqtt out","z":"7112aa8f.bb9df4","name":"MQTT-pid","topic":"pid","qos":"2","retain":"","broker":"a5c14b1e.d81948","x":643.7530005318777,"y":694.6188854490008,"wires":[]},{"id":"a824ca7b.23bdf8","type":"mqtt in","z":"7112aa8f.bb9df4","name":"MQTT-pid","topic":"pid","qos":"2","broker":"a5c14b1e.d81948","x":208.8958990914482,"y":852.04745892116,"wires":[["fb544c4a.a528e"]]},{"id":"16ac219d.3ffe3e","type":"comment","z":"7112aa8f.bb9df4","name":"PID - PLANT","info":"","x":210.32447052001953,"y":808.4760303497314,"wires":[]},{"id":"9ea6099f.b3b098","type":"rpi-gpio out","z":"7112aa8f.bb9df4","name":"","pin":"7","set":false,"level":"0","out":"pwm","x":644.1816133771624,"y":853.4760390690395,"wires":[]},{"id":"c698417f.2094b","type":"mqtt in","z":"7112aa8f.bb9df4","name":"MQTT: hum","topic":"hum","qos":"2","broker":"5ccf7cb6.0e2604","x":209.19554901123047,"y":1015.8890018463135,"wires":[["42ecf7b0.71eb98","34f67512.1c4faa","23ef5e11.31f9b2"]]},{"id":"42ecf7b0.71eb98","type":"debug","z":"7112aa8f.bb9df4","name":"","active":true,"console":"false","complete":"false","x":383.1955337524414,"y":1085.8890018463135,"wires":[]},{"id":"ee30e91b.be64a8","type":"mqtt in","z":"7112aa8f.bb9df4","name":"MQTT: tem","topic":"tem","qos":"2","broker":"5ccf7cb6.0e2604","x":215.19549560546875,"y":1216.2222805023193,"wires":[["4ba510c0.a83fd","841045a.deb70b8","310e8089.413b7","bb280a41.83b548"]]},{"id":"4ba510c0.a83fd","type":"debug","z":"7112aa8f.bb9df4","name":"","active":true,"console":"false","complete":"false","x":422.19550704956055,"y":1296.2222709655762,"wires":[]},{"id":"841045a.deb70b8","type":"ui_gauge","z":"7112aa8f.bb9df4","name":"Temperature [°C]","group":"4d6ed1a0.d9671","order":1,"format":"{{value}}","min":0,"max":"100","x":421.70330810546875,"y":1196.3785305023193,"wires":[]},{"id":"75b90975.578788","type":"mqtt out","z":"7112aa8f.bb9df4","name":"MQTT: Manual SW","topic":"manualsw","qos":"2","retain":"","broker":"5ccf7cb6.0e2604","x":439.6955108642578,"y":1358.3333768844604,"wires":[]},{"id":"310e8089.413b7","type":"mqtt out","z":"7112aa8f.bb9df4","name":"MQTT: DHT11TEMP","topic":"dht11temp","qos":"2","retain":"","broker":"5ccf7cb6.0e2604","x":433.69551722208644,"y":1147.3333985010784,"wires":[]},{"id":"34f67512.1c4faa","type":"ui_gauge","z":"7112aa8f.bb9df4","name":"Humidity [%]","group":"4d6ed1a0.d9671","order":1,"format":"{{value}}","min":0,"max":"100","x":398.5930633544922,"y":1013.0000972747803,"wires":[]},{"id":"9616991b.51d4c8","type":"ui_button","z":"7112aa8f.bb9df4","name":"TURN ON","payload":"1","topic":"","group":"4d6ed1a0.d9671","order":1,"x":255.34307861328125,"y":1338.000051498413,"wires":[["75b90975.578788"]]},{"id":"890a39aa.730888","type":"ui_button","z":"7112aa8f.bb9df4","name":"TURN OFF","payload":"0","topic":"","group":"4d6ed1a0.d9671","order":1,"x":255.00975036621094,"y":1383.5634803771973,"wires":[["75b90975.578788"]]},{"id":"bb280a41.83b548","type":"ui_chart","z":"7112aa8f.bb9df4","name":"Temperature [°C]","group":"4d6ed1a0.d9671","order":1,"interpolate":"linear","nodata":"No Data","removeOlder":1,"removeOlderUnit":"86400","x":423.8430366516113,"y":1233.5000886917114,"wires":[[],[]]},{"id":"23ef5e11.31f9b2","type":"ui_chart","z":"7112aa8f.bb9df4","name":"Humidity [%]","group":"4d6ed1a0.d9671","order":1,"interpolate":"linear","nodata":"No Data","removeOlder":1,"removeOlderUnit":"86400","x":404.8430633544922,"y":1049.2501125335693,"wires":[[],[]]},{"id":"d541c0de.0732b","type":"comment","z":"7112aa8f.bb9df4","name":"Temperature & Humidity - Gauge & Chart","info":"","x":279.18257904052734,"y":962.6666812896729,"wires":[]},{"id":"a5c14b1e.d81948","type":"mqtt-broker","z":"7112aa8f.bb9df4","broker":"iot.eclipse.org","port":"1883","clientid":"","usetls":false,"verifyservercert":true,"compatmode":true,"keepalive":"60","cleansession":true,"willTopic":"","willQos":"0","willRetain":null,"willPayload":"","birthTopic":"","birthQos":"0","birthRetain":null,"birthPayload":""},{"id":"5ccf7cb6.0e2604","type":"mqtt-broker","z":"","broker":"iot.eclipse.org","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"willTopic":"","willQos":"0","willPayload":"","birthTopic":"","birthQos":"0","birthPayload":""}]