Marlin 2.x on ReARM - filament width sensor question March 16, 2020 07:13PM |
Registered: 4 years ago Posts: 12 |
Re: Marlin 2.x on ReARM - filament width sensor question March 30, 2020 01:04PM |
Registered: 4 years ago Posts: 6 |
Re: Marlin 2.x on ReARM - filament width sensor question March 31, 2020 04:37PM |
Registered: 4 years ago Posts: 12 |
#define FILAMENT_WIDTH_SENSOR #if ENABLED(FILAMENT_WIDTH_SENSOR) #define FILAMENT_SENSOR_EXTRUDER_NUM 0 // Index of the extruder that has the filament sensor. :[0,1,2,3,4] #define MEASUREMENT_DELAY_CM 14 // (cm) The distance from the filament sensor to the melting chamber #define FILWIDTH_ERROR_MARGIN 1.0 // (mm) If a measurement differs too much from nominal width ignore it #define MAX_MEASUREMENT_DELAY 20 // (bytes) Buffer size for stored measurements (1 byte per cm). Must be larger than MEASUREMENT_DELAY_CM. #define DEFAULT_MEASURED_FILAMENT_DIA DEFAULT_NOMINAL_FILAMENT_DIA // Set measured to nominal initially // Display filament width on the LCD status line. Status messages will expire after 5 seconds. #define FILAMENT_LCD_DISPLAY #endifI have connected a potentiometer to replace the actual sensor for testing. It is connected to +3.3V, P0_26_A3 and GND.
#define FILWIDTH_PIN P0_26_A3 // A3 - (63) - J5-3 & AUX-2I measure the voltage between P0_26_A3 and GND with a multimeter. See picture below.