[Grbl_Esp32 Issue#410] Squaring_Mode_Dual

未分类 bolang 4个月前 (10-14) 39次浏览

Issue #410 | 状态: 已关闭 | 作者: reynolds087 | 创建时间: 2020-05-20


Hi,
I am trying to find documentation for the dual squaring mode to home the two sides of a gantry with each side having an independent limit switch. I also am not sure where to find documentation about the pin assignments of an esp32 dev module and their corresponding pins in the GRBL firmware + how to customize and the implications of doing so. I would think all of this information is somewhat related and necessary in order to implement the dual squaring feature, but I can’t find any of it. Could you please help?


评论 (10)

#1 – bdring 于 2020-05-20

The best resource we have right now are examples.

The MPCNC uses it for X and Y axes. Both switches on an axis connect to the same I/O pin. It uses a separate step pin for each side. It uses a common direction pin for each side.
https://github.com/bdring/GrblEsp32/blob/master/GrblEsp32/Machines/mpcnc_v1p2.h
https://github.com/bdring/GrblESP32MPCNCController/blob/master/source/Schematic1p2p1.pdf

This one is similar but uses a separate direction pin for each side
https://github.com/bdring/GrblEsp32/blob/master/GrblEsp32/Machines/spidaisy4axis_xyyz.h
https://github.com/bdring/4AxisSPICNC/blob/master/docs/1p3/SPI4AxisV1p3Schm.pdf

I’ll try to get a wiki page written for this soon.

Are you designing new hardware or using an existing controller?


#2 – reynolds087 于 2020-05-20

I have this board:

https://www.amazon.com/gp/product/B07QCP2451/ref=ppxyodtbsearchasintitle?ie=UTF8&psc=1

I don’t know how to begin wiring it up. Is there a diagram of the default pins? I have external five TB6600 drivers (two Y axis drivers that I want to operate independently for squaring, and two X axis that I want to run in parallel/inverted on the same lead screw).

I am not sure how to specify the example machine.
Do I just change this line in machine.h and set it to the example file I want to use?

#include “Machines/test_drive.h”


#3 – bdring 于 2020-05-20

Yes, you change that line in machine.h to an existing machine definition file or create your own. All of the machine files are in the Machines folder.

Grbl_ESP32 will support the Ganged and Squared mode for the Y and the Ganged only mode for the X. The direction is tricky, but easily fixed in the wiring of the motors to the drivers (swap one coil’s wires)

The TB6600 drivers are odd balls. They are unsupported and every manufacturer sets them up differently. People have used them, but require a lot of our support. I cannot help you with those.

I am working on the wiki page, so stay tuned…


#4 – reynolds087 于 2020-05-20

Thanks, ok please let me know when the wiki page goes up.

So it’s not as simple as just wiring to the inputs of the TB6600 and provide the external power? I thought it was kind of like when you take an audio signal from your phone and plug it into an active speaker and it gets amplified.



#6 – ithinkido 于 2020-05-21

> The TB6600 drivers are odd balls. They are unsupported and every manufacturer sets them up differently. People have used them, but require a lot of our support. I cannot help you with those.
>

https://www.makerguides.com/tb6600-stepper-motor-driver-arduino-tutorial/

About half way down this article is an interesting piece about “fake” TB6600 drivers that are actually a different chip. I can see this being a big issue when setting things up and then realising that it will not work. It might be handy to add a line about this in the wiki so that people can get one more idea where to check when trouble shooting .


#7 – bdring 于 2020-05-21

@ithinkido If you want to write a blurb for the Wiki page, I can include it.

I know there are fake chips. The TB6600 chip is not bad, but the way they integrate them into the package is a mess. They are looking for the the lowest cost driver that actually looks like a “real” driver.

They are unsupported because the person you bought them from is unlikely to ever help you. People should not expect open source developers to fill that role.


#8 – ithinkido 于 2020-05-21

Sure,
Stepper-Motor-Drivers.zip


#9 – jaysettle 于 2020-05-28

@reynolds087, I can help you out on your setup if needed. I have a similar configuration.


#10 – reynolds087 于 2020-05-30

@jaysettle, thanks. I’ll give it a try and report back if needed.


原始Issue: https://github.com/bdring/Grbl_Esp32/issues/410

喜欢 (0)