Simple monitoring dashboard for Dobot

This flow lets you monitor the current state of your Dobot robotic arm.

In order to make this work, simply connect your Dobot via USB and select the port in the Serial Node.

[{"id":"803518f8.1d9808","type":"ui_tab","z":"","name":"Dobot","icon":"dashboard","order":"1"},{"id":"74949b60.c22fe4","type":"subflow","name":"Dobot Monitoring","info":"","in":[{"x":-40,"y":360,"wires":[{"id":"744c350a.093d1c"}]}],"out":[]},{"id":"744c350a.093d1c","type":"binary","z":"74949b60.c22fe4","name":"Return Packet Format","pattern":"b8a=>header, b32f=>x, b32f=>y, b32f=>z, b32f=>rHead, b32f=>baseAngle, b32f=>longArmAngle, b32f=>shortArmAngle, b32f=>pawArmAngle, b32f=>isGrab, b32f=>gripperAngle, b8a=>tail","x":140,"y":360,"wires":[["ec80daa8.096128"]]},{"id":"711d7d1e.de89a4","type":"ui_slider","z":"74949b60.c22fe4","tab":"803518f8.1d9808","name":"X","topic":"","group":"Monitoring","order":1,"min":0,"max":"300","x":670,"y":260,"wires":[[]]},{"id":"7ae632d7.0c7b9c","type":"ui_slider","z":"74949b60.c22fe4","tab":"803518f8.1d9808","name":"Z","topic":"","group":"Monitoring","order":1,"min":"-100","max":"10","x":670,"y":340,"wires":[[]]},{"id":"76f5b963.51a6f8","type":"ui_slider","z":"74949b60.c22fe4","tab":"803518f8.1d9808","name":"Y","topic":"","group":"Monitoring","order":1,"min":"-100","max":"100","x":670,"y":300,"wires":[[]]},{"id":"3aefb795.9c0c38","type":"change","z":"74949b60.c22fe4","name":"X Coordinate","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.x","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":260,"wires":[["711d7d1e.de89a4"]]},{"id":"2d208c12.0b4624","type":"change","z":"74949b60.c22fe4","name":"Y Coordinate","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.y","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":300,"wires":[["76f5b963.51a6f8"]]},{"id":"12bfb452.bb992c","type":"change","z":"74949b60.c22fe4","name":"Z Coordinate","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.z","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":340,"wires":[["7ae632d7.0c7b9c"]]},{"id":"956a9b28.ad9308","type":"debug","z":"74949b60.c22fe4","name":"","active":true,"console":"false","complete":"false","x":490,"y":220,"wires":[]},{"id":"ec80daa8.096128","type":"rbe","z":"74949b60.c22fe4","name":"","func":"rbe","gap":"","start":"","x":310,"y":360,"wires":[["3aefb795.9c0c38","2d208c12.0b4624","12bfb452.bb992c","956a9b28.ad9308","cbc3509f.f51d6","8649a5ea.cbc5f8","54490f00.0dc1f","5394d1e6.96dea","358045ea.30996a","3897b534.b826da","7c21ae03.6544"]]},{"id":"8649a5ea.cbc5f8","type":"change","z":"74949b60.c22fe4","name":"Long Arm Angle","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.longArmAngle","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":500,"y":460,"wires":[["7770c57f.ec60bc"]]},{"id":"54490f00.0dc1f","type":"change","z":"74949b60.c22fe4","name":"Short Arm Angle","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.shortArmAngle","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":500,"y":500,"wires":[["e0c0eec9.b861c"]]},{"id":"cbc3509f.f51d6","type":"change","z":"74949b60.c22fe4","name":"Base Angle","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.baseAngle","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":420,"wires":[["f418dcb4.66d04"]]},{"id":"f418dcb4.66d04","type":"ui_slider","z":"74949b60.c22fe4","tab":"803518f8.1d9808","name":"Base Angle","topic":"","group":"Monitoring","order":1,"min":"-90","max":"90","x":690,"y":420,"wires":[[]]},{"id":"7770c57f.ec60bc","type":"ui_slider","z":"74949b60.c22fe4","tab":"803518f8.1d9808","name":"Long Arm Angle","topic":"","group":"Monitoring","order":1,"min":"0","max":"40","x":700,"y":460,"wires":[[]]},{"id":"e0c0eec9.b861c","type":"ui_slider","z":"74949b60.c22fe4","tab":"803518f8.1d9808","name":"Short Arm Angle","topic":"","group":"Monitoring","order":1,"min":"0","max":"60","x":700,"y":500,"wires":[[]]},{"id":"d18f24c.c7d99d8","type":"ui_switch","z":"74949b60.c22fe4","tab":"803518f8.1d9808","name":"Grab Status","topic":"","group":"","order":1,"onvalue":"true","offvalue":"false","x":690,"y":580,"wires":[[]]},{"id":"5394d1e6.96dea","type":"change","z":"74949b60.c22fe4","name":"Grab Status","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.isGrab","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":580,"wires":[["d18f24c.c7d99d8"]]},{"id":"358045ea.30996a","type":"change","z":"74949b60.c22fe4","name":"Gripper Angle","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.gripperAngle","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":500,"y":620,"wires":[["7abdbc27.3f2974"]]},{"id":"7abdbc27.3f2974","type":"ui_slider","z":"74949b60.c22fe4","tab":"803518f8.1d9808","name":"Gripper Angle","topic":"","group":"Monitoring","order":1,"min":"0","max":"60","x":700,"y":620,"wires":[[]]},{"id":"3897b534.b826da","type":"change","z":"74949b60.c22fe4","name":"Rotation Angle","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.rHead","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":500,"y":380,"wires":[["d635456e.9ea628"]]},{"id":"d635456e.9ea628","type":"ui_slider","z":"74949b60.c22fe4","tab":"803518f8.1d9808","name":"Rotation","topic":"","group":"Monitoring","order":1,"min":"-90","max":"90","x":680,"y":380,"wires":[[]]},{"id":"7c21ae03.6544","type":"change","z":"74949b60.c22fe4","name":"Paw Arm Angle","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.pawArmAngle","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":500,"y":540,"wires":[["f0c49e55.a9b19"]]},{"id":"f0c49e55.a9b19","type":"ui_slider","z":"74949b60.c22fe4","tab":"803518f8.1d9808","name":"Paw Arm Angle","topic":"","group":"Monitoring","order":1,"min":"0","max":"60","x":700,"y":540,"wires":[[]]},{"id":"a1d2b0c5.7ad9d","type":"serial-port","z":"1e081279.5ad0ee","serialport":"/dev/cu.usbmodem1411","serialbaud":"256000","databits":"8","parity":"none","stopbits":"1","newline":"42","bin":"bin","out":"count","addchar":false},{"id":"ccda9d86.23f28","type":"serial in","z":"1e081279.5ad0ee","name":"","serial":"a1d2b0c5.7ad9d","x":150,"y":60,"wires":[["7ab1d73d.8a7ad8"]]},{"id":"7ab1d73d.8a7ad8","type":"subflow:74949b60.c22fe4","z":"1e081279.5ad0ee","name":"Dobot Monitoring","x":410,"y":60,"wires":[]}]
mschm

Flow Info

created 1 year, 4 months ago

Node Types

Core
  • change (x10)
  • debug (x1)
  • serial in (x1)
  • serial-port (x1)
Other
  • binary (x1)
  • rbe (x1)
  • subflow (x1)
  • subflow:74949b60.c22fe4 (x1)
  • ui_slider (x9)
  • ui_switch (x1)
  • ui_tab (x1)

Tags

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