Integrated flap valve-gated WS7040 blower CPAP parts cooler
We calculate the final price from your selected file. You review and accept it before payment.
Saved on this device.
Add high-performance CPAP cooling to your printer with instant cooling pressure changes
- Rating
- 0 / 5
- Likes
- 10
- Downloads
- 30
- Makes
- 0
- Views
- 319
- Reviews
- 0
Updated at source:
Model information
- Source
- Printables
- Category
- Other Printer Parts & Upgrades
- License
- BSD License
Here's a flap valve-gated, WS7040-powered CPAP blower for precise and powerful parts cooling! The WS7040 electronics are integrated right in the model, and the flap valve uses a Creality Ender 3 stepper motor that you might already have lying around!
In most 3d printer builds, we have to choose between:
Fans on the toolhead. This offers less cooling, but the fans spin up and spin down quicker, delivering more consistent cooling when needed. For example, when printing a bridge, the fans will speed up quicker to cool the bridge properly, and when the bridge ends, the fans will spool back down quicker to offer correct cooling for the rest of the layer.
CPAP cooling (without a valve). This offers significantly better cooling for faster prints, but at a cost: the WS7040 blower that is often used for CPAP cooling setups takes ages to spin up and slow down. For example, when starting a bridge, the spool up time may not even finish by the time the bridge ends, and at the end of the bridge, the blower retains this speed for far too long for the rest of the layer.
However, with this model, the WS7040 can operate at any continuous or varied speed you want, with instant air applied and removed from the flap valve, even faster than a typical part fan setup! This isn't just the best of both worlds: it removes the downsides to both cooling methods altogether! And you even get a little valve eye that serves as a physical meter for the current flap valve position!
I designed this model to integrate into my Ender 3 NG v1.2, but it can be used with any printer. The WS7040 attaches to the back panel of the model, and was designed to be easily removed by sliding the panel a few millimeters to the side, then removing it. This allows access to the electronics from all angles without needing to remove the model from your printer.
When the air is not used for cooling, the flap valve recirculates the air inside the enclosure. This ensures that the integrated electronics are cooled while also not dumping the air into unwanted places. It also ensures that similar back-pressure is maintained to mitigate unwanted intense puffs of air. The model is also designed to live inside a heated chamber for proper cooling when the chamber is hot (and to reduce a lot of noise).
The model also integrates the WS2403DY01V04 motor controller and the BTT controller adapter board for wiring ease and constant cooling using the air from the WS7040. Accommodations were made to ensure that every large capacitor, connector, etc. is arranged to fit snugly inside the enclosure without any wasted space. Screw spacers are provided to ensure that common screw sizes fit the boards to the bottom of the enclosure properly.
Here's the BOM!
BTT Turbo CPAP Cooling System: https://west3d.com/products/turbo-cpap-cooling-system-fan-and-tube-btt-bigtreetech
60mm fan grill: https://www.amazon.com/dp/B07VBL3R2C
M3x4x4.5 heat set inserts: https://www.amazon.com/dp/B0BX98RLX6
M3 socket head screws: https://www.amazon.com/dp/B0D1XJ766V
XH connectors (1x 4-pin, 1x 5-pin): https://www.amazon.com/dp/B01MCZE2HM
The BTT Turbo CPAP Cooling System includes some tap screws. Use them to attach the WS7040 blower to the back of the model's enclosure. Also mount the WS2403DY01V04 controller to the bottom of the model using four of its screw shims from this model. Mount the BTT controller adapter to the bottom using four of its own screw shims from this model. Use a small amount of super glue to hold the fan grill to the front panel. The model is also designed to mount to aluminum extrusion using M4 T-nuts and screws.
The BTT Turbo CPAP Cooling System includes instruction on how to wire the BTT controller adapter to the WS2403DY01V04 controller. Follow them, and there will be only three wires needed to operate the controller: +24V, ground, and PWM fan control. The controller can draw up to 4 amps, so the +24V and ground connections occupy two pins each on the 5-pin XH connector. Solder them together on the model wiring it, and use both wires in your harness. Solder your Ender 3 stepper motor to the 4-pin XH connector.
The final wiring will look like this:


This allows for neat wiring, as seen here:


Here is an example configuration you for the stepper motor in this model using a tmc2209 driver! You'll likely need to change the pins to match your setup.
[tmc2209 manual_stepper stepper_cpap]
uart_pin: PA10 # RX1
tx_pin: PD6
diag_pin: PC15sense_resistor: 0.11
uart_address: 0
run_current: 0.5
hold_current: 0.1
stealthchop_threshold: 999999
[manual_stepper stepper_cpap]
step_pin: PA3
dir_pin: PB9
enable_pin: !PA2
rotation_distance: 4
microsteps: 16
endstop_pin: tmc2209_stepper_cpap:virtual_endstop
Here are some macros that you can use! I found that the sensor-less homing was somewhat unreliable, I made the homing routine simply flip the flap valve to 0% and 100% a few times. This makes the flap valve jam, but only at 500 mA, and only for a split second, so this is a non-issue.
The M106 (part fan speed to a value) and M107 (set part fan speed to 0%) codes are overridden in this example to also set a flap valve position. The codes are renamed to M106.1 and M107.1, which are also called during these macros. This offers two solutions: it ensures that the Mainsail front-end monitoring of fan speed is retained, and the ".1" calls ensure that the flap position is synced with Klipper's movement prioritization.
[gcode_macro HOME_CPAP_STEPPER]
description: Home the CPAP stepper flap valve
gcode:
MANUAL_STEPPER STEPPER=stepper_cpap ENABLE=1 SET_POSITION=0
M107
M106
M107
M106
M107
MANUAL_STEPPER STEPPER=stepper_cpap SET_POSITION=0
[gcode_macro DISABLE_CPAP_STEPPER]
description: Release the CPAP stepper flap valve
gcode:
MANUAL_STEPPER STEPPER=stepper_cpap ENABLE=0
[gcode_macro M106]
description: Set the CPAP flap valve position based on part fan speed.
rename_existing: M106.1
gcode:
{% set max_position = 0.58 %}
{% set speed = 35 %}
{% set accel = 2000 %}
{% set fan_speed = params.S|default(255)|float %}
{% set position = (fan_speed / 255.0) * max_position %}
M106.1 S{ fan_speed}
MANUAL_STEPPER STEPPER=stepper_cpap MOVE={ position } SPEED={ speed } ACCEL={ accel }
[gcode_macro M107]
description: Close the flap valve
rename_existing: M107.1
gcode:
M106 S0
M107.1
With these macros in-place, you can add this to your "start" G-code to home the stepper and start the blower (feel free to adjust the speed with a float from 0.0 to 1.0). This can also be added to the filament "start" G-code to set a blower speed for each filament type.
HOME_CPAP_STEPPER
SET_FAN_SPEED FAN=cpap_blower SPEED=1.0...and put this in your "end" G-code to ensure that the fan turns off and the flap valve stepper is released:
SET_FAN_SPEED FAN=cpap_blower SPEED=0
DISABLE_CPAP_STEPPERFeel free to put any combinations of the above in your own "pause" and "resume" macros in Klipper for better integration.
To house the cables, you can also use my 8x13 mm LED cable cover model.
Enjoy!