Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    I am trying to setup a pwm controlled on-off switch

    Duet Hardware and wiring
    3
    4
    84
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Szwalkiewicz
      Szwalkiewicz last edited by

      On RRF 2.05.1

      I am trying to setup a pwm controlled on-off switch for Led's on heater 4

      So I placed a "M307 H4 A-1 C-1 D-1" at the bottom of the config.g
      and if I try to use the pin with a command like "M280 P4 S160 I1"
      It will not work and I get an error message of

      M98 P"0:/macros/LED/LED off"
      Error: M280: Invalid servo index 4 in M280 command

      And i know the switch works because if i put the signal wire for the Pwm switch on heater 3 (My bltouch pwm signal) it works perfect. so i'm missing a step in the process to get this working

      o_lampe 1 Reply Last reply Reply Quote 0
      • o_lampe
        o_lampe @Szwalkiewicz last edited by

        @szwalkiewicz
        What controller are we talking about?
        You might have a FET behind Heater3, but not behind Heater4. Because heater 4 is only a GPIO pin leading to a sub-controller like DUEX...

        1 Reply Last reply Reply Quote 0
        • Phaedrux
          Phaedrux Moderator last edited by

          Are you sure you're on RRF 2.05.1?
          Do you have a config-override.g that contains another heater command M307 H4?

          Z-Bot CoreXY Build | Thingiverse Profile

          Szwalkiewicz 1 Reply Last reply Reply Quote 0
          • Szwalkiewicz
            Szwalkiewicz @Phaedrux last edited by

            @phaedrux

            Thanks u nailed it 🙂 a config override was auto generated with M307’s for all heater’s. For some reason setting a probe type for a heater overrides the M307 with blank pid’s in config override which is why the bl touch worked and pwm switch did not.....I guess?

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Unless otherwise noted, all forum content is licensed under CC-BY-SA