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

    Change request to fans[] value format for LED strip

    Scheduled Pinned Locked Moved
    Firmware wishlist
    2
    3
    177
    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.
    • appjawsundefined
      appjaws
      last edited by

      I want to increase or decrease the value of the fan output for my LED strip by a small amount to enable smooth transitions.

      fans[].requestedValue has 2 decimal places but fans[].actualValue only has 1 decimal place

      Red LED Requested value = 0.14
      Red LED Actual value = 0.1
      Green LED Requested value = 0.08
      Green LED Actual value = 0.1
      Blue LED Requested value = 0.44
      Blue LED Actual value = 0.4

      @dc42 Is it possible to provide 2 decimal places please

      appjaws - Core XYUV Duet Ethernet Duex5
      firmware 3.5.0-rc.4 Web Interface 3.5.0-rc.4
      Ormerod 1-converted to laser engraver, Duet wifi
      OpenSCAD version 2024.03.18
      Simplify3D 5.1.2

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

        Yes I can change that. When you use fans[n].actualValue in an expression, you will get an accurate value. It's only the display format that is truncated to 1dp. So you should already be able to use small increments such as 0.05 or 0.01 in your script.

        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
        • appjawsundefined
          appjaws
          last edited by appjaws

          Thanks @dc42 for all your help, it now works great.
          Will be even better when we can use variables.
          What would be a good source to learn the syntax of the commands used for conditional gcodes?

          appjaws - Core XYUV Duet Ethernet Duex5
          firmware 3.5.0-rc.4 Web Interface 3.5.0-rc.4
          Ormerod 1-converted to laser engraver, Duet wifi
          OpenSCAD version 2024.03.18
          Simplify3D 5.1.2

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