-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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
[BUG] SKR Pro 1.1 BLTouch is frequently deploying during print #16318
Comments
I have been investigating this for a while. Also the turn off servo after move doesn't seem to work. This would be a possible solution if it worked. |
turning off servo after move works fine for me, but using a re-arm |
I have a bltouch clone and have no issue at all, this use to be a lose connection problem o bad cable. Regards |
@DarkShortie: Do you have a genuine BLTouch or a clone? |
Note: connect the contact to Zmin switch |
i also have sometimes problems with my skr pro and BL Touch. but iam not 100% could also be a cable problem. |
It's a genuine BLTouch, but a very old one, it's Smart V1.0. I will try turn of servo after move tomorrow, I was not aware about this option so far.. |
Also with DEACTIVATE_SERVOS_AFTER_MOVE activated it doesn't work. |
i also checked my cables now. Cable are all okay. i think it is a bug |
I told you.... don't connect to PA2, connect to Zmin endstop |
This is a real question, not a snarky response. I am not the OP and I am using the zmin endstop myself on an SKR PRO 1.1 (just started using this board), but I'm curious. Why would that change the behavior? PA2/zmin endstop should be read when it deployed and undergoing homing. Deploying the pin is triggered on one of the other pins/servo. Is it maybe that PA2 is noisy or something that is causing the BLTouch to freak out and drop the pin? |
The only I can tell you is that I have a bltiuch clone running on a skr pro and have no problem at all with the latest release at least since september. I have updated the firmware frequently and actually running with the latest release. So I really doubt there is a but that only afects to youm but never knows... Regards |
Like I wrote before I already tried different pins. |
I had the chance to try it with a genuine BLTouch Smart V 3.1, the issue stays the same. Regarding DEACTIVATE_SERVOS_AFTER_MOVE which was mentioned earlier, this is automatically deactivated when using a BLTouch: Marlin/Marlin/src/inc/Conditionals_LCD.h Line 468 in 432decd
But even if I comment this undef and enable DEACTIVATE_SERVOS_AFTER_MOVE then BLTouch stops working completly. |
I have a 3.1 on an SKR PRO 1.1. I haven't watched a full print and haven't witnessed a deploy during a print. This morning after a 2.5 hour print was done the bltouch was blinking red. I am plugged into the z_min endstop with a genuine BLTouch. |
Yes. |
@DarkShortie that should be the “stow pin” command on the PWM. If you measure the pulse length you can compare it to the BLTouch datasheet to determine which command it is. If you are looking for issues that might cause a pin to drop, you would want to look for interruptions to that steady PWM signal when it happens. |
I have the same issue, using an SKR 1.4 board and connecting the BL Touch probe pins to the Z_MIN_ENDSTOP_PIN (which actually doesn't matter for this case, since it is the servo pin which is causing deploy and stow of the BL Touch). The BL Touch deploys and stows its pin completely random, also during printing. I already broke my BL Touch with this. Now it is not deploying the pin and going into alarm state. I use a genuine BL Tough 2.0 smart probe. |
I hate to be "that guy", but I have a BL Touch 3.1 on an SKR 1.4 and I have not had this problem, or at least I haven't seen it happen yet. I was using an SKR PRO 1.1 and while I didn't see the drop, I did come back to a blinking probe (see my earlier post). I decided not to deal with it and swapped to the SKR 1.4. You'll find my configs here: I will keep an eye on mine as I print more to see if I can observe the same behavior. Edit: @Zappa55555 has it ever worked for you on the SKR 1.4? What was your previous board? I think the wiring of the servo pins is different on the SKR 1.4 vs the 1.3. |
@randellhodges i modified my Wanhao Duplicator D9 since originally it has a terrible print quality. Only last week i received the SRK 1.4 board with TMC2209 steppers and i started upgrading my machine. The previous board i used was the genuine Wanhao board which is not open source. I don't know what version of Marlin it was running on, but the BL Touch was working without problems. |
I guess I can debug this.... |
Maybe I found it. Wait. |
For sure I found it...but I remember the things were different...I want to see who changed the file and why. I'll be back |
Let me guess, PWM pin interfering with the timer? |
Ok. I just made a fix for it. However, it looks like, once the PWM pin A1 is used (as servo with TIM6, to control the BLTouch), the output timer of TIM5 triggers the servo on A1 anyway even if it isn't used as servo...and this messes up with "fake commands" to bltouch. I pushed a commit to https://github.com/LinoBarreca/Marlin please test it. If everything works I'll make the PR to Marlin |
I don’t quite understand the root cause of the problem. Are you saying the servo pin assignment interferes with the timer? This seems odd, because I think the servo output on STM32 is all done with software PWM, the pins are not put into PWM mode. My concern is that switching these may fix the BLTouch, but move the problem to the step timer. We previously had a problem like that which was corrupting the step output, but I don’t remember what you did to fix that. |
Great, thanks. Will flash it soon and try. comment |
But I thing the actual servo class in the STM32 library just uses them as digital outputs, so that you can have lots of servos without requiring them all to be PWM pins. That is why I am concerned there may be another PWM pin assigned to something else, that could now interfere with the step timer. I believe this HAL uses the framework’s servo library, but I’m not actually looking at the code at the moment. We noticed a while back that the STM32F1 HAL actually disables any timers that are connecting to the SD Card pins. I wonder if on STM32 the timer outputs interfere with digital output even if they are not configured for PWM? I assumed the timers would be muxed out if pins were used as simple digital output. |
Yes. they are. The servo library uses the timer (in software mode on channel 1) to manage the servos. that's why, back then, it made sense to use timer 5. Because we thought "okay, since servo uses timer 6, timer 5 shouldn't interfere with pins' PWM" (and what we thought made sense) probably however there's some part that does an analogwrite somewhere on that pin changing the timer mode. |
oh... by the way...this allows us to possibly define PA2 as an optional PWM, if the users uses the zmin endstop.. |
The Servo library uses
This might work fine, but I suspect it will end up running either the Servo timer or the hardware PWM at the wrong frequency. |
@sjasonsmith it might happen but last "write" should win...and since we are using the same timer(tim5) for the same pin, however, that shouldn't break anything because last setup of the timer (and write) should command the timer and achieve the result the call meant to. |
I don't currently have the time or hardware set up to test it, but I've spoken my concerns. I think STM32 timer conflicts will continue to cause problems unless we find a good way to detect and report conflicts. |
4 hours printing time later and I recognized no issues so far. |
@DarkShortie with my branch? |
Yes |
@TB1405 @boelle @MangaValk can you please make a test too? (Without disabling and re-enabling manually) |
@LinoBarreca just tested out your fix, and it works. 3 hours into a print with no problems. |
Although the PA2 was designed for it, if you already split the cable to connect to Zmin I would suggest leaving it as is for one simple reason: PA2 can be used to control something analog (fan, light or whatever you like) while the zmin can't (could be useful for filament runout or something digital) it's up to you. |
Sunday il be back from holiday and test it :) |
it has been merged. we can close this as fixed. |
Maybe a stupid question from my side, but is it fixed only for SRK Pro1.1 or is this fix also working on an SRK1.4 board? I cannot test right now since i am waiting on a new BL Touch sensor. |
Only pro. |
I had the problem you have.And i solved it by wiring my stepper motor with a shielded twisted pair cable CAT6a and connecting shield to stepper and other side to ground BTW i have SKR 1.4 turbo and BLTouch 3.1 clone and as extruder e3d Hemera |
Seems like this bugging me too. I have testet with three different bltouch and latest marlin bugfix. I wired over PA1 and PA2. So if i set my build fan (5010 Radial - wired on PE5) to 20-40%, he seems to give noise to bltouch, randomly deploy and stows. But if the fan is set to 100%, nothing happens - all is fine. Any thoughts? |
Connect to Zmin |
I try it later. But correct me if im wrong, the deploy und stow commands/pulses are generated over PA1, so it makes no difference, PA2 receive just the triggered signal? |
I'm not gonna dig too much, what I can tell you is that issuye was coming since this feature was implemented, I keep it connected to Zmin and it's done for me. Regards |
Go away with your hardware problems. This issue tracker is about MarlinFirmware problems. You are suffering from noise. The, pulsed when not 100%, fan is interfering with the BL-Touches servo lines. Separate the lines as far as possible. |
More friendliness could suit you well my friend. If it is a hardware problem, youre right. Separated already the cables, the pulses are interfering by the pin's on the board, but possibly a hardware defect on my SKR. However, i only want to exclude that marlin or any marlin related configuration caused that bug/feature. I dont need to spam with hardware problems that are not related to marlin |
i had same problem. Fan and Motor cables emission high EMI. So solution which i used is shielded cable for motor wiring with both sides of shield grounded. |
Yes, i excluded this - by doing tests without wired cables to the fan and so on - only the BLTouch is wired - and without success. I contacted Bigtreetech, seems the board have an defect, so im out at this point |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Bug Description
I've recently migrated to a SKR Pro 1.1 board and I'm using a BLTouch. The BLTouch deploys frequently deploys during the print. If it hits the build plate it goes into error state, if Z is raised enough to fully deploy it stays deployed and crashes into the printed object sooner or later.
I've already did a lot of test to find the cause:
Nothing of this helped. The only workaround I found so far is to pull the servo wire from the SKR after G28 is done. 5V, GND and Z min stays connected. So I think for some reasons deploy commands are send frequently during the print.
My Configurations
config.zip
Steps to Reproduce
Expected behavior:
Print is started, G28 is executed and during the print the BLTouch doesn't deploy.
Actual behavior:
Print is started, G28 is executed and during the print the BLTouch is deploying frequently.
The text was updated successfully, but these errors were encountered: