markniu / Bed_Distance_sensor

Auto bed level with High resolution distance sensor
281 stars 28 forks source link

Unable to calibrate on my Switchwire. #51

Closed Clarkbf closed 11 months ago

Clarkbf commented 11 months ago

Switchwire only moves one stepper so toolhead slides across bed but does not lift when sending M102 S-6 command.

markniu commented 11 months ago

you mean only one z stepper moves after sending M102 S-6 and other z steppers don't move?

Clarkbf commented 11 months ago

Yes, and very slowly. Wondering if it is a corexz issue? Had no real problems setting it up on my corexy trident.

Sakoda1066 commented 11 months ago

I'm also SwitchWire, but when performing calibration, the XStepper and ZStepper move in the same direction; with SwitchWire, which is CoreXZ, it just moves the tool head to the right. The correct movement is that the XStepper and ZStepper should turn in opposite directions. I think the ZStepper is the opposite.

Clarkbf commented 11 months ago

I tried inverting wire to Z Stepper and had to Invert pin in Printer.cfg. Still did not work. If I do not invert pin M102 S-6 does work but then cannot home due to print head being slammed into top bar. LOL is there a setting to change in BDsensor.py to change how M102 S-6 works??

Clarkbf commented 11 months ago

It is almost like the python script is not pulling the kinematics in properly to move the right steppers. Or inverting the direction of one of them in the calibration process.

markniu commented 11 months ago

I just changed the z motor moving with new method(G1 Z), you can update the BDsensor.py and calibrate again.

Clarkbf commented 11 months ago

Awesome, will give it a try.

Clarkbf commented 11 months ago

Calibrates now but I get this error when it goes to home Z: Internal error on command:"G28" Once the underlying issue is corrected, use the "FIRMWARE_RESTART" command to reset the firmware, reload the config, and restart the host software. Printer is shutdown Adding my klippy.log

klippy.log

Clarkbf commented 11 months ago

Another error that shows up at same time - Unknown value 'PROBE_2' in enumeration 'pin'

***Correction: solved the problem by eliminating my ALIAS PINS for canbus pins.