Get the height information of a work piece by a camera#36
评论
|
或者使用kinect/intel realsense dephth camera |
|
最后你想要一个外部高度测量来做 z 轴的偏移? |
|
它可能有效,但我没有得到所需的应用程序: Or shows the tool always the same offset and you just need to know the Z-pos of the workpiece surface? |
|
or CX-441 | Compact Photoelectric Sensor https://www3.panasonic.biz/ac/e/search_num/index.jsp?c=detail&part_no=CX-441 |
|
Hi sven, |
|
this is USB Data Acquisition Module video |
|
I think there are two options:
The current implementaion is: I move the specific XY position and start probing, the probing answer from grbl-hardware ([PRB:0.000,0.000,0.000:0]) triggers my heigth-measurement module to store the height information. |
|
Thanks for your help! |
|
happy new year!svenhb |
|
Check the wiki: https://github.com/svenhb/GRBL-Plotter/wiki/DIY-control You should receive the actual Position ca. each 1/5 second. You can calculate the needed movement or action by yourself and send any gcode to set new offset.
|
|
thanks void setup() { void loop() { |
|
and the DIY-control display height information like this: Open COM18 |
|
你需要做什么?也许您发送“G0 Z8.82”来移动 Z 并使您的测量值接近于零?或发送“G92 Z0”立即将 Z 设置为零或发送“G92 Z-8.82”将 Z 设置为您的测量值但是您不应该每 100 毫秒频繁执行一次。也许 GCode 需要一个触发器来处理?
|
|
如果需要触发器,可以使用隐藏在 GCode 注释中的特定命令对自定义按钮进行编程,也许是“($TRG1)”,然后可以通过 DIY 控件产生一条消息,如“[TRG1]”。 在下一个版本中,我将支持这一点:自定义按钮(如“($abc)”)中的任何单个字符串都将通过 DIY-Control 作为“[abc]”发送 |
|
非常感谢!我认为有2种设计可以避免移动z轴,这样可以节省很多时间: 第一种是在grbplotter的height-map模块中增加获取z轴位置信息的方式。之前z的位置是g38.x反馈的,现在改为直接从diy-control接收到的瞬时z值。这个 z 值(以毫米为单位)由第二个 Arduino 通过另一个 COM 发送。 |
|
也许发送“G92 Z-8.82”来设置 Z 值? |
|
啊,你想从你的 z 值生成一个高度图? |
|
是的,我想通过传感器从 z 值生成高度图,第二个 Arduino 每秒发送数百个实际高度到 Diy-control,所以它只移动 XY 轴并避免通过 G38 移动 z 轴.3 获取实际高度。这将提高数百倍的速度并节省大量创建高度图的时间。 |
|
我找到了以下解决方案(在下一个版本中):您以“(PRB:Z-5.12)”格式发送您的值 – 在括号中由 grbl 作为注释处理(如果没有流式传输,则此数据将通过 arduino 传递并将移动 z 轴)。 |
|
如果我设置“Max-depth”为0.01,“Save height”为0,z轴移动0.01mm,机器会抖动影响精度吗? |
|
很好的提示……我做了一个工作来避免 G38。 |
|
好的,谢谢svenhb! |
|
在版本 1.2.3.x 中实现,请检查功能 |





Hi Svenhb ,可以通过USB摄像头的焦距信息获取工件的高度信息来获取高度图数据而不是探头以便更快地处理吗?