Creating timelapses using Yi 4k Camera

Today I present you how I hacked my YI 4K Action Camera so I can use it to create timelapses of my 3D prints.


After layer change gcode for Prusa Slicer:

;AFTER_LAYER_CHANGE G1 X249 Y200 F{travel_speed*60} ;Move away from the print

G4 S0 ;Wait for move to finish

G4 P1500 ;Wait for 1500ms – taking a photo


Check Trianglelab on Aliexpress: – affiliate link, you pay nothing extra, I get small change, I am not sponsored by them, they just have great price/value ratio for 3D printer parts and a free shipping.

You can support me in various ways:

– smash the like button and subscribe to my channel: – that really helps me, thanks!

– buy me a coffee (filament in fact):

For more info about me you can visit:



My blog:




Share the love and 3D print everything. Many thanks to the whole 3D printing community.

#medyk3D #3DPrinting #YI4KTimelapses