Flap-CPAP interior mount
We calculate the final price from your selected file. You review and accept it before payment.
Saved on this device.
Remixed to mount blower fan and flap inside chamber.
- Rating
- 5 / 5
- Likes
- 13
- Downloads
- 45
- Makes
- 1
- Views
- 517
- Reviews
- 1
Updated at source:
Model information
- Source
- Printables
- Category
- Voron Parts & Upgrades
- License
- Creative Commons — Attribution — Noncommercial — Share Alike
Printed the cover out of PC to try and see thru it, which kinda works if the light is right, the rest out of ABS. The back mounting plate can help with stability, and also functions as a template for drilling to connect the front and back side. If the back panel is thicker than about 6mm then a longer motor shaft will be needed.
Additionally I edited the macros to use an output pin instead of a separate fan, and added a blower speed control (0.0 to 1.0). This is the pinout for an Octopus Pro 1.1 w the fan in FAN0 and motor in Driver 7.
[fan]
pin: PD12 #dummy pin
shutdown_speed: 0
hardware_pwm: False
off_below: 0.1
#
[output_pin blower_pwm]
pin: PA8 #pin for FAN0 (or part cooling default)
pwm: True
hardware_pwm: True
scale: 1.0
cycle_time: 0.01
shutdown_value: 0
#
[tmc5160 manual_stepper flap_stepper]
cs_pin: PD3
diag1_pin: ^!PG15
spi_software_sclk_pin: PA5
spi_software_mosi_pin: PA7
spi_software_miso_pin: PA6
run_current: 0.6
sense_resistor: 0.075
spi_speed: 3500000
interpolate: True
driver_TPFD: 0
driver_SGT: 1
#
[manual_stepper flap_stepper]
step_pin: PE6
dir_pin: !PA14
enable_pin: !PE0
microsteps: 64
rotation_distance: 1600
velocity: 32000
accel: 1280000
endstop_pin: tmc5160_flap_stepper: virtual_endstop
homing_speed: 20
############# [cpapfan] #################
[gcode_macro _SET_FLAP_ENABLED]
variable_enabled: 0
gcode:
{% set enabled=params.ENABLED|int %}
{% set flap_enabled=printer["gcode_macro _SET_FLAP_ENABLED"].enabled|int %}
{% if enabled!=flap_enabled %}
SET_GCODE_VARIABLE MACRO=_SET_FLAP_ENABLED VARIABLE=enabled VALUE={enabled}
{% if enabled==1 %}
MANUAL_STEPPER STEPPER=flap_stepper ENABLE=1
MANUAL_STEPPER STEPPER=flap_stepper MOVE=-255 STOP_ON_ENDSTOP=1 SPEED=40
MANUAL_STEPPER STEPPER=flap_stepper SET_POSITION=0
{% else %}
MANUAL_STEPPER STEPPER=flap_stepper MOVE=0
MANUAL_STEPPER STEPPER=flap_stepper ENABLE=0
{% endif %}
{% endif %}
#
[gcode_macro M106]
rename_existing: M106.1
gcode:
{% set speed_val = params.S|default(255)|int %}
_SET_FLAP_ENABLED ENABLED=1
{% set move_val = speed_val if speed_val <= 255 else 255 %}
{% set move_val = move_val if move_val >= 0 else 0 %}
MANUAL_STEPPER STEPPER=flap_stepper MOVE={move_val} SYNC=0
#
[gcode_macro M107]
rename_existing: M107.1
gcode:
MANUAL_STEPPER STEPPER=flap_stepper MOVE=0 SYNC=0
_SET_FLAP_ENABLED ENABLED=0
#
[gcode_macro SET_BLOWER_SPEED]
description: Set fixed blower speed (0.0 to 1.0)
gcode:
{% if params.S is defined %}
{% set speed = params.S|float %}
{% if speed < 0 %}
{% set speed = 0 %}
{% elif speed > 1 %}
{% set speed = 1 %}
{% endif %}
SET_PIN PIN=blower_pwm VALUE={speed}
{% else %}
RESPOND PREFIX="error" MSG="Missing parameter S (range 0.0–1.0)"
{% endif %}
#