Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Higher fidelity on PWM on DUEX5

    Scheduled Pinned Locked Moved
    General Discussion
    2
    4
    418
    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.
    • Hardware_SortingRoboticsundefined
      Hardware_SortingRobotics
      last edited by

      I am using the PWM ports on the DUEX5 to control a fan with a speed controller. It appears I only have a resolution of S4... as in there is no change in speed between S70 until S74. Is there a way to get higher fidelity using the PWM M280 commands?

      1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators
        last edited by

        The resolution should be 8 bits, because the SX1509B chip on the DueX provides 8 bit intensity control on the PWM output. Have you measured the output pulse timing using an oscilloscope?

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        Hardware_SortingRoboticsundefined 1 Reply Last reply Reply Quote 0
        • Hardware_SortingRoboticsundefined
          Hardware_SortingRobotics @dc42
          last edited by

          @dc42 I don't really understand...Does the 8 bit resolution map to a single "S1" digit?

          Unfortunately, I don't have an oscilloscope, is there any other way to debug this?

          1 Reply Last reply Reply Quote 0
          • dc42undefined
            dc42 administrators
            last edited by dc42

            I am sorry, I misread your post. I now see that you are using the PWM ports, not the fan ports.

            Please see this post https://forum.duet3d.com/topic/8453/microsecond-resolution-when-using-m280-for-servo-control. In summary, the following should improve the resolution:

            • Use firmware 2.03RC2 instead of firmware 2.02
            • Or use a PWM port controlled by a timer channel instead of a PWM channel

            Duet WiFi hardware designer and firmware engineer
            Please do not ask me for Duet support via PM or email, use the forum
            http://www.escher3d.com, https://miscsolutions.wordpress.com

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