On 27/01/2018 12:36 PM, Joseph Ecker wrote:
> I printed up a housing for the switch to use as a filament sensor. With the switch wired up with the NC terminal, and filament inserted through the housing, it activates the switch and the LED indicator on the cloneboard for P-Stop is off. Once the filament is removed from the housing, the switch deactivates and the LED indicator on the cloneboard for P-Stop is on (lights up).
>
> I compiled Sailfish to use XY-min, so let me find what I compiled before and see if there is a conflict with one of the endstop and P-Stop definitions.
>
For a Clone board, you likely want to define CLONE_R1 for the build.
'mighty_one-2560-clone-r1' :
{ 'mcu' : 'atmega2560',
'programmer' : 'stk500v2',
'board_directory' : 'mighty_one',
'defines' : [ 'CORE_XY', 'BUILD_STATS', 'ALTERNATE_UART',
'HEATERS_ON_STEROIDS', 'AUTO_LEVEL', 'HAS_RGB_LED',
'PSTOP_ZMIN_LEVEL', 'COOLING_FAN_PWM',
'PLATFORM_SPLASH1_MSG=\\\" Sailfish Clone R1 \\\"',
'PLATFORM_THE_REPLICATOR_STR=\\\"CloneR1\\\"',
'PLATFORM_X_OFFSET_STEPS=14444L',
'PLATFORM_Y_OFFSET_STEPS=8667L',
'PLATFORM_AXIS_LENGTHS={300L, 195L, 210L, 100000L, 100000L}',
'PLATFORM_AXIS_STEPS_PER_MM={88888889, 88888889, 400000000, 96275202, 96275202}',
'EEPROM_MENU_ENABLE', 'CLONE_R1', 'RGB_LED_MENU' ]
},
Dan