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

    Problems wiring & configuring fans

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    5
    24
    1.0k
    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.
    • Ce72undefined
      Ce72
      last edited by droftarts

      Hi
      I'm having some problems getting my fans working on my new build. and need some help. I'm using the 6HC mainboard + Rpi4 on the latest firmwares. and having troubles getting a E3D 24v 2 wire fan working as a printhead fan. and a Cpap blower as my part cooling fan. This is what I have tried so far:

      1. E3d fan wired and comfigured on "out7" powered by vin (24v) to be thermostaticly controlled to come on at 45ΒΊ by "temp1" hotend PT1000 sensor. (The fan didn't work)

      2. After reading some posts, I came to the conclusion that "out7" would not give me that control so I moved the wires to "out5" with the red wire on pin2 and black to pin4 also powered by vin. (This worked as expected once and then stopped working)

      3. The Cpap blower, Item link: https://www.aliexpress.com/item/32980201709.html?spm=a2g0o.order_list.0.0.21ef1802djmEpl I tried setting this up on "out4" as described in this post ( https://forum.duet3d.com/topic/23876/connecting-high-power-12v-fan-to-duet-3-6hc/9 ) for contecting high power fans, ( Fan doesn't work ).

      I have limited electrical knowledge, and know experimenting can be expensive. So I'm hoping someone can help before I find the magic smoke.

      Rushmere3Dundefined jay_s_ukundefined 2 Replies Last reply Reply Quote 0
      • Rushmere3Dundefined
        Rushmere3D @Ce72
        last edited by

        @ce72 post you complete config.g using the code feature </> so we can read it and help if needed.

        Follow my adventures in 3D Printing, laser cutting and electronics. https://linktr.ee/Rushmere3D

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

          @ce72 can you also elaborate on your wiring to the 6HC? maybe mark up the wiring diagram to make it clear? https://docs.duet3d.com/duet_boards/duet_3_mb6hc/duet_3_mb6hc_wiring_diagram_v1.0_v1.01.png

          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

          Ce72undefined 1 Reply Last reply Reply Quote 0
          • Ce72undefined
            Ce72 @Rushmere3D
            last edited by droftarts

            @rushmere3d Hi this is a cut and paste of my config.g file

             Configuration file for Duet 3 (firmware version 3)
            ; executed by the firmware on start-up
            ;
            ; generated by RepRapFirmware Configuration Tool v3.2.3 on Sat May 08 2021 00:14:11 GMT+0100 (British Summer Time)
            
            ; General preferences
            G90                                          ; send absolute coordinates...
            M83                                          ; ...but relative extruder moves
            M550 P"Hevort"                               ; set printer name
            M669 K1                                      ; select CoreXY mode
            
            ; Network
            M552 P0.0.0.0 S1                             ; enable network and acquire dynamic address via DHCP
            M586 P0 S1                                   ; enable HTTP
            M586 P1 S0                                   ; disable FTP
            M586 P2 S0                                   ; disable Telnet
            
            ; Drives
            M569 P0.0 S1                                 ; physical drive 0.0 goes forwards
            M569 P0.1 S1                                 ; physical drive 0.1 goes forwards
            M569 P0.2 S1                                 ; physical drive 0.2 goes forwards
            M569 P0.3 S1                                 ; physical drive 0.3 goes forwards
            M584 X0.1 Y0.2 Z0.5:0.4:0.3 E0.0             ; set drive mapping
            M671 X-30.0:164.4:362.8 Y-30.0:298.8:-30.0   ; z leadscrew positions
            M350 X16 Y16 Z16 E16 I1                      ; configure microstepping with interpolation
            M92 X80.00 Y80.00 Z400.00 E420.00            ; set steps per mm
            M566 X900.00 Y900.00 Z60.00 E120.00          ; set maximum instantaneous speed changes (mm/min)
            M203 X6000.00 Y6000.00 Z180.00 E1200.00      ; set maximum speeds (mm/min)
            M201 X500.00 Y500.00 Z20.00 E250.00          ; set accelerations (mm/s^2)
            M906 X1200 Y1200 Z1200 E1100 I30             ; set motor currents (mA) and motor idle factor in per cent
            M84 S30                                      ; Set idle timeout
            
            ; Axis Limits
            M208 X0 Y0 Z0 S1                             ; set axis minima
            M208 X330 Y315 Z340 S0                       ; set axis maxima
            
            ; Endstops
            M574 X1 S1 P"!io0.in"                        ; configure active-high endstop for low end on X via pin !io0.in
            M574 Y1 S1 P"!io1.in"                        ; configure active-high endstop for low end on Y via pin !io1.in
            
            ; Z-Probe
            M950 S0 C"io7.out"                           ; create servo pin 0 for BLTouch
            M558 P9 C"^io7.in" H5 F120 T6000             ; set Z probe type to bltouch and the dive height + speeds
            M558 H30                                     ;*** Remove this line after delta calibration has been done and new delta parameters have been saved
            G31 P500 X30 Y40 Z2.5                        ; set Z probe trigger value, offset and trigger height
            M557 X15:215 Y15:195 S20                     ; define mesh grid
            
            ; Heaters & Sensors
            M308 S0 P"temp0" Y"thermistor" T100000 B3950 ; configure sensor 0 as thermistor on pin temp0               BED TEMP
            M950 H0 C"out0" T0                           ; create bed heater output on out0 and map it to sensor 0
            M307 H0 B1 S1.00                             ; enable bang-bang mode for the bed heater and set PWM limit
            M140 H0                                      ; map heated bed to heater 0
            M143 H0 S120                                 ; set temperature limit for heater 0 to 120C
            M308 S1 P"temp1" Y"pt1000" R2200             ; configure sensor 1 as PT1000 on pin temp1                   EXTRUDER TEMP
            M950 H1 C"out1" T1                           ; create nozzle heater output on out1 and map it to sensor 1
            M307 H1 B0 S1.00                             ; disable bang-bang mode for heater  and set PWM limit
            M143 H1 S280                                 ; set temperature limit for heater 1 to 280C
            M308 S2 A"Chamber" P"temp2" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin temp2    CHAMBER TEMP SENSOR
            M308 S10 Y"mcu-temp" A"MCU"                  ; defines sensor 10 as MCU temperature sensor                 MCU TEMP SENSOR
            M308 S11 Y"drivers" A"Stepper Drivers"       ; defines sensor 11 as stepper driver temperature             STEPPER TEMP SENSOR
            
            
            ; Fans
            M950 F0 C"out4" Q500                         ; create fan 0 on pin out4 and set its frequency              PART COOLING FAN
            M106 P0 S0 H-1                               ; set fan 0 value. Thermostatic control is turned oFF
            M950 F1 C"out5" Q500                         ; create fan 1 on pin out7 and set its frequency              EXTRUDER FAN
            M106 P1 S1 H1 T45                            ; set fan 1 value. Thermostatic control is turned on
            ;M950 F2 C"out5" Q500                         ; create fan 2 on pin out5 and set its frequency              MCU COOLING FAN
            ;M106 P2 H10:11 T40:70                        ; set fan 2 value. Thermostatic control is turned on
            ;M950 F3 C"out6" Q500                         ; create fan 3 on pin out6 and set its frequency              CHAMBER FAN
            ;M106 P3 S0.7 H2 T60                          ; set fan 3 value. Thermostatic control is turned on
            
            
            ; Tools
            M563 P0 D0 H1 F0                             ; define tool 0
            G10 P0 X0 Y0 Z0                              ; set tool 0 axis offsets
            G10 P0 R0 S0                                 ; set initial tool 0 active and standby temperatures to 0C
            
            ; Custom settings are not defined
            
            ; Miscellaneous
            M501                                         ; load saved parameters from non-volatile memory
            

            I hope this helps, I have commented out the other fans I originally planned to use, going one step at a time and also realising the limitations

            1 Reply Last reply Reply Quote 0
            • Ce72undefined
              Ce72 @jay_s_uk
              last edited by

              @jay_s_uk
              duet_3_mb6hc fan wiring.jpg

              I hope this is clear enough πŸ™‚ I'm not great with paint

              droftartsundefined jay_s_ukundefined 2 Replies Last reply Reply Quote 0
              • droftartsundefined
                droftarts administrators @Ce72
                last edited by

                @ce72 How are the two three-pin jumpers above OUT4 to OUT9 set? These control the voltage to each bank of OUT connectors. The E3D fan needs 24V. Do you have the 12V or 24V version of the CPAP fan controller? The fan needs to be supplied with that voltage continuously. The fan controller also says it needs a "Input 0-5V DC signal to change motor speed", so 0V to 5V variable, not PWM.

                Ian

                Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

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

                  @ce72
                  I don't think the way you have the VSR wired is correct. Looking at the aliexpress listing, the VSR accepts a 0-5v analogue control signal to set the fan speed. RRF provides PWM signals which won't work. You'll need something like a PWM to analogue converter (which is the same way I control my CNC spindle). https://www.amazon.co.uk/Voltage-Converter-Analog-0-100-2KHZ-20KHZ/dp/B07SZ8JYLT

                  The E3D fan wiring however looks correct. It is worth checking how you have the jumper set just above OUT4 (the Low current output voltage input).

                  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

                  Ce72undefined 1 Reply Last reply Reply Quote 0
                  • Ce72undefined
                    Ce72 @droftarts
                    last edited by

                    @droftarts
                    Both jumpers set to V Fused, I Originally I had outputs 4-6 set to 12v, but after my first problem with "out7" i changed 4-6 onto the Vfused jumper.

                    1 Reply Last reply Reply Quote 0
                    • Ce72undefined
                      Ce72 @jay_s_uk
                      last edited by

                      @jay_s_uk
                      If anything I thought this could be my problem and where my knoledge run out, would this give me the same solution? https://www.ebay.co.uk/itm/194326627552 . As the one you linked was out of stock.

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

                        @ce72 No, that ones the wrong way. you need PWM to voltage like this https://www.ebay.co.uk/itm/194326642791

                        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

                        Ce72undefined 1 Reply Last reply Reply Quote 0
                        • Ce72undefined
                          Ce72 @jay_s_uk
                          last edited by

                          @jay_s_uk
                          Thank you for pointing that out, the fun of google search same words wrong place πŸ˜•

                          On the the off chance and please pardon my ignorance here, but I have got this with another air pump system, would it be what I need?

                          pic1.jpg
                          pic2.jpg

                          If not I will happily grab the one you linked to

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

                            @ce72 looks like an external mosfet for when the onboard ones aren't powerful enough. It won't help you in this instance

                            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

                            Ce72undefined 1 Reply Last reply Reply Quote 0
                            • Ce72undefined
                              Ce72 @jay_s_uk
                              last edited by

                              @jay_s_uk That's fair enough. I have just ordered the one that you linked, The next question is could you tell me how I need to wire it in and configure it

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

                                @ce72 you'd wire it as you have your fan. The output from the PWM to analog would then go to the VSR for the speed. Then just configure it as a normal fan

                                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

                                1 Reply Last reply Reply Quote 0
                                • Ce72undefined
                                  Ce72
                                  last edited by

                                  @jay_s_uk so if I understand you correctly that would be

                                  "out4" jumper in VFused
                                  pin1 = GND:Ground
                                  pin2 = VCC:DC 12V-30V
                                  pin3 = PWM:Positive of PWM input signal
                                  pin4 = GND:Negative of input signal

                                  "fan control board"
                                  VSR = VOUT:Output Voltage 0-10V
                                  GND = GND:Output Voltage Ground
                                  PG = Not connected

                                  Is this is for the 24v version of the Cpap?

                                  You also mentioned earlier about the frequency on the E3d fan? how do I determine this value and could this be the reason for it not working at the moment

                                  Thank you for all your help it is very much appreciated, As I feel like I have been banging my head against a brick wall trying to work this out πŸ™‚

                                  Rushmere3Dundefined jay_s_ukundefined 2 Replies Last reply Reply Quote 0
                                  • Rushmere3Dundefined
                                    Rushmere3D @Ce72
                                    last edited by

                                    @ce72 "Qnn (optional) PWM frequency in Hz. Valid range: 0-65535, default: 500 for GpOut pins, 250 for fans and heaters"

                                    Follow my adventures in 3D Printing, laser cutting and electronics. https://linktr.ee/Rushmere3D

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

                                      @ce72 no, it would be provide 24v directly to the VSR from your PSU.
                                      connect between V_OUTLC1 (+) and out4 (-) to the input of the PWM to analog converter.
                                      the PWM to analog would then just need to connect the + and - to the VSR 0-5v input and ground. Make sure you set the PWM to analog to 5v mode rather than 10v.

                                      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

                                      Ce72undefined 1 Reply Last reply Reply Quote 0
                                      • Ce72undefined
                                        Ce72 @jay_s_uk
                                        last edited by

                                        @jay_s_uk oh fair enough, thank you for pointing that out, I will check the output before fully conecting them up.

                                        I'll post back with the outcome when the convertor arrives

                                        thank you again

                                        Ce72undefined 1 Reply Last reply Reply Quote 1
                                        • Ce72undefined
                                          Ce72 @Ce72
                                          last edited by

                                          @ce72 I have received my PWM to voltage converter and I'm have troubles connecting it and getting the right output. I have checked the port on the board with a pigtail and multimeter and I'm getting the right output from there as it is the same as the other ports which are now working.

                                          Here is how I'm trying to connect the converter

                                          port6
                                          V_OUTLC1 red wire to 12-30V on the converter
                                          OUT6(-) black wire to PWM- on the converter

                                          yellow & blue going to the multimeter (leave other components out of the way)

                                          I'm only getting 0.2v out

                                          pwm converter.jpeg

                                          Please advise (I've managed to get the acceleromter working no problem, but I'm getting beaten by a fan πŸ˜• )

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

                                            @ce72 what have you connected the PWMIN+ wire on the converter to? And the GND side of the 12-30V power input?

                                            PS - also, which of the 2 drivers on that page linked to in the original post are you using with it: the 12V one or the 24V one?

                                            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

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