{"id":608,"date":"2023-09-05T09:03:00","date_gmt":"2023-09-05T09:03:00","guid":{"rendered":"https:\/\/function3d.xyz\/?p=608"},"modified":"2023-09-08T16:55:34","modified_gmt":"2023-09-08T16:55:34","slug":"time-lapses-with-your-smartphone-with-any-3d-printer","status":"publish","type":"post","link":"https:\/\/shop.function3d.xyz\/es\/time-lapses-with-your-smartphone-with-any-3d-printer\/","title":{"rendered":"Time Lapses with your smartphone with any 3D printer"},"content":{"rendered":"<p class=\"qtranxs-available-languages-message qtranxs-available-languages-message-es\">Disculpa, pero esta entrada est\u00e1 disponible s\u00f3lo en <a href=\"https:\/\/shop.function3d.xyz\/en\/wp-json\/wp\/v2\/posts\/608\" class=\"qtranxs-available-language-link qtranxs-available-language-link-en\" title=\"English\">English<\/a>.<\/p><p>This is my way to perform timelapse with an old android phone on any printer. <\/p>\n\n\n\n<!--more-->\n\n\n\n<p>I have developed a choreography of movements that allows to minimize the stringing during the timelapse with the help of Cura&#8217;s gcode post processing timelapse and the search and replace plugins.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Print orientation<\/strong><\/p>\n\n\n\n<p>STL: <a href=\"https:\/\/www.printables.com\/es\/model\/553504-time-lapses-with-your-smartphone-with-any-3d-print\" target=\"_blank\" rel=\"noopener\">https:\/\/www.printables.com\/es\/model\/553504-time-lapses-with-your-smartphone-with-any-3d-print<\/a><\/p>\n\n\n\n<p>Print only one model, whichever one you need<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"759\" height=\"607\" src=\"https:\/\/function3d.xyz\/wp-content\/uploads\/2023\/09\/image-8.png\" alt=\"\" class=\"wp-image-661\"\/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Parts list<\/strong><\/p>\n\n\n\n<p>Bluetooth button: &nbsp;<a href=\"https:\/\/s.click.aliexpress.com\/e\/_Dl2mn7v\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/s.click.aliexpress.com\/e\/_Dl2mn7v<\/a><br>Limit switch:&nbsp;<a href=\"https:\/\/s.click.aliexpress.com\/e\/_DkDL54F\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/s.click.aliexpress.com\/e\/_DkDL54F<\/a><br>Two-wire cable<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"935\" height=\"704\" src=\"https:\/\/function3d.xyz\/wp-content\/uploads\/2023\/09\/image-7.png\" alt=\"\" class=\"wp-image-658\"\/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Instructions<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"584\" height=\"432\" src=\"https:\/\/function3d.xyz\/wp-content\/uploads\/2023\/09\/image-9.png\" alt=\"\" class=\"wp-image-662\" srcset=\"https:\/\/shop.function3d.xyz\/wp-content\/uploads\/2023\/09\/image-9.png 584w, https:\/\/shop.function3d.xyz\/wp-content\/uploads\/2023\/09\/image-9-300x222.png 300w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Add timelapse post processing Script<\/strong><\/li>\n\n\n\n<li>Set the \u201cPause length\u201d to the miliseconds your phone needs to take a picture.&nbsp;<\/li>\n\n\n\n<li>Set the Park Print Head (trigger position) X and Y to the maximum values of your printer.<\/li>\n\n\n\n<li>Set the Z-Hop and retraction, I use 1.4mm and 2mm of retraction for the Kobra2 and PET filament.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"693\" height=\"287\" src=\"https:\/\/function3d.xyz\/wp-content\/uploads\/2023\/09\/image-10.png\" alt=\"\" class=\"wp-image-663\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Add search and replace post processing Script<\/strong><\/li>\n\n\n\n<li>Search text:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>.+\\n(.+) ;Retract filament\\n.+\\n.+\\n(.+) ;Z-Hop\\n.+\\n(.+)\\n.+\\n.+\\n(.+) ;Wait for camera\\n(.+)(Z.+); Restore position.+\\n.+\\n.+\\n(.+) ;Retract filament\\n.+\\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Replace text:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>;TimeLapse Begin\\nM83 ;Extrude Relative\\n\\1 ;Retract filament\\nM400 ;Wait for moves to finish\\n\\2 ;Z-Hop\\nM400 ;Wait for moves to finish\\n\\3\\nM400 ;Wait for moves to finish\\nG1 F15000 X215 ;Realease trigger\\nM400 ;Wait for moves to finish\\n\\4; Wait for camera\\n\\5 ; Restore position\\nM400 ;Wait for moves to finish\\n\\7 \\6 ;UnZ-Hop and Unretract filament\\nM82 ;Extrude Absolute\\n;TimeLapse End\\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ajust the X215 in the replace text above to the maximum X position of you printer minus 5. This is the position where the carriege wait for the shoot before return to the print. This small movement from the park position is necessary after pressing the limit switch to prevent a burst of photos from being taken instead of just one. Example: If maximum X position is 230, use X225.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Check \u201cUse Regular Expresions\u201d<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"699\" height=\"208\" src=\"https:\/\/function3d.xyz\/wp-content\/uploads\/2023\/09\/image-11.png\" alt=\"\" class=\"wp-image-664\"\/><\/figure>\n\n\n\n<p><strong>Bonus<\/strong><\/p>\n\n\n\n<p><strong>You can deactivate the timelapse movements without deleting the post processing scripts<\/strong>, unchecking the &#8220;use regular expression&#8221; in the &#8220;search and replace&#8221; script and adding another &#8220;search and replace&#8221; like the previous one but with the replacement text empty and the &#8220;use regular expression&#8221; checked. To reactivate the timelapse check the &#8220;Use regular expressions&#8221; checkbox of the first script &#8220;Search and replace&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"699\" height=\"267\" src=\"https:\/\/function3d.xyz\/wp-content\/uploads\/2023\/09\/image-12.png\" alt=\"\" class=\"wp-image-665\"\/><\/figure>\n\n\n\n<p><strong>Timelapse with a gcode macro in klipper<\/strong><\/p>\n\n\n\n<p>If you have the klipper firmware running on your printer you can still use the above instructions but you can also use a macro like this one:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;gcode_macro TIMELAPSE_TAKE_FRAME]\ndescription: Timelapse Take Frame\ngcode:\n  {% set zhop = params.ZHOP|default(1.4)|float %}\n  {% set retraction = params.RETRACTION|default(6)|float %}\n  {% set wait = params.WAIT|default(300)|int %}\n  G91 ;Relative Positioning including extruder\n  G1 F1800 E-{retraction} ;Retract filament\n  M400 ;Wait for moves to finish\n  G1 F1800 Z{zhop} ;Z-Hop\n  M400 ;Wait for moves to finish\n  G90 ;Absolute Positioning including extruder  \n  {% set toolhead = printer.toolhead %}\n  {% set x = toolhead.position.x %}\n  {% set y = toolhead.position.y %}\n  {% set z = toolhead.position.z %}\n  G1 F15000 X{printer.toolhead.axis_maximum.x} Y{printer.toolhead.axis_maximum.y} ;Park\n  M400 ;Wait for moves to finish\n  G1 F15000 X{printer.toolhead.axis_maximum.x-1} ;Realease trigger\n  M400 ;Wait for moves to finish\n  G4 P{wait}; Wait for camera\n  G1 F15000 X{x} Y{y}\n  M400 ;Wait for moves to finish\n  G91 ;Relative Positioning including extruder\n  G1 F1800 E{retraction} Z-{zhop} ;UnZ-Hop and Unretract filament\n  G90 ;Absolute Positioning including extruder<\/code><\/pre>\n\n\n\n<p>And from Cura add a <strong>Search and Replace post processing script<\/strong>:<\/p>\n\n\n\n<p>Search:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>;LAYER:<\/code><\/pre>\n\n\n\n<p>Replace (without parameters):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>TIMELAPSE_TAKE_FRAME\\n;LAYER:<\/code><\/pre>\n\n\n\n<p>Replace (with parameters, <code>ZHOP<\/code> and <code>RETRACTION<\/code> in <code>mm<\/code>, <code>WAIT<\/code> in <code>ms<\/code>):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>TIMELAPSE_TAKE_FRAME ZHOP=2 RETRACTION=2 WAIT=500\\n;LAYER:<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"696\" height=\"187\" src=\"https:\/\/function3d.xyz\/wp-content\/uploads\/2023\/09\/image-13.png\" alt=\"\" class=\"wp-image-691\" srcset=\"https:\/\/shop.function3d.xyz\/wp-content\/uploads\/2023\/09\/image-13.png 696w, https:\/\/shop.function3d.xyz\/wp-content\/uploads\/2023\/09\/image-13-300x81.png 300w, https:\/\/shop.function3d.xyz\/wp-content\/uploads\/2023\/09\/image-13-600x161.png 600w\" sizes=\"auto, (max-width: 696px) 100vw, 696px\" \/><\/figure>\n\n\n\n<p>To deactivate or reactivate the timelapse add or remove for example an underscore to the search text.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"695\" height=\"151\" src=\"https:\/\/function3d.xyz\/wp-content\/uploads\/2023\/09\/image-14.png\" alt=\"\" class=\"wp-image-692\" srcset=\"https:\/\/shop.function3d.xyz\/wp-content\/uploads\/2023\/09\/image-14.png 695w, https:\/\/shop.function3d.xyz\/wp-content\/uploads\/2023\/09\/image-14-300x65.png 300w, https:\/\/shop.function3d.xyz\/wp-content\/uploads\/2023\/09\/image-14-600x130.png 600w\" sizes=\"auto, (max-width: 695px) 100vw, 695px\" \/><\/figure>\n\n\n\n<p>If you have any questions or comments you can leave them in the comments section of this video <a href=\"https:\/\/www.tiktok.com\/@function.3d\/video\/7276499498820472096\" data-type=\"link\" data-id=\"https:\/\/www.tiktok.com\/@function.3d\/video\/7276499498820472096\" target=\"_blank\" rel=\"noopener\">3D printing timelapse using a smartphone<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>Disculpa, pero esta entrada est\u00e1 disponible s\u00f3lo en English. This is my way to perform timelapse with an old android phone on any printer.<\/p>\n","protected":false},"author":1,"featured_media":609,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_jetpack_memberships_contains_paid_content":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[49],"tags":[],"class_list":["post-608","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorial"],"jetpack_featured_media_url":"https:\/\/shop.function3d.xyz\/wp-content\/uploads\/2023\/09\/InShot_20230815_102654200.gif","jetpack_shortlink":"https:\/\/wp.me\/pe3sSh-9O","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/shop.function3d.xyz\/es\/wp-json\/wp\/v2\/posts\/608","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shop.function3d.xyz\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shop.function3d.xyz\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shop.function3d.xyz\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shop.function3d.xyz\/es\/wp-json\/wp\/v2\/comments?post=608"}],"version-history":[{"count":13,"href":"https:\/\/shop.function3d.xyz\/es\/wp-json\/wp\/v2\/posts\/608\/revisions"}],"predecessor-version":[{"id":696,"href":"https:\/\/shop.function3d.xyz\/es\/wp-json\/wp\/v2\/posts\/608\/revisions\/696"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/shop.function3d.xyz\/es\/wp-json\/wp\/v2\/media\/609"}],"wp:attachment":[{"href":"https:\/\/shop.function3d.xyz\/es\/wp-json\/wp\/v2\/media?parent=608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shop.function3d.xyz\/es\/wp-json\/wp\/v2\/categories?post=608"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shop.function3d.xyz\/es\/wp-json\/wp\/v2\/tags?post=608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}