KlipperWrt icon indicating copy to clipboard operation
KlipperWrt copied to clipboard

[guide] DSLR snapshots - mainboard GPIO triggered

Open ihrapsa opened this issue 2 years ago • 0 comments

This macro triggers pin PC6 on the Creality v4.2.2 board display port and can be used to trigger a 3.3V relay module in order to act as a shutter for your DSLR. Call this cheese macro inside your slicer layer change post processing settings.

Note! To make parked snapshots you have to put this cheese macro inside another macro that parks the head and call this latter macro inside the slicer instead.

Many thanks to Fry Sennberg for this

[output_pin dslr_shutter]
pin: PC6

[gcode_macro cheese]
gcode:
  SET_PIN PIN=dslr_shutter VALUE=1 ; set pin high
  G4  P200 ; dwell for x ms
  SET_PIN PIN=dslr_shutter VALUE=0 ; set pin low

image

image

Screenshots taken from here: https://klipper.wiki/index.php/Creality_4.2.2

ihrapsa avatar Jul 20 '21 19:07 ihrapsa