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

Add Velleman K8400 board support. #4192

Merged
merged 2 commits into from
Jul 4, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Marlin/boards.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
#define BOARD_ULTIMAKER_OLD 71 // Ultimaker (Older electronics. Pre 1.5.4. This is rare)
#define BOARD_ULTIMAIN_2 72 // Ultimainboard 2.x (Uses TEMP_SENSOR 20)
#define BOARD_3DRAG 77 // 3Drag Controller
#define BOARD_K8200 78 // Vellemann K8200 Controller (derived from 3Drag Controller)
#define BOARD_K8200 78 // Velleman K8200 Controller (derived from 3Drag Controller)
#define BOARD_K8400 79 // Velleman K8400 Controller (derived from 3Drag Controller)
#define BOARD_TEENSYLU 8 // Teensylu
#define BOARD_RUMBA 80 // Rumba
#define BOARD_PRINTRBOARD 81 // Printrboard (AT90USB1286)
Expand Down
1,216 changes: 1,216 additions & 0 deletions Marlin/example_configurations/K8400/Configuration.h

Large diffs are not rendered by default.

750 changes: 750 additions & 0 deletions Marlin/example_configurations/K8400/Configuration_adv.h

Large diffs are not rendered by default.

1,216 changes: 1,216 additions & 0 deletions Marlin/example_configurations/K8400/Dual Heads/Configuration.h

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions Marlin/example_configurations/K8400/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Configuration for Velleman K8400 Vertex
http://www.k8400.eu/

Configuration files for the K8400, ported upstream from the official Velleman firmware.
Like it's predecessor, (K8200), the K8400 is a 3Drag clone. There are some minor differences, documented in pins_K8400.h.

Single and dual head configurations provided. Copy the correct Configuration.h and Configuration_adv.h to the /Marlin/ directory.

**NOTE: This configuration includes the community sourced feed rate fix. Use 100% feed rate in Repetier!**

For implementation and updated K8400 firmware, see https://github.com/birkett/Velleman-K8400-Firmware

### Original Sources
Credit to Velleman for the original 1.0.x based code:<br />
http://www.vertex3dprinter.eu/downloads/files/vertex/firmware/vertex-m1-v1.4-h2.zip
2 changes: 2 additions & 0 deletions Marlin/pins.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@
#include "pins_3DRAG.h"
#elif MB(K8200)
#include "pins_K8200.h"
#elif MB(K8400)
#include "pins_K8400.h"
#elif MB(TEENSYLU)
#include "pins_TEENSYLU.h"
#elif MB(RUMBA)
Expand Down
2 changes: 1 addition & 1 deletion Marlin/pins_3DRAG.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/

/**
* 3DRAG (and K8200) Arduino Mega with RAMPS v1.4 pin assignments
* 3DRAG (and K8200 / K8400) Arduino Mega with RAMPS v1.4 pin assignments
*/

#ifndef BOARD_NAME
Expand Down
52 changes: 52 additions & 0 deletions Marlin/pins_K8400.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

/**
* Velleman K8400 (Vertex)
* 3DRAG clone
*
* K8400 has some minor differences over a normal 3Drag:
* - No X/Y max endstops
* - Second extruder step pin has moved
* - No power supply control
* - Second heater has moved pin
*/

#define BOARD_NAME "K8400"
#define DEFAULT_MACHINE_NAME "Vertex"
#define DEFAULT_SOURCE_CODE_URL "https://github.com/birkett/Vertex-K8400-Firmware"

#include "pins_3DRAG.h"

#undef X_MAX_PIN
#define X_MAX_PIN -1
#undef Y_MAX_PIN
#define Y_MAX_PIN -1

#undef E1_STEP_PIN
#define E1_STEP_PIN 32

#undef PS_ON_PIN
#undef KILL_PIN

#undef HEATER_1_PIN
#define HEATER_1_PIN 11
2 changes: 1 addition & 1 deletion Marlin/ultralcd_st7920_u8glib_rrd.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
#define CPU_ST7920_DELAY_1 DELAY_0_NOP
#define CPU_ST7920_DELAY_2 DELAY_0_NOP
#define CPU_ST7920_DELAY_3 DELAY_1_NOP
#elif (MOTHERBOARD == BOARD_3DRAG) || (MOTHERBOARD == BOARD_K8200)
#elif (MOTHERBOARD == BOARD_3DRAG) || (MOTHERBOARD == BOARD_K8200) || (MOTHERBOARD == BOARD_K8400)
#define CPU_ST7920_DELAY_1 DELAY_0_NOP
#define CPU_ST7920_DELAY_2 DELAY_3_NOP
#define CPU_ST7920_DELAY_3 DELAY_0_NOP
Expand Down