Skip to content

Commit

Permalink
Initial commit of the BLTouch autobuild firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
dot-bob committed Apr 22, 2018
1 parent 9fccec9 commit c16a9ae
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 35 deletions.
51 changes: 19 additions & 32 deletions Marlin/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
#define EXTRUDERS 1

// Generally expected filament diameter (1.75, 2.85, 3.0, ...). Used for Volumetric, Filament Width Sensor, etc.
#define DEFAULT_NOMINAL_FILAMENT_DIA 3.0
#define DEFAULT_NOMINAL_FILAMENT_DIA 1.75

// For Cyclops or any "multi-extruder" that shares a single nozzle.
//#define SINGLENOZZLE
Expand Down Expand Up @@ -528,7 +528,7 @@
// Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
#define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
#define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
#define Z_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
#define Z_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define X_MAX_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define Y_MAX_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define Z_MAX_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
Expand Down Expand Up @@ -588,9 +588,9 @@
* M204 R Retract Acceleration
* M204 T Travel Acceleration
*/
#define DEFAULT_ACCELERATION 1500 // X, Y, Z and E acceleration for printing moves
#define DEFAULT_RETRACT_ACCELERATION 1500 // E acceleration for retracts
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
#define DEFAULT_ACCELERATION 800 // X, Y, Z and E acceleration for printing moves
#define DEFAULT_RETRACT_ACCELERATION 500 // E acceleration for retracts
#define DEFAULT_TRAVEL_ACCELERATION 1000 // X, Y, Z acceleration for travel (non printing) moves

/**
* Default Jerk (mm/s)
Expand Down Expand Up @@ -619,7 +619,7 @@
*
* Enable this option for a probe connected to the Z Min endstop pin.
*/
//#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN

/**
* Z_MIN_PROBE_ENDSTOP
Expand Down Expand Up @@ -671,7 +671,7 @@
/**
* The BLTouch probe uses a Hall effect sensor and emulates a servo.
*/
//#define BLTOUCH
#define BLTOUCH
#if ENABLED(BLTOUCH)
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
#endif
Expand Down Expand Up @@ -720,12 +720,12 @@
* O-- FRONT --+
* (0,0)
*/
#define X_PROBE_OFFSET_FROM_EXTRUDER 10 // X offset: -left +right [of the nozzle]
#define Y_PROBE_OFFSET_FROM_EXTRUDER 10 // Y offset: -front +behind [the nozzle]
#define Z_PROBE_OFFSET_FROM_EXTRUDER 0 // Z offset: -below +above [the nozzle]
#define X_PROBE_OFFSET_FROM_EXTRUDER 31 // X offset: -left +right [of the nozzle]
#define Y_PROBE_OFFSET_FROM_EXTRUDER -20 // Y offset: -front +behind [the nozzle]
#define Z_PROBE_OFFSET_FROM_EXTRUDER -1.2 // Z offset: -below +above [the nozzle]

// Certain types of probes need to stay away from edges
#define MIN_PROBE_EDGE 30
#define MIN_PROBE_EDGE 35

// X and Y axis travel speed (mm/m) between probes
#define XY_PROBE_SPEED 9000 // 150 mm/s
Expand Down Expand Up @@ -766,7 +766,7 @@
#define Z_PROBE_OFFSET_RANGE_MAX 20

// Enable the M48 repeatability test to test probe accuracy
//#define Z_MIN_PROBE_REPEATABILITY_TEST
#define Z_MIN_PROBE_REPEATABILITY_TEST

// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
// :{ 0:'Low', 1:'High' }
Expand Down Expand Up @@ -850,7 +850,7 @@
#if ENABLED(MIN_SOFTWARE_ENDSTOPS)
#define MIN_SOFTWARE_ENDSTOP_X
#define MIN_SOFTWARE_ENDSTOP_Y
#define MIN_SOFTWARE_ENDSTOP_Z
//#define MIN_SOFTWARE_ENDSTOP_Z
#endif

// Max software endstops constrain movement within maximum coordinate bounds
Expand Down Expand Up @@ -921,7 +921,7 @@
*/
//#define AUTO_BED_LEVELING_3POINT
//#define AUTO_BED_LEVELING_LINEAR
//#define AUTO_BED_LEVELING_BILINEAR
#define AUTO_BED_LEVELING_BILINEAR
//#define AUTO_BED_LEVELING_UBL
//#define MESH_BED_LEVELING

Expand Down Expand Up @@ -970,22 +970,10 @@
#define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X

// Set the boundaries for probing (where the probe can reach).
#if X_PROBE_OFFSET_FROM_EXTRUDER > 0
#define LEFT_PROBE_BED_POSITION X_MIN_POS + X_PROBE_OFFSET_FROM_EXTRUDER + MIN_PROBE_EDGE
#define RIGHT_PROBE_BED_POSITION X_MAX_POS - MIN_PROBE_EDGE
#else
#define LEFT_PROBE_BED_POSITION X_MIN_POS + MIN_PROBE_EDGE
#define RIGHT_PROBE_BED_POSITION X_MAX_POS + X_PROBE_OFFSET_FROM_EXTRUDER - MIN_PROBE_EDGE
#endif


#if Y_PROBE_OFFSET_FROM_EXTRUDER > 0
#define FRONT_PROBE_BED_POSITION Y_MIN_POS + Y_PROBE_OFFSET_FROM_EXTRUDER + MIN_PROBE_EDGE
#define BACK_PROBE_BED_POSITION Y_MAX_POS - MIN_PROBE_EDGE
#else
#define FRONT_PROBE_BED_POSITION Y_MIN_POS + MIN_PROBE_EDGE
#define BACK_PROBE_BED_POSITION Y_MAX_POS + Y_PROBE_OFFSET_FROM_EXTRUDER - MIN_PROBE_EDGE
#endif
//#define LEFT_PROBE_BED_POSITION MIN_PROBE_EDGE
//#define RIGHT_PROBE_BED_POSITION (X_BED_SIZE - MIN_PROBE_EDGE)
//#define FRONT_PROBE_BED_POSITION MIN_PROBE_EDGE
//#define BACK_PROBE_BED_POSITION (Y_BED_SIZE - MIN_PROBE_EDGE)

// Probe along the Y axis, advancing X after each column
//#define PROBE_Y_FIRST
Expand Down Expand Up @@ -1099,7 +1087,7 @@
// - Move the Z probe (or nozzle) to a defined XY point before Z Homing when homing all axes (G28).
// - Prevent Z homing when the Z probe is outside bed area.
//
//#define Z_SAFE_HOMING
#define Z_SAFE_HOMING

#if ENABLED(Z_SAFE_HOMING)
#define Z_SAFE_HOMING_X_POINT ((X_BED_SIZE) / 2) // X point for Z homing when homing all axes (G28).
Expand Down Expand Up @@ -1854,5 +1842,4 @@
// With this option servos are powered only during movement, then turned off to prevent jitter.
//#define DEACTIVATE_SERVOS_AFTER_MOVE


#endif // CONFIGURATION_H
4 changes: 3 additions & 1 deletion Marlin/pins_ULTIMAIN_2.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
//
#define X_STOP_PIN 22
#define Y_STOP_PIN 26
#define Z_STOP_PIN 29
//#define Z_STOP_PIN 29
#define Z_STOP_PIN 69

//
// Steppers
Expand Down Expand Up @@ -103,6 +104,7 @@
#define LED_PIN 8
#define SAFETY_TRIGGERED_PIN 28 // PIN to detect the safety circuit has triggered
#define MAIN_VOLTAGE_MEASURE_PIN 14 // ANALOG PIN to measure the main voltage, with a 100k - 4k7 resitor divider.
#define SERVO0_PIN 29

//
// LCD / Controller
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Marlin 3D Printer Firmware
# Marlin 3D Printer Firmware for the Duplicator 6 autobuild BLTouch edition

For prebuilt firmware version look in the [releases](https://github.com/dot-bob/Marlin-Duplicator-6/releases) section.
See the following for probe mount and wiring instructions: [Thingiverse](https://www.thingiverse.com/thing:2483813)


[![Build Status](https://travis-ci.org/MarlinFirmware/Marlin.svg?branch=RCBugFix)](https://travis-ci.org/MarlinFirmware/Marlin)
[![Coverity Scan Build Status](https://scan.coverity.com/projects/2224/badge.svg)](https://scan.coverity.com/projects/2224)
Expand Down
2 changes: 1 addition & 1 deletion buildroot/bin/upload_release
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set +x # Do not leak information

RELEASE_NAME="Auto-Marlin-1.1.X" # Do not use "latest" as it is reserved by GitHub
RELEASE_NAME="Auto-Marlin-1.1.X-bltouch" # Do not use "latest" as it is reserved by GitHub

if [ "$TRAVIS_EVENT_TYPE" == "pull_request" ] ; then
echo "Release uploading disabled for pull requests, uploading to transfer.sh instead"
Expand Down

0 comments on commit c16a9ae

Please sign in to comment.