Skip to content
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

z-motor running same direction #11086

Closed
bfrakes256 opened this issue Jun 22, 2018 · 41 comments
Closed

z-motor running same direction #11086

bfrakes256 opened this issue Jun 22, 2018 · 41 comments
Labels
F: BLTouch T: Question Questions, generally redirected to other groups.

Comments

@bfrakes256
Copy link

bfrakes256 commented Jun 22, 2018

Installed BLTouch into Marlin RC8 and added the BLTouch suggested items.

Upon running this sketch, the z-motor moves the z axis in the up direction for all selections in the Marlin 3d Software application. Proterface does the same thing.

I've reloaded a known good sketch with the physical z switch connected and everything works as it should.

Printer is a Wanhao IIIP (Monoprice). The BLTouch appears to work correctly when I home the Z axis. After that it only moves in one direction. Tried inverting the z motor and then it moves only in the down direction.

I've checked both sketches line for line against each other and no issues found.

Some magic BLTouch tweak I don't know about?

Please advise...

@xC0000005
Copy link
Contributor

What does the endstop status report?

@bfrakes256
Copy link
Author

bfrakes256 commented Jun 23, 2018 via email

@bfrakes256
Copy link
Author

bfrakes256 commented Jun 25, 2018 via email

@thinkyhead
Copy link
Member

In order to send configurations you'll have to go to #11086 and actually include them in a reply. It doesn't work to attach them to email replies.

@thinkyhead thinkyhead added the T: Question Questions, generally redirected to other groups. label Jun 25, 2018
@bfrakes256
Copy link
Author

Configuration_adv.zip

@bfrakes256
Copy link
Author

Here are the .h files. Any suggestions appreciated

I've tried many settings on the BLTouch and when it touched the bed, I activates but does not reverse the Z motors and continues down and crashes into the bed. This should not be this hard to do...

Configuration_adv.zip

@bfrakes256 bfrakes256 reopened this Jun 26, 2018
@thinkyhead
Copy link
Member

Please test with the latest bugfix-1.1.x (and/or bugfix-2.0.x) branch so we're all on the same page here.

@bfrakes256
Copy link
Author

I've updated to the 1.1.x version copying the settings from an existing (working configuration.h and configuration_adv.h).
I've downloaded the bugfix-2.0.x and looked at it. Do I need to apply all the files in the bugfix to the 1.1.x subdirectories? Do I need to copy the settings to the configuration.h and configuration_adv.h files and move them into the Marlin subdirectory in 1.1.x?

or

is the bugfix a complete set of updated Marlin files I can use instead?

Please advise...

@bfrakes256
Copy link
Author

Working through the bugfix2.0.x now.

FYI

Found an issues with the literal MIN_PROBE_EDGE and where my probe is mounted. The BLTouch is mounted 35 mm to the right and 50 mm in front of the extruder.

The error checking was having an issue with calculating the front and left side probe position

I created X_MIN_PROBE_EDGE and Y_MIN_PROBE_EDGE with appropriate values. The modified the calculation routines that use the old MIN_PROBE_EDGE with the new literals...

The code I'm guessing assume the probe is at the same location as the extruder which can never be.

@thinkyhead
Copy link
Member

The code I'm guessing assume the probe is at the same location as the extruder which can never be.

The code uses the given probe offsets to do its work. Probe offsets of 0,0 are allowed for cases where the nozzle is used as the probe.

@bfrakes256
Copy link
Author

I have the bugfix2.0.x code integrated into my sketches. Using the z stop, it is working in the bugfix code.
I've switched over to the BLTouch on the z stop pins and enable the BLTouch and Binlinear auto leveling and disable manual leveling.

Everything works but when the probe contacts the bed on the initial rapid touch it reverses the z motors, moves up then back down at half speed (like it should) but never reverses on the second touch an crashes into the bed. The only way to stop the motors from stalling is to disconnect and reconnect.

I have the x, y homing working on the corners and set the middle for the safe homing.

The .h files are zipped and attached here...

There has to be something I've missed but I can't find it. Probably some stupid mistake or oversight...

Configuration_adv.zip

@thinkyhead
Copy link
Member

Try setting MINIMUM_STEPPER_DIR_DELAY to one of the recommended values and see if it helps.

@bfrakes256
Copy link
Author

Using the A4988 steppers, so I set it to 200. Did not help. Upon further inspection when z is coming down on the first touch, the probe light comes on when it touches the bed but it never reverses and keeps going until it crashes the bed. I thought it was reversing the first time but it is no. I set the delay back to what it was before I changed it.

@thinkyhead
Copy link
Member

To test your BLTouch and endstop settings…

  • Raise the Z axis to a sufficient height.
  • Send G31 to deploy the probe.
  • Send M119 to get the probe state.
  • Use your finger to trigger the BLTouch probe.
  • Send M119 to get the probe state.
  • Send G32 to stow the probe.

@bfrakes256
Copy link
Author

Does not appear that G31 and G32 are valid codes.
Did m280 p0 s10 to deploy probe
M119 showed x, y, z open
bumped probe up until it started flashing
M119 showed z still open.

m280 p0 s60 and m280 p0 s120 are also valid for the BLTouch

@thinkyhead
Copy link
Member

Sorry, M401 / M402 instead of G31 / G32.

@thinkyhead
Copy link
Member

If the probe doesn't show up as triggered then either the wiring is incorrect or the probe has issues.

@bfrakes256
Copy link
Author

Since the light comes on when the pin is retracted tells me that the z stop pin on the ramps should go high and low when the pin is extended.

I should be able to put my volt meter in series with one of the wires going to the z stop pins and tell if the BLTouch is working, right?

In the current setting, the Z_MIN_PLUG is enabled and the Z_MIN_ENDSTOP_INVERTING is false.

Should the Z_MIN_PROBE_ENDSTOP_INVERTING be set to false?

@bfrakes256
Copy link
Author

OK, so I put my volt meter in the circuit the black and white wire off the BLTouch is connected to the Ramps board. Raised the bed and activated the probe with M280 P0 S10 which extended the probe. Since the Z was 23mm above the bed, I placed a block under the probe. The voltage read 3.2 mVolt with the probe down. I then brought z down .1mm until it retracted at 19.6mm. The volt meter momentarily went to 1 or so mVolt and came right back up to 3.2 mVolt.

It looks like the probe and wiring is ok. Since the probe activates like it should the sensing wire does not appear to be telling it to reverse z and do the send 1/2 speed probe.

Not sure where to look in the configuration to see what is missing.

@kAdonis
Copy link
Contributor

kAdonis commented Jul 2, 2018

Afaik the Bltouch is only sending a short pulse (10ms) to show its triggered so M119 is of no use
what you see at your Voltmeter is totally normal
You z homing speed is low (4mm/s), it might be, that your z axis is moving too slow for the Bltouch
try this in Configuration_adv.h line 384:

#define HOMING_BUMP_DIVISOR { 2, 2, 2 }

Test carefully with your finger or a block under the probe and be prepared to stop the printer
Z_MIN_PROBE_ENDSTOP_INVERTING should be set to false

@bfrakes256
Copy link
Author

z seems to be moving pretty good. I thought the BLT might be defective, that is the reason for the voltmeter.

I'll do this today and see what happens.

I'll let you know and THANKS....

@kAdonis
Copy link
Contributor

kAdonis commented Jul 2, 2018

reading the thread again, I am not sure, understand you correctly
Is the z axis reversing at first bump or not?
Is the black and white Endstop cable connected properly?
white - Zmin
black - Gnd
which Bltouch version you have classic or smart?

@bfrakes256
Copy link
Author

Changed the setting and uploaded. Did not change. Way above the bed, extended the probe with m280 p0 s10. Moved down 10 mm and triggered the probe. It retracted then extended. z continued down.

I have the BLT on the ramps board with the jumper to supply the voltage to the BLT. I noticed when it is in alarm mode, the LCD dims when the light is lit on the BLT. Voltage stays at 3.3. Probably the coil in the BLT current draw.

@bfrakes256
Copy link
Author

Just read your reply...

Smart BLT. The black and white is on the z_min_endstop pins

@kAdonis
Copy link
Contributor

kAdonis commented Jul 2, 2018

The black and white is on the z_min_endstop pins

please check the polarity

@bfrakes256
Copy link
Author

Headed for my bike ride now, I'll check it in a couple of hours and let you know...

@bfrakes256
Copy link
Author

In my Caterpillar days, we used Hall Effect sensors everywhere. I was treating the BLT like a switch which does not care about polarity. It was referencing ground all the time but the sensing side. Reversed the connector and it now works.

Should I set the HOMING_BUMP_DIVISOR back to 2, 2, 4 like it was?

Thank you...

@kAdonis
Copy link
Contributor

kAdonis commented Jul 2, 2018

glad it works!
You may leave HOMING_BUMP_DIVISOR at 2,2,2 it works for me several month now

@kAdonis
Copy link
Contributor

kAdonis commented Jul 2, 2018

please close the issue if it is solved, and the related issues #11107 and #11180

@Sandman0815
Copy link

Hallo there, i know, this issue is old but i hope, you can help me.
i've an ender5 with Marlin 1.1.9 and the Ramps1.4 Board and the A4988 steppers.
all things went right but the Extruder only Turns in one direction, if i extrude or retract.
following things i've checkt:
The Stepper changed, The motor changed, The plug changed ( Extruder0 / Extruder1)
Marlin new installed.
The problem is every the same. Have you a nice hint for me?

@bfrakes256
Copy link
Author

bfrakes256 commented Apr 11, 2019 via email

@Sandman0815
Copy link

Thanks for the fast answer, for two days the printer went with the original Melziboard. everything was fine, but the Displayport was burnt. Furthermore i've switched to the Ramps 1.4. The wirings from the motorplugs would not changed X,Y,Z goes correct, onely the E goes everytime the same direction.
As I say, i had changed the E- with the Y- Motor with the same result.
Perhaps you are right and I have to order a new Board.

@bfrakes256
Copy link
Author

bfrakes256 commented Apr 11, 2019 via email

@bfrakes256
Copy link
Author

bfrakes256 commented Apr 13, 2019 via email

@Sandman0815
Copy link

Sandman0815 commented Apr 16, 2019

Yes, my RAMPS board is defective. I've Changed it with one from my good friend and now it works :-)
I've flashed the same Marlin sketch and it works. I'm so happy. There are many more menus now than with the Original-Board. But the RAMPS board is very Fat, so i'm thinking about an MKS, that can be installed inside the Brainbox and it goes with 12 or 24 Volts without any electrical "customize-Hack".
Nevertheless, thanks for your Help.
Sandman

@bfrakes256
Copy link
Author

bfrakes256 commented Apr 16, 2019 via email

@Sandman0815
Copy link

Yes, you are right. I've installed the cheap-Copy of BL-Touch
Bettleveling

and switched the Bilinear-Leveling on. That works absolute Fine ant Printing is very Funny now.
I hope it is not so difficould to switch to the MKS-Board later.

@bfrakes256
Copy link
Author

bfrakes256 commented Apr 16, 2019 via email

@bfrakes256
Copy link
Author

bfrakes256 commented Apr 16, 2019 via email

@Sandman0815
Copy link

Hi there, I'm from Germany. The graph comes from my Raspberry Pi, i'm using Octoprint as a Printserver.
And I have a nice Plugin, that makes this wonderfull graph. Bedleveling is very funny, since I've this fine Tool.

Greetings from Germany
Sandman

@github-actions
Copy link

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.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
F: BLTouch T: Question Questions, generally redirected to other groups.
Projects
None yet
Development

No branches or pull requests

5 participants