klipper icon indicating copy to clipboard operation
klipper copied to clipboard

TMC2130 & BLtouch help needed.

Open swatti87 opened this issue 8 years ago • 31 comments

Re-write of my entire topic instead of starting new one.

I'm fairly sure my pin for the "diag1" is wrong. How do i test these sensorless ones when they are open or closed?

swatti87 avatar Oct 03 '18 11:10 swatti87

query_endstops

https://github.com/KevinOConnor/klipper/blob/master/docs/Config_checks.md

See the TMC2130 section here to configure your drivers. The SGT value for tuning the endstops will vary significantly depending on what voltage you're using for your steppers.

https://github.com/KevinOConnor/klipper/blob/master/config/example-extras.cfg

I'm also using an OULWare board. You will likely need to change some pins depending on what driver slots you're using on the board, but here's my printer.cfg as an example.

OULWare.txt

jakep82 avatar Oct 03 '18 15:10 jakep82

Also you can use this config file for reference. All of the pins are listed at the top. The CS pins for each driver are listed, and the diag1 pin is just the endstop pin.

https://github.com/OULWare/klipper/blob/master/config/oulware.v1.0.cfg

jakep82 avatar Oct 03 '18 15:10 jakep82

Will my endstops show triggered if I move the carrier and open if I don't?

Or how do "physically" trigger them or can I since they are sensorless.

Plan B: is setting SGT too low so it will trigger from any movement and add return movement when triggered. Then start testing what pin causes the return movement...

swatti87 avatar Oct 04 '18 10:10 swatti87

If you use the pin definitions I provided and you have the jumpers installed in the right spots (Xmin and Ymin) it should work correctly. If you run endstop_query it should show your endstops as open. Start with a low SGT value of 1 or 2, and work your way up. You also need to use a reasonably fast homing speed. I'm not sure what the minimum speed is, but I've had good success at 50mm/s. Also note that the minimum SGT value will change when the drivers are hot. I can home with an SGT of 2 when my drivers are cold, but they trigger early at that value when they're hot. I use 4 which works well regardless of the driver temperature.

jakep82 avatar Oct 04 '18 14:10 jakep82

Gotta say, i would have NEVER gotten this to run without your config as refecence... I cant thank you enough.

Ok, things run preeeetty well now.

Last step: Is there a way to disable the home-before-move-anything feature for the Z-axis? I'm okey if X and Y stay with it on. I have no Z-sensor installed at the moment, i calibrate it by hand untill i get BLtouch running again... Aaand i need mount for it printed.

swatti87 avatar Oct 04 '18 17:10 swatti87

You can use set_kinematic_position to do this. I believe you need to enable it in your config. See the link for info.

https://github.com/KevinOConnor/klipper/blob/master/docs/G-Codes.md

jakep82 avatar Oct 04 '18 18:10 jakep82

SET_KINEMATIC_POSITION [Z=0] Responce from the console // Unknown command:"SET_KINEMATIC_POSITION"

swatti87 avatar Oct 05 '18 10:10 swatti87

You don't need the square brackets... Those are commonly used to indicate that the information within the brackets is optional. This is also explained the documentation:

https://github.com/KevinOConnor/klipper/blob/master/docs/G-Codes.md#force-movement

I am guessing the bad parameter formatting is why you get the message. I agree it could be worded better - more like:

// Unknown parameter for command "SET_KINEMATIC_POSITION"

or something like that perhaps.

theopensourcerer avatar Oct 05 '18 10:10 theopensourcerer

I had to enable the "force-move" thingy in the config first. Devious.

swatti87 avatar Oct 05 '18 10:10 swatti87

EDIT: Re-written. "May as well get it done..." - BLtouch

Dug up me 'ol BLT and pasted the needed gibberish from the BLT-example.

Its got only two pins that need to be defined... Umm... Is that all i need?

Its got 2 sets of wires. One 2-wire and one 3-wire 3-wire would most likely be "servo" so i need a PWM pins for it, right?

2-wire is the "endstop" (probe) and i could pop that into Z-min like if it were a regular endstop, right?

I wont go connecting pins untill i get a definitive answer.

EDIT: or did i get my servo and probe vise versa? Its been too long since i had BLt with 8bit marlin

swatti87 avatar Oct 05 '18 10:10 swatti87

Klipper doesn't issue any g-codes. If you were getting a plain G28, it was coming from your slicer. If you can't figure out how to prevent your slicer from adding the G28, then just edit the g-code file with a text editor and delete the G28 before uploading to Octoprint.

I have a BLTouch, but I've never used it with Klipper so I can't help with setup. I would suggest Googling the BLTouch. It's not hard to find wiring diagrams that show what each wire does.

jakep82 avatar Oct 05 '18 14:10 jakep82

Oookkey...

Should have most things set but where to find a PWM-pin in the OulWare board? Which ones are the PWM ones? I think i can take it from there. I read the fans are PWM-pins. Problem is, im using 3 and one has blown fet. Any other PWM pins?

swatti87 avatar Oct 05 '18 14:10 swatti87

Controller_v11.pdf

jakep82 avatar Oct 05 '18 15:10 jakep82

Controller_v11.pdf

Is that the OulWare board schematic? Looks... Odd.

P5 and P6 pins seem PWM... I'd imagine that would work. Just where on the actual board are they. I take it their pin-name is "ar" and number from schem

swatti87 avatar Oct 05 '18 15:10 swatti87

Just match the pins. Pin 6 from P6 goes to pin 7 on the AUX1 header, and I believe it would be ar2 in the config.

jakep82 avatar Oct 05 '18 15:10 jakep82

Progress!! BLtouch "lit up" and is blinking the warning. So, its working, in a way and i most likely did not deep-fry the poor thing.

Lets leave the pin-charts out. Scary stuff that.

Use this: http://www.oulware.org/images/2/2d/Controller_v1.1.jpg

Draw a red dot on a PWM pin and its number.

swatti87 avatar Oct 05 '18 15:10 swatti87

I already gave you the info you need. Pin 7 on the AUX1 header is ar2.

jakep82 avatar Oct 05 '18 16:10 jakep82

As in second row, as in the pic and the left pin? (no idea what header really means)

swatti87 avatar Oct 05 '18 17:10 swatti87

Look at the schematic I provided. Find AUX1. Find pin 7 on AUX1. It will have a black 2 next to it signifying the arduino pin to which it's connected.

Note that I have no idea if that pin will work, I can only say that it's a PWM capable pin that's available on the board.

jakep82 avatar Oct 05 '18 19:10 jakep82

I decided to pull out my BLTouch tonight and wire it up. It's a bit complicated because the BLTouch needs 5V for the servo, but all of the logic on the OULWare board is 3.3V. Fortunately 5V is available on the static voltage out pins. What this means is you'll need to use jumper wires. For the sake of simplicity, I would wire the signal wire from the BLTouch to the Xmax endstop signal pin. In your config you'll use ar59 for the probe pin. I've attached a snippet of my config as a sample so you can see the correct pin callouts. The 2 pin connector from the BLTouch goes to the ground and signal pins on Xmin.

OULWare_BLTouch.txt

jakep82 avatar Oct 06 '18 01:10 jakep82