|
1 | 1 | ## Install the AFC Klipper Add-On |
2 | 2 |
|
3 | | -=== "All Automated Filament Changers" |
| 3 | +=== "Supported Automated Filament Changers" |
4 | 4 |
|
5 | 5 | Your AFC unit works with the [AFC Klipper Add-On](https://github.com/AFCProject/AFC-Klipper-Add-On). The rest of |
6 | 6 | this guide will focus on configuring AFC for use with your unit. |
|
15 | 15 | ./install-afc.sh |
16 | 16 | ``` |
17 | 17 |
|
| 18 | + After running `./install-afc.sh` you should now see an AFC splash screen with multiple options |
| 19 | + |
| 20 | + 1. Hit `I` then enter to start installing a new system |
| 21 | + 1. Installer defaults to a BoxTurtle unit, if you have something else, hit `T` then enter to cycle through the different supported units. |
| 22 | + 1. If you would like to enable/disable options 1-8, choose that option then hit enter to cycle through the options. |
| 23 | + 1. Installer defaults to using a buffer as a toolhead sensor, if you would like to use a toolhead sensor, hit `9` then enter to cycle until you see sensor. |
| 24 | + 1. If you know you toolhead sensor pin now, hit `A` then enter and input your pin. If you need to add a pullup(`^`) add this to your pin definition now. ex: `^nh36_0:gpio3` |
| 25 | + 1. If there are unit specific options for your unit, please make sure these are selected correctly for your setup. ex. If you have a 2 lane EMU with a SLB board, make sure EMU Lane option is set to 2 and EMU board option is set to SLB. |
| 26 | + 1. Once everything is selected correctly, hit `I` then enter to install AFC and have the proper config files moved into your `printer_data/config/AFC` folder. |
18 | 27 | The default options for the park, cut, kick, wipe, and tip forming macros can be used if you don't know what to choose. |
19 | 28 | These can all be changed later by editing `AFC/AFC.cfg` and doing a firmware restart. |
20 | 29 |
|
|
28 | 37 | ### Post-Installation Configuration |
29 | 38 | After installation, please ensure you update the following settings: |
30 | 39 |
|
| 40 | + |
31 | 41 | - In your unit-specific config file (e.g., `AFC/AFC_Turtle_1.cfg` for BoxTurtle): |
32 | 42 | - `canbus_uuid` if using CAN bus |
33 | 43 | - `serial` if using USB |
|
48 | 58 |
|
49 | 59 | Review all x,y,z positions in the `AFC/AFC_Macro_Vars.cfg` file to ensure they are correct for your printer for any macros |
50 | 60 | you have enabled. |
| 61 | + |
| 62 | + ### Unit specific checks |
| 63 | + === "EMU" |
| 64 | + !!! note |
| 65 | + Throughout this guide you will see text like `EMU_(x)_lane(x)`, you will not see this in your config file. Instead you will see something like `EMU_1_lane1`, the x's are a place holder to signify a generic unit/lane number for your setup. |
| 66 | + |
| 67 | + #### Verify MCU config file |
| 68 | + In AFC/mcu/EMU_(x).cfg file verify that mcu entries looks correct and has all your MCU lanes listed |
| 69 | + |
| 70 | + #### Verify Temperature Sensor |
| 71 | + Config file defaults to using BME280 temperature, if you are using the AHT20 sensor then the following needs to be updated in your AFC/AFC_EMU_(x).cfg file. There are also comments in this file to help you update to use the correct settings |
| 72 | + |
| 73 | + 1. In `[temperature_sensor lane(x)]` config sections comment out: |
| 74 | + ```ini |
| 75 | + sensor_type: BME280 |
| 76 | + i2c_address: 118 |
| 77 | + ``` |
| 78 | + and uncomment: |
| 79 | + ``` |
| 80 | + sensor_type: AHT2X |
| 81 | + i2c_address: 56 |
| 82 | + ``` |
| 83 | + 1. If using SLB board and would like to use hardware I2C, comment out: |
| 84 | + ``` |
| 85 | + i2c_software_scl_pin: EMU_(x)_lane(x):TEMP_SCL |
| 86 | + i2c_software_sda_pin: EMU_(x)_lane(x):TEMP_SCA |
| 87 | + ``` |
| 88 | + and uncomment: |
| 89 | + ``` |
| 90 | + i2c_bus: i2c2_PB10_PB11 |
| 91 | + ``` |
| 92 | + 1. Repeat for all lanes |
| 93 | + |
| 94 | + #### Verifying Led Indicator Settings |
| 95 | + Config file defaults to using ebb36/42 settings, if using SLB board make the following changes for all your lanes. |
| 96 | + |
| 97 | + === "EBB36/42" |
| 98 | + 1. Uncomment the following AFC_led config section: |
| 99 | + ``` |
| 100 | + [AFC_led EMU_(x)_Indicator_(x)] |
| 101 | + pin: EMU_(x)_lane(x):RGB |
| 102 | + chain_count: 5 |
| 103 | + color_order: GRBW |
| 104 | + initial_RED: 0.0 |
| 105 | + initial_GREEN: 0.0 |
| 106 | + initial_BLUE: 0.0 |
| 107 | + initial_WHITE: 0.0 |
| 108 | + ``` |
| 109 | + 1. Repeat for all lanes |
| 110 | + === "SLB" |
| 111 | + |
| 112 | + 1. In `[AFC_stepper lane(x)]` config section comment out: |
| 113 | + ``` |
| 114 | + led_index: EMU_(x)_Indicator_(x):1 |
| 115 | + led_spool_index: EMU_(x)_Indicator_(x):2 |
| 116 | + ``` |
| 117 | + and uncomment: |
| 118 | + ``` |
| 119 | + led_index: EMU_(x)_Indicator_Button_(x):1-4 |
| 120 | + led_spool_index: EMU_(x)_Indicator_Box_(x):1 |
| 121 | + ``` |
| 122 | + |
| 123 | + 1. Uncomment the following AFC_led config sections |
| 124 | + ``` |
| 125 | + [AFC_led EMU_(x)_Indicator_Button_1] |
| 126 | + pin: EMU_(x)_lane(x):RGB_button |
| 127 | + chain_count: 4 |
| 128 | + color_order: GRBW |
| 129 | + initial_RED: 0.0 |
| 130 | + initial_GREEN: 0.0 |
| 131 | + initial_BLUE: 0.0 |
| 132 | + initial_WHITE: 0.0 |
| 133 | + |
| 134 | + [AFC_led EMU_(x)_Indicator_Box_1] |
| 135 | + pin: EMU_(x)_lane(x):RGB_box |
| 136 | + chain_count: 1 |
| 137 | + color_order: GRBW |
| 138 | + initial_RED: 0.0 |
| 139 | + initial_GREEN: 0.0 |
| 140 | + initial_BLUE: 0.0 |
| 141 | + initial_WHITE: 0.0 |
| 142 | + ``` |
| 143 | + 1. Repeat for all lanes |
| 144 | + |
| 145 | + #### Using non sensorless hubs |
| 146 | + By default AFC EMU configs are setup to run with ["sensorless" hubs](../configuration/AFC_UnitType_1.cfg.md#notes-about-default-emu-config-setup), if you would like to use a hub sensor then make the following changes to your `[AFC_hub EMU_(x)_HUB]` section: |
| 147 | + |
| 148 | + 1. For `switch_pin` variable, replace `virtual` with the actual sensor pin you are using for you hub |
| 149 | + 1. In each `[AFC_stepper lane(x)]` sections update `dist_hub` to be closer to what your actual length is between your lanes load sensor and hub sensor. |
| 150 | + 1. Remove `use_dist_hub: True` line |
| 151 | + 1. Update `hub_clear_move_dis: 5` value to be closer to the value that AFC needs to move the filament so its not blocking the hub. Or this value can be removed and AFC will use the default value of 65 |
51 | 152 |
|
52 | 153 |
|
53 | 154 | For best results, reboot your printer after installing the Add-On and including it in your printer.cfg. This will ensure |
|
0 commit comments