Fan2 for light

I have an effector light connected to fan2 on radds When I press light on radds display it goes on for a second then goes off. When I start the printer it also goes on for a second then goes off. Why doesn't stay on?

Comments

  • Typical reason would be having some other function using the pin as well. If you have for example configured 2 fans it would turn off the fan2 on next pwm set since the fan is off by default. Same if that pin is set as cooler fan for an extruder or something else. So check config what else apart from light toggle is using the pin.
  • edited October 2017
    I don't see where I have used the same pin twice . Attached is a picture of my pins.h and two instances where fan is mentioned in config.h. Is there somewhere else to look ? Is this damaging to the DUE?

    config:

    #undef FAN_BOARD_PIN
    #define FAN_BOARD_PIN -1
    #define BOARD_FAN_SPEED 255
    #define FAN_THERMO_PIN -1
    #define FAN_THERMO_MIN_PWM 128
    #define FAN_THERMO_MAX_PWM 255
    #define FAN_THERMO_MIN_TEMP 45
    #define FAN_THERMO_MAX_TEMP 60
    #define FAN_THERMO_THERMISTOR_PIN -1
    #define FAN_THERMO_THERMISTOR_TYPE 14

    and

    #define SD_EXTENDED_DIR 1 /** Show extended directory including file length. Don't use this with Pronterface! */
    #define SD_RUN_ON_STOP ""
    #define SD_STOP_HEATER_AND_MOTORS_ON_STOP 0
    #define ARC_SUPPORT 1
    #define FEATURE_MEMORY_POSITION 1
    #define FEATURE_CHECKSUM_FORCED 0
    #define FEATURE_FAN_CONTROL 1
    #define FEATURE_FAN2_CONTROL 1
    #define FEATURE_CONTROLLER 7
    #define ADC_KEYPAD_PIN -1

    pin:

    #define SDSUPPORT 1
    #define SDPOWER -1
    // 4,10,52 if using HW SPI.
    #define SDSS 4
    #define ORIG_SDCARDDETECT 14
    #define SDCARDDETECTINVERTED 0
    #define LED_PIN -1
    #define ORIG_FAN_PIN 9
    #define ORIG_FAN2_PIN 8
    #define ORIG_PS_ON_PIN 40
    #define KILL_PIN -1
    #define SUICIDE_PIN -1 //PIN that has to be turned on right after start, to keep power flowing.

    // 20 or 70
    #define SDA_PIN 20
    // 21 or 71
    #define SCL_PIN
  • edited October 2017
    Here are the pictures --dont know why they dont show up
  • Light gets set over 

    CASE_LIGHTS_PIN whcih I do not see in your config part.

    #define FEATURE_FAN2_CONTROL 1

    mean enable second fan and that also uses FAN2_PIN and will disable a light enabled with M355.In that case

    M106 P1 S255 should enable the light.

  • here it is. but M106 P1 S255 doesnt enable the light.

    #define UI_PAGES_DURATION 4000
    #define UI_ANIMATION 0
    #define UI_SPEEDDEPENDENT_POSITIONING 0
    #define UI_DISABLE_AUTO_PAGESWITCH 1
    #define UI_AUTORETURN_TO_MENU_AFTER 30000
    #define FEATURE_UI_KEYS 0
    #define UI_ENCODER_SPEED 1
    #define UI_REVERSE_ENCODER 0
    #define UI_KEY_BOUNCETIME 10
    #define UI_KEY_FIRST_REPEAT 500
    #define UI_KEY_REDUCE_REPEAT 50
    #define UI_KEY_MIN_REPEAT 50
    #define FEATURE_BEEPER 1
    #define CASE_LIGHTS_PIN ORIG_FAN2_PIN
    #define CASE_LIGHT_DEFAULT_ON 1
    #define UI_START_SCREEN_DELAY 1000
    #define UI_DYNAMIC_ENCODER_SPEED 1

  • so i should make fan2control 0? please let me know

  • Yes
    #define FEATURE_FAN2_CONTROL 0

    should be set so it does not use same pin. Also check if you have no cooler pins set to fan 2.
  • Can this be changed in the EEPROM or does the firmware have to be reloaded
  • No you need to upload firmware for that. It changes the software code.
  • If I want to change the firmware without changing eeprom settings and I don't know if it was on 1 or 2 the last time I uploaded, is there a way to find out or do I use 0?
  • 0 is disable eeprom usage. No firmware does not report the content of that byte, sorry. All you could do is make a copy with host/server of your eeprom settings.
Sign In or Register to comment.