Introduction: Wiring the KFB2.0 3D Printer Controller
The KFB2.0 controller is an interesting little board, that caught my attention for it's size and price. It's less than $20 ($18.59 to be exact on Amazon.com: http://amzn.to/2FBSghi ) and about half the size in height compared to the RAMPS 1.4 (Stacked) kit.
It does lack some serious documentation, which is mitigated by the fact that it's basically a RAMPS 1.4 all-in-one on one board. Same 8 bit arduino chip and all the same pin configurations.
It does come with a few extra's like a 5v and 12v dedicated output (RAMPS only has the 12V and you can borrow 5V from elsewhere on the board).
You can also put more juice through the KFB2.0. It can take 12-40volts. Should you choose to go with a 24 Volt power supply make sure your heated bed and hot-end heater cartridge can handle the extra 12 volts.
It comes with 4 power outputs but in all honesty I've struggled (and lost) getting the 4th under control.
If you're deciding to go with the TMC2130 (see my instructable and results on that one here) you'r in luck as the dedicated ICSP connector will prevent you from having to solder on extra pins to share with the card reader.
The other difference with the RAMPS 1.4 is the connectors. the KFB2.0 uses all JST-XHP 2.54 connectors so bring out the crimping tools (or buy proper wires).
Update 1/25/2019: as part of a series on how to build the C3Dt/c 3D Printer, I pre-released a video on wiring the KFB2.0 (step by step). Check it out at: https://youtu.be/3WxL5Wdu-XY
Step 1: Parts Required
I have used the KFB2.0 board on 2 of my printers now (on you can find here) and am pleased with the way it operates.
The KFB2.0: $18.59 http://amzn.to/2Gk9qBi
Here's a list of all the items I have attached to the KFB2.0
Nema 17 1.7A (5 pack) http://amzn.to/2E3gvYc
Mk8 Extruder
full direct exturer $36.99 http://amzn.to/2E3gvYc
Extruder Frame only $8.99 http://amzn.to/2FL3hAc
V6 Hotend (12V): $18.99 http://amzn.to/2HoEXS0
For end stop control you can go with two options (I will discuss wiring for both):
The fully wired Limit switch (with cables): $7.98 http://amzn.to/2E3gvYc
The simple Micro Switch: $8.99 http://amzn.to/2E3gvYc
Stepper Cables: $8.59 http://amzn.to/2FHuALR (JSP HX2.54, which fit the KFB2.0)
12V/30Amp Power supply 19.98: http://amzn.to/2E3gvYc
Heated Bed $31.99 (optional but will describe wiring) http://amzn.to/2E3gvYc
Thermistors $8.99 http://amzn.to/2FtRvux
LCD 12864 $14.99 http://amzn.to/2HoEz60
Stepper Drivers $9.99 http://amzn.to/2FKdRYd
Fans. I'm a huge fan of the Noctua Fans. They are a bit pricier but worth the SUPER quiet:
12Volt: $13.95 http://amzn.to/2FDoyss
5Volt: $13.95: http://amzn.to/2p8JZdO
(If you want to go with the TMC2130, I recommend getting the real deal from trinamic waterott through Filastruder.com)
Step 2: Assembling the KFB2.0
Before adding the steppers, add 3 of the jumpers underneath each of the steppers. This will enable 1/16h micro stepping for the A4988 and DRV8825 drivers (not necessary for the TMC21xx drivers)
Adding the Stepper drivers does take some special care. MAKE SURE your drivers are oriented properly. The pins instructions are on the back of the board but I've add an image to show them on top. Your stepper boards should have the corresponding pin names. To keep it simple, align DIR and GND on the drivers to the board.
for the A4988 drivers this means the little pot meter is on the same side as the USB PORT
for DRV8825 and TMC2130 the pot meter points in the opposite direction
Step 3: Wiring the KFB2.0
Wiring the KFB2.0 is very similar to the RAMPS 1.4. As a matter of fact in the Software it is configured as a RAMPS 1.4 configuration. Most of the pins are connected identical to RAMPS.
One of the downsides to the KFB2.0 is that a lot of the useful information is printed on the back of the board. Take note of that before you bolt it on to something.
The first image above pretty much explains it all. Power (12-24V) goes in at the small green connector. Polarity IS IMPORTANT. Make sure positive connects to positive. The rest of the connections are discussed in the next steps.
Step 4: Connecting the Fans
-There are three FAN outputs.
The green connector with the Fan written next to is is the controllable fan that generally is referred to as the parts-fan. It is controlled variably by the software and cools the last layer of filament deposited.
There's a 5V fan output and a 12-24V fan output. It generally connects to the fan that is attached to your hot-end heat sync. This one starts running when you power up the board.
ALL FANS have a red and black wire. Polarity matters, make sure positive is connected to positive.
I'm a huge fan (no pun intended) of the Noctua fans. They are incredibly quiet. They come in both 12 volt and 5 Volt version.
If you have any plans of using auto bed leveling, I recommend using a 5 Volt fan as it will leave the 12 Volt connector for the proximity sensor used in Auto bed leveling.
Step 5: Connecting the Heaters
This boards has three outputs for heaters.
Hot Bed (Heated Bed)
Heater0 (primary extruder)
Heater1 (second extruder)
-The Hot bed and Heater0 outputs speak for themselves. They don't care about polarity but make sure you use wire of proper gauge (14-16) as these carry a lot of Amps).
-Heater1 is not as straight forward. If you have double extruders you should connect the second one to this output but; I have not been able to get it to work. I've tried tracing its pins back to the board but even after doing so I could not get it powered up.
I'll keep you posted if I ever succeed.
For each heater there would be a corresponding Thermistor that notifies the board of the actual temperature.
The thermistor for the extuder connects to TEMP0
The thermistor for the heated bed connects to TEMP-BED
Polarity does not matter for these connections.
Step 6: Connecting the End Stops (Maketbot Style)
If you are using the most commonly used end stops "Makerbot Designed Mechanical Endstop Kit", it comes with little circuit board and wiring. It will light up an LED when triggered.
There are 3 wires coming from the end stop: RED/BLACK/GREEN
IMPORTANT: make sure the wires correspond with the image above.
If you have to crimp your own connectors make sure the RED wire is on the "inside" towards the center of the board.
Reversing the wires I believe fry parts of your board.
Step 7: Connecting the End Stops (Micro Switches)
If you forego the fancy Makerbot Switch (don't do it for the price, it's generally more about the size of the sensor) and instead go with a micro switch it's my experience wiring is a bit easier. You really only need two wires.
Solder the wire to the two outside pins of the Micro switch and connect them to the GND Signal pin on the ramps.
These are the two pins towards the outside of the board (GND and SIGNAL). Since in this configuration the switch only breaks/closes the circuit, it doesn't really matter which wire goes to the Minus/Signal. DO NOT connect either of the wires to the VCC!!
Since in this configuration the connection is open you might have to flip the configuration in the Marlin software to reverse the signal.
#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.
Step 8: Testing the Switch and Changing Marlin Accordingly
The following video shows me testing my Makerbot end stops but the principal remains the same
if the status flips from open to triggered when testing but starts in TRIGGERED mode when not depressed you'll need to reverse the setting in Marlin (configuration.h).
// Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).<br>#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 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 true // set to true to invert the logic of the endstop. #define Z_MIN_PROBE_ENDSTOP_INVERTING true // set to true to invert the logic of the probe.
Step 9: Setting Up the Software
I won't go into setting up the software in this instructable other than to say that the KFB2.0 runs Marlin 1.1.x and corresponds to the RAMPS_14_EFB.
In your configuration.h select the BOARD_RAMPS_14_EFB if you use a controlled fan and heated bed
// The following define selects which electronics board you have.<br>// Please choose the name from boards.h that matches your setup #ifndef MOTHERBOARD #define MOTHERBOARD BOARD_RAMPS_14_EFB #endif
It has been brought to my attention that you can also choose the BOARD_MKS_GEN_L as an option (it adds the Pin 7 for the additional mosfet (I have not tried this yet). MKS_GEN_L in fact is 99.9% RAMPS.
#if HOTENDS > 2 || E_STEPPERS > 2<br> #error "MKS GEN L supports up to 2 hotends / E-steppers. Comment out this line to continue." #endif<br>#define BOARD_NAME "MKS GEN L" // Heaters / Fans // // Power outputs EFBF or EFBE #define MOSFET_D_PIN 7 <br>#include "pins_RAMPS.h"
// The following define selects which electronics board you have.<br>// Please choose the name from boards.h that matches your setup<br>#ifndef MOTHERBOARD #define MOTHERBOARD BOARD_MKS_GEN_L #endif
Step 10: Connecting LCD
The LCD connects to the two EXP1 and EXP2 connectors on the board via the 2 flat cables that most likely came with your LCD unit. You're LCD board will have the corresponding EXP1 and EXP2 on the back.
That's really all there is to it.
NOTE: Several reviewers for the KFB2.0 have complained that the LCD connectors are on backward, requiring them to cut of the notches from their cables. I won't dismiss this, but I've used 3 boards (ordered on different occasions) and have not found this to be a problem.
Step 11: Conclusion
The KFB2.0 is nothing fancy but it packs more than a traditional RAMPS 1.4 board and comes at a very reasonable price.
I currently have two printers running the KFB2.0 and have had no issues yet (at least not with the board).
Both of these printers are fully explained here on instructables.com at
https://www.instructables.com/id/3D-Printer-Cantil...
https://www.instructables.com/id/3D-Printer-Cantil...
Let me know if I missed something, screwed up something or should add more for clarification.
Most product links are affiliate links so if you do need to purchase some items, please use those links. I'll make a few pennies.
If you would like to the instructables coming consider supporting me at patreon.com. Writing and testing all this doesn't just take time. I have to buy the parts as well. Thank you!!

Participated in the
Epilog Challenge 9
74 Comments
Question 2 years ago on Step 5
My hotend 1 shift to fan. What to do please suggest
Reply 2 years ago
You'll have to be more specific. I don't know what "hotend 1 shift to fan" means
Question 3 years ago
Hey.
Please tell me the MOSFET marking for heating the bed.
Answer 3 years ago
This is about as close as I can get with my camera
Reply 3 years ago
Tip 3 years ago on Step 11
While adding the BLTouch to my printer I saw that the KFB-2 board is supported in actual versions of marlin (2.1). So just define:
#define MOTHERBOARD BOARD_KFB_2
Redirecting Servo Pin to Z-Max (for using BLTouch) must be edited in "pins_BIQU_KFB_2.h"
Reply 3 years ago
Yes, I just looked into the pins files. There's very little in there compared to MKS_GEN_L. if you're using TMC2130 like in one of my instructables you'll still have to redirect the (based on how I used the pins).
#ifndef X_CS_PIN
#define X_CS_PIN 44
#endif
#ifndef Y_CS_PIN
#define Y_CS_PIN 64
#endif
#ifndef Z_CS_PIN
#define Z_CS_PIN 40
#endif
#ifndef E0_CS_PIN
#define E0_CS_PIN 42
#endif
Question 3 years ago on Step 4
Thanks a lot for this excelent description for this board.
Does anybody know, how to add a BLTouch Auto bed leveling sensor to this board?
This sensor needs:
One I/O for control (Orange wire : PWM or Software PWM)
One I/O for Zmin(White wire : endstop / Z-probe)
GND and +5V power
Answer 3 years ago
funny you should ask: https://www.instructables.com/id/Connecting-BLTOUCH-to-KFB20/
3 years ago
Hi, first off thanks for this, I saw your link on Amazon, it helped me wire this board to replace the board on my Tronxy P802M. Running marlin 2.0 now flawlessly thanks to you! I'm printing a case with 2 fans for this. I already have a parts fan (Green) and 12v fan (white plug) in use, is there anywhere I can pull constant 12v for each fan? If not I will wire to the PSU , Im not sure I can splice 2 more fans on the one 12v whte plug. Thanks again! -John
Reply 3 years ago
Glad it worked out for you. Happy to have helped.
On my CoreXY I had the KFB2.0 (I just changed to SKR 1.3) and I did use it to operate the controller fans as well. It would kick on as soon as power was sent to any of the motors (drivers). I use the HEATER1 output for this purpose. In configuration_adv.h I turn on USE_CONTROLLER_FAN
/**
* Controller Fan
* To cool down the stepper drivers and MOSFETs.
*
* The fan will turn on automatically whenever any stepper is enabled
* and turn off after a set period after all steppers are turned off.
*/
#define USE_CONTROLLER_FAN
#if ENABLED(USE_CONTROLLER_FAN)
#define CONTROLLER_FAN_PIN 7 // Set a custom pin for the controller fan
#define CONTROLLERFAN_SECS 120 // Duration in seconds for the fan to run after all motors are disabled
#define CONTROLLERFAN_SPEED 255 // 255 == full speed
#endif
I used pins_MKS_GEN_L (BOARD_MKS_GEN_L), in it I defined:
//
// Heaters / Fans
//
// Power outputs EFBF or EFBE
#define MOSFET_D_PIN 7
#include "pins_RAMPS.h"
Hope this helps
3 years ago
Hello,
sorry my English is not good. . So I use Google Translate
Do you know how to change PS_ON_PIN 12 to PIN 19?
I modified pins_KFB_2.h (Marlin 2.0) to upload to KFB3.0 board but the PIN still didn't change. I can't control the relay.
I wonder if you can help me.
Thanks
Reply 3 years ago
I'm not familiar with the pins_KFB_2.h you are using (it's not present in my Marlin 2.0). I do see a pins_BIQU_KFB_2.h in Marlin 2.0 but in my earlier versions (marlin 1.9) I've used MKS_GEN_L.h.
Try using the the pins_BIQU_KFB_2.h
add #define PS_ON_PIN 19 in it
(also change whatever else you changed)
make sure you change configuration.h to have:
#ifndef MOTHERBOARD
#define MOTHERBOARD BOARD_KFB_2
#endif
Question 4 years ago
Hello,
I bought an Anet A8M with double extruder, and when I mounted I could only print through the SD card, the software Cura could not send the files for printing, even though I installed the drivers that came with the printer.
I installed the avrdudess software to see if I could make the communication, and I tried to make a copy of the firmware, but I ended up messing with the printer.
I have doubts as to what to put as #define MOTHERBOARD; among other parameters.
my board and a kfb2.0.
if they have the original firmware, or marliln firmware, EEPRON, and bootloader procedures.
I have a USBASP ATMEGA8A, which are the pinnations of both the motherboard and this USBASP.
I wonder if you can help me.
Answer 4 years ago
I can't speak for your A8M issues. I'm sure there's an ANet community on facebook that might be able to help you.
If you choose to replace your current board on the ANet with a KFB2.0, you will have to install the Marlin firmware yourself (http://marlinfw.org/docs/basics/install.html). These boards don't come with stock firmware.
You don't need a USBASP to configure the KFB 2.0. They have their own USB connection though which you can upload marlin (via something like Arduino IDE).
I mention in the instructable that that you either select BOARD_MKS_GEN_L or BOARD_RAMPS_14_EFB as the board. You subsequently have to configure marlin according to the specs of the ANet. There might already be an A8 configuration.h sample present in the sample configurations
Question 4 years ago
What board do I choose in Arduino to upload to this one? Do I use Arduino/Genuino Mega or Mega 2560? I used this and it flashed successfully according to Arduino but my display is just blocks and the printer seems very sluggish when trying to control XY movements with Octopi.
Reply 4 years ago
Yes that is the proper board you've selected. I've created a video on how to setup this board for the C3Dt/c here:
as for your steppers not moving properly and display not working, that would be most likely related to the setup (not the board selection). I'd need more information on how to help with that (LCD type, stepper type, configuration.h)
Question 4 years ago on Step 11
HI you me before and i would like to use the second extruder (E1) to drive my second z motor on my x5s it is running the board from above mks gen l. the z-motors keep desyncing
could you tell me what changes to make to the Marlin config-h and config adv-h to make this work.
thanks in advance
don
Answer 4 years ago
I might be a bit out of my league here as most of my printers only have 1 z-axis motor and the one printer I built using two Z motors ran off of one driver.
In Marlin 2.0 the configuration_adv.h has several settings around the dual driver (for all axis). Some of them seem to deal with synchronization issues.
//#define Z_DUAL_STEPPER_DRIVERS
It also has an option (I believe this is new) for auto alignment for the two z-motors.
//#define Z_STEPPER_AUTO_ALIGN
This last setting is new from Marlin 1.9 so it may be addressing some of the issues you're dealing with.
There's an interesting read on dual drivers for Z here: https://reprap.org/forum/read.php?262,648000
This article pre-dates some of the new setting in Marlin 2.0.
Reply 4 years ago
thanks that give me some direction i should be able to figure it out form there
don