Grbl v1.1版本的接线方法

 Grbl v1.1版本的接线方法wiki翻译

 Grbl v1.1 connecting

Source Website: https://github.com/gnea/grbl/wiki/Connecting-Grbl

 

This wiki isintended to provide various instructions on how to connect to grbl in variousways. Please feel free to contribute more up-to-date or alternative methods.

       这个wiki的目的是提供各种各样得Grbl接线方法,你也可以提供更多的更新或替代方法。

       Grbl'sPins

       Grbl的引脚

       For Grblv0.9 and v1.1+ default builds: (NOTE: Z-limit is on D12 and thespindle enable pin uses the hardware PWM on D11.)

       以下是基于Grblv0.9和v1.1+默认版本的:(注意:z轴限位是D12口,使用PWM使能主轴引脚是D11口)

Grbl v1.1版本的接线方法_第1张图片

       For Grbl v0.8 and v0.9+ with variable spindledisabled, Z-limit moves to D11 and spindle enable to D12. This is generally forbackward compatibility on older boards.

       对于Grbl v0.8和v0.9+可变主轴是禁用的,z轴的限位改为D11口,主轴使能是D12口,这通常是为了兼容在这之前的旧版本

       First, to connect your stepper motors toGrbl, you'll need some stepper motor drivers to power the steppers and connectyour driver inputs to the Arduino controller pins. There are a number of driversthat can do this, available as fully pre-built, partially pre-built, orcompletely DIY. There are some examples farther down the page. The stepperdrivers will need to share the stepper enable pin (D8) to their respectiveenable pins, while the direction and step pulse pins (D2-D7) will need to beconnected to their respective pins on the drivers. Just make sure that all ofyour drivers and the Arduino share a common ground (star grounded with yourmotor driver power). This is about all you'll need to get started.

       首先,为了将你的步进电机与你的Grbl相连,你需要一些驱动步进电机的驱动器并且将它和你的adruino控制器的引脚相连接,有很多驱动器可以做到这一点,有完全搭建好的方案,也有部分搭建好的方案,也有完全自己DIY,在这页面的下方有一些例子可以给你提供,步进电机驱动器需要将各自的使能引脚连接到D8上面(就是芯片的使能引脚),而将方向和步进脉冲引脚(D2-D7)连接到各个电机的驱动器上面,要确保你的驱动器和你的Adruino是共地的(即你的马达的星型中心点是接地的),这样你就可以开始做接下来的事了

       Afterwards,once you decide that you're ready or would like to enable homing and/or hardlimits, you'll need to connect a normally-open limit switch to each of thelimit pins (D9, D10, and D12). Homing and hard limits use the same switches. Theselimit pins are already held high with an internal pull-up resistor, so all youhave to do is wire them to ground. So when you close a switch, the switch willpull the limit pin to ground. If you'd like to have hard limit switches on bothends of travel of an axis, just wire two limit switches in parallel to the axislimit pin and ground. Make sure you have the switches installed beforeattempting to perform a homing cycle, and make sure you practice good wiringmethods to minimize external electric noise on the input pins.

       然后,一旦你决定你要准备启用归位和硬限制,你需要在每个限位引脚(D9、D10和D12)连接一个常开限位开关,归位和硬限位使用的开关是相同的,adruino的限位引脚已经使用了上拉电阻将其电位拉高了,所以你所要做的就是把它们接地,所以当你关闭开关时,开关会把限位引脚拉低,如果你想在轴的头尾都安装硬限位开关,只需将两个限位开关平行接地即可(接入一个接地点),在你准备使用归位功能之前,你要保证你的限位开关都已经安装,并采用良好的布线方法,以减少输入引脚上的外部电噪声。

       In Grblv0.8 and later, there are pin-outs of the cycle start, feed hold, and resetruntime commands, so you can have physical control buttons on your machine.Just like the limit pins, these pins are held high with an internal pull-upresistor, so all you have to do is connect a normally-open switch to each pinand to ground. Again make sure you practice good wiring methods to minimizeexternal electric noise on the input pins.

       在0.8版本和之后的Grbl版本中,有一些引脚以用于开启机器循环工作,给进速率保持,重启等实时命令,所以你可以直接用物理按键去控制机器,这些引脚的用法就和限位开关一样,这些引脚内部有一个上拉电阻,你所要做的就是连接一个常开开关到每个引脚和接地。并再次确保你的布线方法好,以减少输入引脚上的外部电噪声。

If you have adesire or need for spindle or coolant control, Grbl will toggle these outputpins (D13, A3) high or low, depending on the G-code commands you send to Grbl.With v0.9+ and variable spindle PWM enabled, the D11 pin will output a range ofvoltages from 0V to 5V depending the spindle speed G-code command. 0V indicatesspindle off in this case. Since these pins are all application dependent in howthey are used, we'll leave it to you to determine how to control and use thesefor your machine. You can also hack the spindle and coolant control sourcefiles to easily alter how they work and then compile and upload your modifiedGrbl through the Arduino IDE.

如果你有主轴或冷却液控制的需求,Grbl可以根据你发送给Grbl 的G代码来切换D13、A3口的高低电平输出,在v0.9以上的版本中有PWM可变主轴功能,GRBL根据你发送过来的G代码将D11引脚输出0-5V之间的电压,0v表示主轴停止。由于这些引脚的使用根据适用的场合不同而不同,我们将这留给您决定如何去控制和使用这些引脚为您的机器工作。修改主轴和冷却剂控制源文件可以很容易改变他们的工作方式,然后编译并上传你修改的Grbl通过Arduino IDE。

Method One:EasyDriver V4.4

方法一:简单驱动 V4.4

This is a fairlystraightforward interface for a 3 axis machine.

对于三轴机器来说,这是相当简单的一个接口

The 'step signalground' for each EasyDriver is connected together and tied to the GND pin ofthe Arduino. Do not confuse this with the motor ground or any other groundconnection on the EasyDriver!

这个stepsignal ground 就是是将每一个easydriver的地线都连接到adruino上面去,不要把电机的地或其他的地接到easydriver上面

The 'Step' pinfor the X,Y and Z axes is attached to digital pins 2, 3 and 4 respectively.

X、Y、Z轴的主轴步进引脚分别连接到数字引脚2、3、4

The 'Dir' pin forthe X,Y and Z axes is attached to digital pins 5, 6 and 7 respectively.

X、Y、Z轴的主轴方向引脚分别连接到数字引脚5、6、7

Resources

资源

Big Version

Fritzing File

EasyDriver Website

Method Two:grblshield

方法二:grblshield

grblshield - plugs on toArduino for 3 axes of motor control - up to 2.5 amps per winding. Drivers arethermally protected against overcurrent and are therefore extremely resistantto burnout or failure

grblshield-适用于arduino的三轴电机控制,拥有高达2.5A的电流,驱动器具有过热保护功能,防止电流超过极限值驱动器过热而烧毁

Method Three:stepper shield

       方法三:stepper shield

       buildlog.net arduino steppershield - pololu driver carrier arduino shield for 3 axes of motorcontrol. Replaceable drivers in case of damage.

       buildlog.net arduino steppershield-arduino驱动器可以控制三轴电机,驱动器在损坏后可以更换

Grbl v1.1版本的接线方法_第2张图片

Method Four :Arduino CNC Shield or Raspberry Pi CNC Board/Hat

方法四:adruinoCNC shield 或者Raspberry Pi CNC Board、Hat

Arduino CNC Shield - 3 independentaxes and one clone axis.Uses Pololu Stepper Drivers with all GRBL pins exposed.GRBL 0.9 Compatible. RC filters on end stops and Probe pins.

Adruino CNC Shield-拥有 3个独立的轴和一个可复制的轴,使用该驱动器和GRBL的引脚连接,这个兼容GRBL0.9版本,具有终端滤波和尖端滤波的功能

Raspberry Pi CNC board/hat - 3 independentaxes + 1 clonable drive and with removable screw terminals.Uses Pololu StepperDrivers with all GRBL pins exposed. GRBL 0.9 Compatible. RC filters on endstops and Probe pins.

Raspberry Pi CNC board/hat-具有三个独立的轴和一个可复制的轴驱动以及一个可以移动的终端螺丝,这个兼容GRBL0.9版本,具有终端滤波和尖端滤波的功能



你可能感兴趣的:(GRBL,Grbl,翻译,connect)