Node-RED Control Servo MQTT
源自於http://pdacontrolen.com/tutorial-esp8266-control-servo-node-red/
[{"id":"fcedd20e.08ac6","type":"mqtt out","z":"cb74fe7b.b6c12","name":"","topic":"alex9ufo/inTopic/servo","qos":"1","retain":"false","broker":"e4d9b72d.d14398","x":640,"y":140,"wires":[]},{"id":"a10598db.465ae8","type":"ui_button","z":"cb74fe7b.b6c12","name":"","group":"309b9c97.50a4c4","order":1,"width":0,"height":0,"label":"Min 0%","color":"black","icon":"","payload":"0","payloadType":"num","topic":"","x":217.00003051757812,"y":141.66653442382812,"wires":[["4af995b4.bbdc1c"]]},{"id":"694c6869.decc58","type":"ui_slider","z":"cb74fe7b.b6c12","name":"","label":"Servo","group":"309b9c97.50a4c4","order":4,"width":0,"height":0,"passthru":true,"topic":"","min":0,"max":"100","step":1,"x":214.00003051757812,"y":289.66650390625,"wires":[["4af995b4.bbdc1c"]]},{"id":"bd4806ea.45dcb8","type":"ui_gauge","z":"cb74fe7b.b6c12","name":"","group":"309b9c97.50a4c4","order":5,"width":0,"height":0,"gtype":"donut","title":"Servo position ","label":"position ","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"x":600,"y":200,"wires":[]},{"id":"2db2b1f4.3fb7fe","type":"ui_button","z":"cb74fe7b.b6c12","name":"","group":"309b9c97.50a4c4","order":3,"width":0,"height":0,"label":"Max 100%","color":"black","icon":"","payload":"100","payloadType":"num","topic":"","x":219.00003051757812,"y":230.33319091796875,"wires":[["4af995b4.bbdc1c"]]},{"id":"4af995b4.bbdc1c","type":"function","z":"cb74fe7b.b6c12","name":"node","func":"\nreturn msg;","outputs":1,"noerr":0,"x":405.00006103515625,"y":175.33316040039062,"wires":[["fcedd20e.08ac6","bd4806ea.45dcb8","ce6c6d8.4ebb79"]]},{"id":"ce6c6d8.4ebb79","type":"link out","z":"cb74fe7b.b6c12","name":"slider","links":["192588bf.5ccc17"],"x":561,"y":291.3331298828125,"wires":[]},{"id":"192588bf.5ccc17","type":"link in","z":"cb74fe7b.b6c12","name":"","links":["ce6c6d8.4ebb79"],"x":116.69233512878418,"y":351.7434501647949,"wires":[["694c6869.decc58"]]},{"id":"fabe3fdf.00386","type":"ui_button","z":"cb74fe7b.b6c12","name":"","group":"309b9c97.50a4c4","order":2,"width":0,"height":0,"passthru":false,"label":"50%","tooltip":"","color":"black","bgcolor":"","icon":"","payload":"50","payloadType":"num","topic":"","x":208.00003051757812,"y":183.66650390625,"wires":[["4af995b4.bbdc1c"]]},{"id":"ef26e619.8b1a28","type":"comment","z":"cb74fe7b.b6c12","name":"ESP8266 MQTT Control Servo","info":"","x":282.0000305175781,"y":70.66650390625,"wires":[]},{"id":"e4d9b72d.d14398","type":"mqtt-broker","name":"","broker":"broker.mqtt-dashboard.com","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"15","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"309b9c97.50a4c4","type":"ui_group","name":"Servo Control","tab":"e0a394f8.695aa8","order":2,"disp":true,"width":"6"},{"id":"e0a394f8.695aa8","type":"ui_tab","name":"ESP8266","icon":"dashboard","order":2}]
沒有留言:
張貼留言