Auto Bed Leveling With Electrical Contacts For The TAZ 4 / 5

Want to use the Open Source Hardware documentation to make your LulzBot 3D Printer do even more? Start here!
Post Reply
inventabuild
Posts: 165
Joined: Fri Aug 15, 2014 8:39 pm

Auto Bed Leveling With Electrical Contacts For The TAZ 4 / 5

Post by inventabuild » Wed Apr 20, 2016 6:16 pm

Auto Bed Leveling is the process of utilizing a printer's hardware and software to define a good virtual print plane that approximates the print beds true surface so the printer knows where to create the all-important first layer.
Here’s a video of my TAZ 4 that I modified for electronic corner tap auto bed leveling. Parts of the vid are sped up for brevity:
https://www.youtube.com/watch?v=AnHCrnXoj9k
Here’s a video showing how clean the first layer is going down:
https://www.youtube.com/edit?o=U&video_id=J2Jyf03y290
To create this auto bed leveling feature I took the two wires leading to the z-endstop micro switch (1st pic below) and extended one to the heat sink block of my Chimera dual extruder hot end, fastening it there into one of the stock mounting holes with a screw (2nd pic below). I extended the other wire to the aluminum bed mounting plate and fastened it there driving a screw into a hole that I drilled into it (3rd pic below):
Pic 1: Original Manual Bed Leveling Microswitch
Original Manual Bed Level Micro Switch.jpg
Pic 2: Z-Endstop Wire Now Fastened To Heatsink Block On Chimera
Switch Wire Connected To Heat Sink Block on Chimera.jpg
Pic 3: Z-Endstop Wire Now On Aluminum Bed Mounting Plate
Switch Wire Connected To Aluminum Bed Plate.jpg
Next I cut 4 squares of copper tape that I bought from McMaster (http://www.mcmaster.com/#76555a715/=122iqvc) and applied them to the four corners of the glass build plate. Probably a 1 inch wide roll or less would do for a single extruder, but I also plan on modifying my setup for both extruders. Next I soldered a new wire to each piece of copper tape. The copper tape could be applied to any build surface, for example PEI, etc; however I primarily use this printer to print PLA on glass with liquid PVA mold release brushed onto the glass because that’s how I obtain the shiny smooth surface required for some of my prints.
Pic 4: Copper Tape Corner with Wire Soldered To It
Copper Tape With Wire Soldered To It.jpg
I collected the wires under the glass build plate (Pic 5) and screwed them down onto the aluminum bed mounting plate with the same screw that I used to fasten one of the z-endstop wires (Pic 6).
Pic 5: Copper Tape Wires Collected Under The Glass Build Plate
Copper Tape Wires Running Under Bed.jpg
Pic 6: Copper Tape Wires Screwed Down to Aluminum Bed Mounting Plate
Copper Tape Wires Connected To Aluminum Bed Plate.jpg
I set the Marlin Bed Auto Level Script to tap the four copper lined corners of my glass build plate at coordinates I defined. Then I ran the G29 gcode to start the auto bed leveling that’s shown in the video above.
Before I run the G29 code I pre-heat the Chimera hotends to 160 C and wipe them with a green Scotch Brite scouring pad to make sure they are clean for electrical contact with the copper tape. I'm printing with Hatchbox PLA and 160 C is working out really well for cleaning the nozzle without creating drips. Other suppliers and materials may require a different nozzle cleaning temperature.
When the hotends contact the copper tape a complete circuit is made indicating the z-endstop has been reached the same as if using the stock manually dialed in microswitch; except now the correct nozzle height is found automatically with electrical contact instead of manual trial and error.
Stay tuned for separate auto bed leveling with each individual hot end of the Chimera Dual Extruder
Last edited by inventabuild on Thu Apr 21, 2016 5:44 am, edited 1 time in total.

inventabuild
Posts: 165
Joined: Fri Aug 15, 2014 8:39 pm

Re: TAZ 4 / 5 Auto Bed Leveling With Electrical Contacts

Post by inventabuild » Wed Apr 20, 2016 7:40 pm

Here's a dual extrusion print I made with my modified TAZ 4:
Dragon With Heart.jpg
Dragon With Heart

andyson
Posts: 3
Joined: Wed May 10, 2017 1:09 am

Re: Auto Bed Leveling With Electrical Contacts For The TAZ 4 / 5

Post by andyson » Wed May 10, 2017 1:15 am

If you've got any lulzbot printer, my part should fit right onto your stepper motor, no tools required. Thanks so much for figuring this out Bam!

gclub

zorrobyte
Posts: 40
Joined: Sat Mar 11, 2017 11:23 am

Re: Auto Bed Leveling With Electrical Contacts For The TAZ 4 / 5

Post by zorrobyte » Wed May 10, 2017 12:54 pm

If you could be so kind to share exactly what modifications or config you made to the firmware, I'd be forever grateful!

I've been working on a Marlin 1.1 version for the Taz 6 and can't get the leveling code worked out for the life of me.

inventabuild
Posts: 165
Joined: Fri Aug 15, 2014 8:39 pm

Re: Auto Bed Leveling With Electrical Contacts For The TAZ 4 / 5

Post by inventabuild » Wed May 31, 2017 9:51 pm

zorrobyte wrote:If you could be so kind to share exactly what modifications or config you made to the firmware, I'd be forever grateful!

I've been working on a Marlin 1.1 version for the Taz 6 and can't get the leveling code worked out for the life of me.
Here's the Marlin code in configuration.h. Is this what you want?:

//============================= Bed Auto Leveling ===========================

#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line)

#ifdef ENABLE_AUTO_BED_LEVELING

// these are the positions on the bed to do the probing
#define LEFT_PROBE_BED_POSITION 3 //5 //0
#define RIGHT_PROBE_BED_POSITION 300 //304 //298
#define BACK_PROBE_BED_POSITION 319 //297 //297
#define FRONT_PROBE_BED_POSITION 22 //0 //0

// these are the offsets to the prob relative to the extruder tip (Hotend - Probe)
#define X_PROBE_OFFSET_FROM_EXTRUDER 0 //-25
#define Y_PROBE_OFFSET_FROM_EXTRUDER 0 //-29
#define Z_PROBE_OFFSET_FROM_EXTRUDER 1.5 //-12.35

#define Z_RAISE_BEFORE_HOMING 5 // (in mm) Raise Z before homing (G28) for Probe Clearance.
// Be sure you have this distance over your Z_MAX_POS in case

#define XY_TRAVEL_SPEED 6000 // X and Y axis travel speed between probes, in mm/min

#define Z_RAISE_BEFORE_PROBING 5 //How much the extruder will be raised before traveling to the first probing point.
#define Z_RAISE_BETWEEN_PROBINGS 5 //How much the extruder will be raised when traveling from between next probing points


//If defined, the Probe servo will be turned on only during movement and then turned off to avoid jerk
//The value is the delay to turn the servo off after powered on - depends on the servo speed; 300ms is good value, but you can try lower it.
// You MUST HAVE the SERVO_ENDSTOPS defined to use here a value higher than zero otherwise your code will not compile.

// #define PROBE_SERVO_DEACTIVATION_DELAY 300


//If you have enabled the Bed Auto Levelling and are using the same Z Probe for Z Homing,
//it is highly recommended you let this Z_SAFE_HOMING enabled!!!

#define Z_SAFE_HOMING // This feature is meant to avoid Z homing with probe outside the bed area.
// When defined, it will:
// - Allow Z homing only after X and Y homing AND stepper drivers still enabled
// - If stepper drivers timeout, it will need X and Y homing again before Z homing
// - Position the probe in a defined XY point before Z Homing when homing all axis (G28)
// - Block Z homing only when the probe is outside bed area.

#ifdef Z_SAFE_HOMING

#define Z_SAFE_HOMING_X_POINT (X_MAX_LENGTH/2) // X point for Z homing when homing all axis (G28)
#define Z_SAFE_HOMING_Y_POINT (Y_MAX_LENGTH/2) // Y point for Z homing when homing all axis (G28)

#endif

// with accurate bed leveling, the bed is sampled in a ACCURATE_BED_LEVELING_POINTSxACCURATE_BED_LEVELING_POINTS grid and least squares solution is calculated
// Note: this feature occupies 10'206 byte
#define ACCURATE_BED_LEVELING

#ifdef ACCURATE_BED_LEVELING
// I wouldn't see a reason to go above 3 (=9 probing points on the bed)
#define ACCURATE_BED_LEVELING_POINTS 2
#endif

#endif

User avatar
Spineless
Posts: 9
Joined: Thu Apr 23, 2015 9:29 am
Location: Canada
Contact:

Re: Auto Bed Leveling With Electrical Contacts For The TAZ 4 / 5

Post by Spineless » Sun Oct 22, 2017 10:48 pm

I am rather confused. You wrote the following:
" I set the Marlin Bed Auto Level Script to tap the four copper lined corners of my glass build plate at coordinates I defined. Then I ran the G29 gcode to start the auto bed leveling that’s shown in the video above."
How do you change the Marlin script? Where is this located? I am using cura version 21.08.
You mention a h file "configuration.h". I cannot find this file....it is not accessible....how do I use this code?

I think the general steps needed are as follows:
1. position the hotend at each corner and lower it until you get the z height.
2. Save these four points in some kind of file.
3. Apply an z offset on the x-y plane and compensate the print instructions.

I assume the command G29 does most of this. But I do not know how to get from hardware modifications to printing my first print with a z height compensated 3d print.

A detailed instruction would be very nice.

Thanks,
Spineless

User avatar
JoshZ
Posts: 5
Joined: Sun Mar 05, 2017 8:44 pm

Re: Auto Bed Leveling With Electrical Contacts For The TAZ 4 / 5

Post by JoshZ » Fri Nov 10, 2017 10:38 pm

Spineless wrote:
Sun Oct 22, 2017 10:48 pm
I am rather confused. You wrote the following:
" I set the Marlin Bed Auto Level Script to tap the four copper lined corners of my glass build plate at coordinates I defined. Then I ran the G29 gcode to start the auto bed leveling that’s shown in the video above."
How do you change the Marlin script? Where is this located? I am using cura version 21.08.
You mention a h file "configuration.h". I cannot find this file....it is not accessible....how do I use this code?

I think the general steps needed are as follows:
1. position the hotend at each corner and lower it until you get the z height.
2. Save these four points in some kind of file.
3. Apply an z offset on the x-y plane and compensate the print instructions.

I assume the command G29 does most of this. But I do not know how to get from hardware modifications to printing my first print with a z height compensated 3d print.

A detailed instruction would be very nice.

Thanks,
Spineless
If you have to ask this question, this is probably not the mod for you. The Marlin "script" needs to be compiled into a hex file that you then flash on to your printer firmware. It is the program that runs the printer, and the "script" you're looking at is the source code.

Post Reply