ESP-32 encoder

This is so i can finish my paper

[{"id":"eeb7658c602630c6","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"1073a129ca0f9268","type":"mqtt in","z":"eeb7658c602630c6","name":"","topic":"esp32/Encoder2","qos":"2","datatype":"auto-detect","broker":"10e78a89.5b4fd5","nl":false,"rap":true,"rh":0,"inputs":0,"x":140,"y":740,"wires":[["2bf35be48b9ba2ee","2b100f24ef1fb91c"]]},{"id":"5bb477845aa905a9","type":"ui_chart","z":"eeb7658c602630c6","name":"","group":"6819b2be162c5824","order":3,"width":0,"height":0,"label":"Distance","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"-99","ymax":"99","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"className":"","x":300,"y":620,"wires":[[]]},{"id":"c0aa3c53ab604d25","type":"mqtt in","z":"eeb7658c602630c6","name":"","topic":"esp32/Encoder1","qos":"2","datatype":"auto-detect","broker":"10e78a89.5b4fd5","nl":false,"rap":true,"rh":0,"inputs":0,"x":140,"y":580,"wires":[["5bb477845aa905a9","5cb763ba83352628","22d934eff3aec052"]]},{"id":"8c18a769545f84a9","type":"ui_switch","z":"eeb7658c602630c6","name":"","label":"output","tooltip":"","group":"6819b2be162c5824","order":3,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"topic","topicType":"msg","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":110,"y":480,"wires":[["9f9d3b168394128d"]]},{"id":"9f9d3b168394128d","type":"mqtt out","z":"eeb7658c602630c6","name":"","topic":"esp32/OUTPUT","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"10e78a89.5b4fd5","x":320,"y":480,"wires":[]},{"id":"5cb763ba83352628","type":"debug","z":"eeb7658c602630c6","name":"debug 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":320,"y":580,"wires":[]},{"id":"2bf35be48b9ba2ee","type":"debug","z":"eeb7658c602630c6","name":"debug 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":300,"y":780,"wires":[]},{"id":"2b100f24ef1fb91c","type":"ui_gauge","z":"eeb7658c602630c6","name":"","group":"61285987.c20328","order":1,"width":0,"height":0,"gtype":"gage","title":"Encoder 2","label":"units","format":"{{value}}","min":0,"max":10,"colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","diff":false,"className":"","x":310,"y":720,"wires":[]},{"id":"22d934eff3aec052","type":"ui_gauge","z":"eeb7658c602630c6","name":"","group":"61285987.c20328","order":2,"width":0,"height":0,"gtype":"gage","title":"Encoder 1","label":"units","format":"{{value}}","min":0,"max":10,"colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","diff":false,"className":"","x":330,"y":540,"wires":[]},{"id":"10e78a89.5b4fd5","type":"mqtt-broker","name":"","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"6819b2be162c5824","type":"ui_group","name":"Default","tab":"2772fadd95fc7ecc","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"61285987.c20328","type":"ui_group","name":"Main","tab":"e7c46d5e.a1283","order":1,"disp":true,"width":"6","collapse":false},{"id":"2772fadd95fc7ecc","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false},{"id":"e7c46d5e.a1283","type":"ui_tab","name":"Dashboard","icon":"dashboard"}]

Flow Info

Created 1 year, 3 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • debug (x2)
  • mqtt in (x2)
  • mqtt out (x1)
  • mqtt-broker (x1)
Other
  • tab (x1)
  • ui_chart (x1)
  • ui_gauge (x2)
  • ui_group (x2)
  • ui_switch (x1)
  • ui_tab (x2)

Tags

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