ihrapsa / KlipperWrt

A guide to install Klipper with fluidd, Mainsail or Duet-Web-Control and webcam stream in OpenWrt. Mainly created around the Creality Wi-Fi box but any OpenWrt running device with similar specs will work just fine.
180 stars 39 forks source link

[guide] DSLR snapshots - mainboard GPIO triggered #16

Open ihrapsa opened 3 years ago

ihrapsa commented 3 years ago

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