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

    Pressured air cooling controlled with servo and ball valve

    Scheduled Pinned Locked Moved
    General Discussion
    11
    61
    3.8k
    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.
    • chainbreaker2012undefined
      chainbreaker2012
      last edited by

      sounds like he wants to control servo position based on fan speed. what about hooking servo up to a external control ,like what came with the berd air, controled by the pwm fan pins you could use a bec to feed the controler for the servo voltage
      just a thought

      achrnundefined 1 Reply Last reply Reply Quote 0
      • achrnundefined
        achrn @chainbreaker2012
        last edited by

        @chainbreaker2012 said in Pressured air cooling controlled with servo and ball valve:

        what about hooking servo up to a external control

        If it needs to be controlled from a fan signal rather than from a temperature sensor, that's what I'd do:

        A (very) low pass filter to convert the PWM to an analogue level, then have an arduino-ish read the analogue periodically and generate a servo-friendly PWM. That was actually my initial plan for the servo control I'm doing. However, that's largely because everything I'd need for that is in my bits boxes already, it's not necesarily an elegant solution.

        My other initial plan was to try and read the fan PWM directly and skip the analogue stage, which seems to me slightly more elegant and slightly more fraught.

        1 Reply Last reply Reply Quote 0
        • chainbreaker2012undefined
          chainbreaker2012
          last edited by

          ok understandable, I am doing something similar but I am coming off a compressed air line from outside and using a pressure transducer to regulate pressure to the hotend, and print cooling. I am just waiting on the transducers to come in.

          1 Reply Last reply Reply Quote 0
          • MaxGyverundefined
            MaxGyver
            last edited by

            @chainbreaker2012
            Exactly, I would like to control the servo position based on fan speed.

            Since this already kind of works without any additional electronics on the Duet, it is rather a software issue. My problem is, that the fan S parameter (0-255) does not correspond to the servo angle. The servo can be controlled with an S parameter between 44 and 141 which correspond roughly to 20-80% fan speed.

            Therefore, I need to adjust the given S parameter of the fan output, so that at 0% fan speed the given S parameter is for example at S 44 (0° Servo angle) and at 100% fan speed it is at S 144 (180° Servo angle).

            Cheers Max

            jay_s_ukundefined 1 Reply Last reply Reply Quote 0
            • jay_s_ukundefined
              jay_s_uk @MaxGyver
              last edited by

              @MaxGyver can you not use the L and X commands of M106 to do that?

              Lnnn Set the minimum fan speed (0 to 255 or 0.0 to 1.0) when a non-zero fan speed is requested.
              Xnnn Set the maximum fan speed (0 to 255 or 0.0 to 1.0) when a non-zero fan speed is requested. (supported in RRF >= 2.02)
              

              Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

              dc42undefined 1 Reply Last reply Reply Quote 0
              • jay_s_ukundefined
                jay_s_uk
                last edited by

                @ dc42 maybe an option could be added to the M106 command, similar to the R value in M453

                Rbbbor Raaa:bbb RPM values that are achieved at zero PWM and at maximum RPM. Used to convert the S parameter in M3 and M4 commands to a PWM value.
                

                Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                MaxGyverundefined 1 Reply Last reply Reply Quote 0
                • MaxGyverundefined
                  MaxGyver @jay_s_uk
                  last edited by MaxGyver

                  @jay_s_uk said in Pressured air cooling controlled with servo and ball valve:

                  @ dc42 maybe an option could be added to the M106 command, similar to the R value in M453

                  Rbbbor Raaa:bbb RPM values that are achieved at zero PWM and at maximum RPM. Used to convert the S parameter in M3 and M4 commands to a PWM value.
                  

                  Yes, this would solve my problem. 🙂

                  Cheers
                  Max

                  1 Reply Last reply Reply Quote 0
                  • MaxGyverundefined
                    MaxGyver
                    last edited by MaxGyver

                    As an alternative to my Ball Valve+RC Servo design, I have ordered a PWM capable proportional control valve. The advantage of the Proportional valve is that it is basically plug & play and has less moving parts. But just like the servo, it has a specific PWM range from 300-400 Hz for 0-100% flow. So my Problem remains the same...

                    IMG_20201019_140004.jpg

                    @dc42 would it be possible to add an R value to the M106/M950 command to control the PWM frequencies that are achieved at zero PWM and at maximum RPM similar to the R value in M453?

                    Cheers
                    Max

                    1 Reply Last reply Reply Quote 0
                    • achrnundefined
                      achrn
                      last edited by

                      The data sheet at https://www.burkert.com/en/Media/plm/DTS/DS/DS2863-Standard-EU-EN.pdf doesn't seem to match your decription.

                      That just refers to PWM and the figure on page 8 shows a pretty linear repsonse from about 0.1 to about 0.9 input - probably more linear than any fan, so I don't believe you do have the problem you think you do - surely you just use this as a 24V fan, with a 400Hz PWM? You could put 0.1 low limit on it so it opens immediately you have any non-zero demand.

                      I do note that I don't understand the X axis scale on that graph, because it's a 24V 420mA coil. Also I'm assuming that response to PWM will be similar to the response to whatever that scale is indicating.

                      Where are you seeing something that suggets you need to vary PWM frequency? M950 already lets you specify teh frequnecy and then the standard fan control will vary duty.

                      MaxGyverundefined 1 Reply Last reply Reply Quote 0
                      • MaxGyverundefined
                        MaxGyver @achrn
                        last edited by MaxGyver

                        @achrn

                        Thank you for your feedback. I think you are partly correct.

                        I have tried setting different PWM frequencies in the M915 command. The valve behavior does not change much. Although on higher frequencies (Q>4000) the valve stopped whining, so I am going to stick to those.

                        This is my recent Fan/Valve config:

                        M950 F1 C"1.out1" Q-1
                        M106 P1 S0 H-1
                        

                        I have good control over the airflow with a fan speed from 78% (valve closed) to roughly 90% (valve fully open).

                        Cheers
                        Max

                        Phaedruxundefined BoAundefined 2 Replies Last reply Reply Quote 0
                        • Phaedruxundefined
                          Phaedrux Moderator @MaxGyver
                          last edited by

                          @MaxGyver said in Pressured air cooling controlled with servo and ball valve:

                          78% (valve closed) to roughly 90% (valve fully open).

                          Look at the M106 L and X parameters to set the min and max range to match your usable range. That should scale the S parameter to make S0 to S255 within your usable range.

                          Z-Bot CoreXY Build | Thingiverse Profile

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

                            @Phaedrux

                            I have already tried this. The L and X factor of M106 will not scale the range but rather set the minimum and maximum fan speed.

                            With this configuration the valve will stay in the same slightly open position at a fans peed of 5-80%. So I still only have real control over the flow from 80-90% fan speed.

                            M106 P1 S0 H-1 L200 X255
                            

                            Cheers
                            Max

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

                              @MaxGyver My mistake.

                              Z-Bot CoreXY Build | Thingiverse Profile

                              1 Reply Last reply Reply Quote 0
                              • BoAundefined
                                BoA @MaxGyver
                                last edited by BoA

                                @MaxGyver said in Pressured air cooling controlled with servo and ball valve:

                                Although on higher frequencies (Q>4000) the valve stopped whining, so I am going to stick to those.

                                This will for sure change the valve response characteristics. Perhaps this is why the valv response is not as stated in spec.

                                400Hz is the way to go.

                                MaxGyverundefined 1 Reply Last reply Reply Quote 0
                                • MaxGyverundefined
                                  MaxGyver @BoA
                                  last edited by

                                  @BoA The valve response characteristics do not change with the PWM-Setting. I have the same response with 300, 400 or higher Hz. Only with high Hz the valve is noiseless.

                                  Cheers
                                  Max

                                  1 Reply Last reply Reply Quote 0
                                  • laelundefined
                                    lael
                                    last edited by

                                    @MaxGyver how is this valve working out for you? I'm looking at a similar setup but using a compressed air source instead of an aquarium pump.

                                    Have you put a flowmeter after your solenoid to determine how much air you are delivering and able to control the airflow?

                                    1 Reply Last reply Reply Quote 0
                                    • MaxGyverundefined
                                      MaxGyver
                                      last edited by

                                      Hey @lael,

                                      yes the setup is working well,

                                      I am using this pump by the way.

                                      It has more than enough airflow, good pressure and is not too noisy.
                                      I am switching the 230V power for the pump with a relay.

                                      The valve is also working good so far. Although I have not figured out how to map it correctly to get a range of 0-100% airflow like mentioned in my previous posts.
                                      Right now I am printing with PLA where I have it fully open all the time anyway.

                                      I have tested the airflow with a flow meter. At the hotend I have an airflow of around 20-25l/min. This reduction is mostly due to the 4 mm internal diameter of my tubing. But so far the airflow is sufficient.

                                      -Max

                                      1 Reply Last reply Reply Quote 0
                                      • laelundefined
                                        lael
                                        last edited by lael

                                        @MaxGyver Good to hear! That is quite a lot more airflow than Berd Air will supply. What is the max and min airflows you can control it to?

                                        So for the wiring configuration you have a relay in line on the PWM fan output that triggers the Relay for 240V to the pump? That way when the fan would be on the pump turns on?

                                        MaxGyverundefined 1 Reply Last reply Reply Quote 0
                                        • laelundefined
                                          lael
                                          last edited by

                                          In terms of part cooling at the hotend - this guy: https://twitter.com/brendonbuilds/status/1313914876922912768/photo/1 has an interesting setup. Looks like a resin printed part, but a 6mm aluminium tube should be able to be bent into the same design.

                                          1 Reply Last reply Reply Quote 0
                                          • MaxGyverundefined
                                            MaxGyver @lael
                                            last edited by

                                            @lael I can control the flow from 0% to 100%. The problem is that this range corresponds to the area of 80-100% fan speed on the duet. My workaround is to set the minimum fanspeed in my slicer to just over 80%.

                                            Since I am also cooling my hotend with the air pump, I have set up the relay to trigger when the hotend reaches a certain temperature.

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