当前位置:首页 > 技术 > 雕刻机 > 正文内容

GRBL v1.1版本的限位开关连接

Watrt5年前 (2019-09-06)雕刻机32860

     GRBL v1.1版本的限位开关连接wiki翻译

Wiring Limit Switches

Source websit:https://github.com/gnea/grbl/wiki/Wiring-Limit-Switches

The limit switchesare used to detect the physical limits of the working area and to position thehead in initial position during the homing process. Properly connected limitswitches can increase significantly the reliability of the GRBL - themicrocontroller pins connected to the switches are very vulnerable to anynoise.

限位开关使是用来给工作区域做物理限制和给原点回归提供初始位置用的,适当的方法连接限位开关可以提高Grbl的可靠性,因为单片机的引脚非常容易收到噪声干扰

Before starting,make sure your coordinate frame is setup properly on your CNC machine andsatisfies the right-hand rule. If you're not sure, its explained in the quicksetup guide here.Otherwise, you will likely encounter problems with the homing cycle, where itbehaves strangely. If you are having issues with the homing cycle, read this FAQ.

在此之前,确保你的CNC机器上的坐标系是设置正确并且满足右手定则,如果你不确定,你可以去快速安装指南中查看,除此之外,你也可能会遇到原点回归的问题,有些行为会有些奇怪,如果你有这些问题,你可以去FAQ里面阅读

There are twotypes of end switches wiring:

有两种限位开关的接线方式

  • Normally Opened end switches (NO) - switches are connected in parallel, if the head hits one of the switches the resistance becomes low (<10 Ohm). The wiring is simple but there is no indication if one of the switches is disconnected (broken wire).

  • 常开型开关-开关是并联的,如果触头碰到一个开关,电平就会变低,这种连接是简单的,但是无法检测开关是否有断开

  • Normally Closed end switches (NC) - switches are connected in serial, if the head hits one of the switches the resistance become high (> 1 MOhm). The wiring is more complicated but if any of the switches is disconnected (broken wire) this will be immediately detected. This is the way how all professional CNC machines end switches were wired.

  • 常闭型开关-开关是串联的,如果触头碰到一个开关电平就会变高,这种连接是比较复杂的,但是一旦有任何开关断开连接都将呗立刻检测到,这是现在许多数控机床使用的一种连接方法

The easiest way toattach limit switches to Arduino UNO is to just connect the switches to thecorresponding pins and to rely on the internal weak pull up resistors (~47K) ofthe ATMega328 chip. The Normal connected (NC) switch wiring is shown below:

有一种简答的arduino uno的限位开关连接方法就是依靠ATmega328内部的弱上拉电阻(~47K)直接连接到引脚上面,下面是常闭开关的接法

1.jpg

 

The Normal Open (NO) switch wiring is shown below:

下面是常开开关的接法

2.jpg

One improvement is to connect 1K to 4.7K pull up resistors to 5V and100nF capacitors to GND. The extra pull ups and capacitors have noticeablenoise suppression effect over the GRBL performance.

有一种改进的接法就是,外接一个4.7K的电阻到5v,接一个100nF的电容到GND,,额外的上拉电阻和电容有明显的一直噪声的作用


分享给朋友:

相关文章

GRBL如何对刀

GRBL如何对刀

对于购买和使用入门级 CNC雕刻机的使用者来说,probing可能会让人产生许多疑问,因为入门级 CNC雕刻机的硬体和软体都未必内建 probing功能。Probing究竟是什么呢?Probing就 CNC雕刻机利用一个 probe(探针 )去探测一个工件 (workpiece)的位置。最简单的 Z轴 probing,雕刻机就可以自动探测到工件表面 (surface)的位置,并把这个位置设置成&n...

Arduino CNC Shield V3.XX - 装配指南

Arduino CNC Shield V3.XX - 装配指南

这是一个帮助组装Arduino CNC Shield V3.XX的快速指南。我们还有一个讨论论坛:http://forum.protoneer.co.nz/viewforum.php?f = 6内容:对于Grbl v0.9和v1.1 +默认版本:(注意:Z-limit在D12上,主轴使能引脚在D11上使用硬件PWM。)对于禁用可变主轴的Grbl v0.8和v0.9 +,Z-limit移至D11,主轴启用至D12。这通常是为了在旧电路板上向后兼容。对于激光模式,使用的引脚与主轴(PIN 11)相同...

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。