-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stock Controller Card Connecting Limit Switches #123
Comments
Start here: https://github.com/gnea/grbl/wiki/Wiring-Limit-Switches |
@rseijo It looks like Arduino core with added dedicated connectors for stepper drivers. |
Closing because this is not a bug, but feel free to continue. |
Thanks so much for the quick responses!! Also, I have yet to locate any nomenclature, data sheets, etc. for the stock board. |
@rseijo Until this is Arduino nano processor with Grbl you can do the following:
|
Ralph, the only reference to this "stock board" you mention that I could find is one AliExpress seller: The standard grbl limit inputs are on D9 (X) D10 (Y) and D12 (Z). See https://github.com/gnea/grbl/wiki/Connecting-Grbl All that said, this board uses a CH340 USB to serial chip, and this has been known to be the cause of communication problems for many people (data loss). I would personally recommend getting a board that is more common and well documented, such as the Protoneer shield, and an Arduino Uno to plug it into. I expect those stepper drivers on the Woodpecker board follow the standard "Pololu" pinout, so you should be able to move them across to a new shield. After all the time and cost invested a CNC, you really don't want to use an unreliable and unsupported controller, even more so as a beginner. |
We need to know the connections between the header pins and the microcontroller. Use a multimeter and probably a needle or pin to touch the microcontroller pins. It may take 15-20 minutes to get all connections. |
@rseijo You still need to measure which pin of the header to which pin of the microcontroller is going by using simple multimeter. Set the multimeter to measure short circuit (beeps when you touch both probes). See below images describing the sequence. At the end you should get some list as: |
Hi luben111, I will check that out and report back findings. It will be later today; on my way out to the grocery story :-) Thank you for the detailed instructions with images, this helps immensely!!! |
Hi, I checked the PIN Out of the chip with the multi-meter and found that the Zen, Yen & Xen had no connection points to the Atmega328 chip. Continued checking the other pins and have identified where they reside on the chip (see below image please). Enabled the Hard limits, boolean ($21=1) and connected a Normally Open switch on Yen. Started Candle (v1.1.7) in Jog mode moved the Y Axis, while it was moving closed the switch and the Axis stopped moving. Same results for X & Z Axis; on all 6 *en pins. Pressed Reset, Alarm appears, pressed Unlock and I am able to continue the Axis travel. Is this the correct response and sequence to restart the travel? |
@rseijo The end switches are maybe going to some serial resistors - see image below. You need to find where the end switches are going, you can visually follow the wires on the PCB. Also the enumeration of the microcontroller pin numbers is as follows (please add the pin numbers in the table where to each header pin is corresponding some controller pin). Without populating the table above with some data we can't make the correct wiring, |
BTW, if your current GRBL version is before 0.9j and you'd like to use the latest versions of GRBL you probably have to modify the PCB - the Z limit switch in latest versions is attached to different controller pin (compared to version before 0.9j). As I see the listed version is 0.9j so maybe there is no need to modify the board. |
OK, so it looks like
Limit pins on the ATmega should be With your multimeter you should be able to measure the 100R resistor between those header pins and ATmega pins to confirm |
@rseijo After that we'll create the proper wiring diagram for your board |
The final wiring will be (first we need to confirm the connections - see above) |
@rseijo This means that the wiring above is correct and you can use to connect the end switches. Please let us know what was the result after connecting the end switches. BTW, the Woodpecker board is not bad at all and I'm inclined to use it in the future for small projects. |
Luben111, Will do! Thanks for the confirmation and all your help!! |
Guys, Complete and Total Success! I'm so grateful to your support and guidance. Best regards! Ralph |
Call me crazy, any suggested resources of where I can source parts to make a large CNC? 1ft x 3ft Table. |
That's pretty open ended - there is many types of CNC, but I'm assuming you mean a gantry style. |
Also, check out cnczone.com if you haven't already - lots of build logs there. |
A shapeoko 3 XL is pretty close to those dimensions. |
@rseijo parts are just a small part of building a cnc, but I've gotten stuff from http://www.robotdigg.com they've got tons of stuff and I think very decent prices |
The Woodpecker board has already caps on the limit switch ports, as you can see from the schematic ilie321 posted some days ago. |
Ok thats odd then cause I am constantly getting false triggers. Any ideas why that could be? |
There could be several sources.
If it is happening when nowhere near the switches, check the routing of the wires to/from the switches. They may be passing close to a noise source such as the motor, steppers, power supply, etc.
A cap at the switch end may help as well if it is a debounce issue.
A secondary pull up resistor/cap combination may also help.
If, however, RF is getting in, pass the wires a few turns through a ferrite bead or toroid.
Bob
… On Jan 24, 2018, at 10:21, nickm324 ***@***.***> wrote:
Ok thats odd then cause I am constantly getting false triggers. Any ideas why that could be?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Not just the stepper motors but also the stepper motor wires ..... If they are bundled together and in parallel then it can induce noise into the switch wiring. One simple trick that often helps is to twist your stepper motor wires ... Look at the photos in komradebob's post from November 9 for a good example of how to do it |
Good point! I do that by habit and forgot all about it.
Not just the motor wires, but the switch wires too.
…On Wed, Jan 24, 2018 at 2:30 PM, longjohn119 ***@***.***> wrote:
Not just the stepper motors but also the stepper motor wires ..... If they
are bundled together and in parallel then it can induce noise into the
switch wiring. One simple trick that often helps is to twist your stepper
motor wires ... Look at the photos in komradebob's post from November 9 for
a good example of how to do it
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#123 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACQr0eFMEFsa2eEO_tLFTQ-R8DQwonRcks5tN4TGgaJpZM4L87wL>
.
|
Ok, thanks for the info. I will go back and organize the wiring better and and I am no electronics whiz do you mind telling me which side to put the cap, NO or ground side? |
Same issue... seems to be the controller board grbl version. GrblControl worked fine, until it crashed loading an NC file I wanted to run. After some futzing around, I discovered that Candle did not work but Grbl Panel did work (with one slight oddity) and did load my NC, so I'm running that (path of least resistance) As for that oddity, the first time I connect Grbl Panel, it turns my spindle motor on... disconnect and reconnect, and everything is fine. It's consistent. Also, when I start GrblControl, it reports the Home position as when the controller board fired up. Grbl Panel reports Home as when I hit that connect button. Thus, Grbl Panel, and presumably Candle, somehow reset the control board while the old GrblControl does not. It's probably that reset that's causing the issue. But, anyways, thanks to everyone for all the info. I've got a pile of limit switches, and I now know the connector pinout to wire them up, and that they'll likely work if I remember to set the proper gcode on the controller. "Enabled the Hard limits, boolean ($21=1) and connected a Normally Open switch..." |
Hi All, I'm very new to this world of cnc, but i love to make something with arduino. I bought my first cnc engraving from aliexpress : https://www.aliexpress.com/item/CNC-3018-with-ER11-Diy-mini-CNC-Laser-Engraving-Machine-3-Axis-Plastic-Acrylic-Pcb-PVC/32848631081.html?spm=a2g0s.9042311.0.0.V71Fhh After i received it, i try to build it and it's done successfully. But the problem start when i tried to engrave something. The machine stop working randomly with the spindle still running. I use some app like source rabbit, candle, grbl control and universal g code sender. i use the supplied g code sample ( text : "Iphone"). Sometimes it's done sometimes it's not. After one week trying to change any configuration and still randomly stop working, finally i found this thread about limiting switch with woodpecker board, related to CH340 chip that being used that caused error. From this thread i found that using bluetooth HC-05 as serial input is the most possible option i have to bypass the CH340 chip. So i did some testing with multitester and found the line of digital pin 0 and digital pin 1. I try not to solder it directly to the chip because i'm afraid it will burn the entire Atmega328 chip. so i found another spot to solder it with safe.
My bluetooth HC-05 has been set to BAUD 115200.
After doing this modification, i connect the grbl through bluetooth COM Port, and try to send the gCode. The result is satisfying, every job is done successfully. Sometimes the machine paused about 1s, but it will continue and finish the job. My Spec: Macbook pro mid 2012, Windows 7 Ultimate (only for doing cnc and some window specific app.) and here are my GRBL setting. I use Candle for sending GCode. My woodpecker board has been flashed successfully with GRBL 1.1f. 2018/03/22 13:07:29 - $0=10 I hope it will helps other that find difficulties with this Chinese Woodpecker board. |
Nice, thanks this helps alot but. |
I found it on Internet is not mine |
important! |
@biasedlogic There are a lot. Only a few Examples: |
@CONSULitAS there are many versions, but many are based off the same schematic. Since the silkscreen printed version may not be unique across board designs there's only one thing left: check your board. Two out of two i had in my hands were wired wrong |
I managed to flash my WP 3.1 to grbl 1.1f using Xloader. |
Regarding limit switches on the stock Woodpecker board. I don't know where to access the machine settings to enable them. I am using Candle 1.1.7 and a laptop with XP. The gui has some machine setting check boxes but I cannot access and edit the full set of machine settings. What am I missing? |
I'm not familiar with candle, but grbl settings can be accessed using a serial monitor program? The Arduino idea has one under the tools pull down menu. From there the wiki has a lot of information regarding configuration. |
@Donlatch with $$ on cadle terminal from right bottom of screen you can see grbl settings. Write there $21=1 and press send to enable hardware switches |
Man! I often thought that i would like to be a cat, but then I wouldn't have all this crazy cool stuff to play with like cnc engravers and the like. If i was a cat i'd probably slap mice and birds around in frustration at not having opposable thumbs. Then i'd take that mouse to my human and meow this toy sucks and then claw the couch to bits while grumbling. |
I have random false triggering of hard limits just by touching aluminium chassis with pull-up resistors installed. |
Make sure everything is grounded to the frame of the printer.
… On Mar 29, 2019, at 14:46, dsl400 ***@***.***> wrote:
I have random false triggering of hard limits just by touching aluminium chassis with pull-up resistors installed.
any helping idea would be appreciated
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
FYI >> woodpecker_3'2_schematic: |
Hi i have a question about the Serial Port for the Remote Controll Board plug. The photo of alexkelik showes the plug. I want to use it with Estlcam. In the Shop ist gives at a LPT Paralleboard Adapter for Estelcam. Is therere any posbility to connect this adapter directly to the serial remote Port? Do we have a circuit diagram for the Woodpeaker V0.9 board seriell plug? I want to print from estelcam directly. Regards Raini |
you can use an multimeter to see where the header pins connect and with the schematic you can easy deduce what each pin does ... |
Thanks everyone for sharing all this great information! I've compiled some of the details from above along with other things I've learned into my blog: The road to limit switches, part of a multi-page series that includes designing mounting brackets, (fairly specific to the CNC3018) as well as limit switch wiring, and some firmware notes, that hopefully will be helpful to others. Those are all my notes created while working on my CNC3018 over the course of the last few weekends: |
Hi, I am new to CNC and GRBL. Wondering if Limit Switches can be connected to the stock controller card? if yes, does anyone have wiring and GRBL programming instructions? Using GRBL v1.1f
The card in question is the Woodpecker CNC GRBL 0.9
Thanks!
Ralph
The text was updated successfully, but these errors were encountered: