• Tags
  • Documentation
  • Order
  • Register
  • Login
Duet3D Logo Duet3D
  • Tags
  • Documentation
  • Order
  • Register
  • Login

Octolapse-Like Timelapses

Scheduled Pinned Locked Moved
General Discussion
9
29
6.0k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • undefined
    resam
    last edited by 10 Sept 2018, 08:56

    If you want to make it every 30 seconds - what do you need a macro for? You don't even have to use a slicer plugin - just a simple script to take the picture on you webcam / Raspberry Pi:

    while True:
    takePicture()
    time.sleep(30)
    1 Reply Last reply Reply Quote 0
    • undefined
      punamenon
      last edited by 10 Sept 2018, 09:03

      Because I'm not using a Raspberry Pi, or a webcam. I'm trying to accomplish it all through the DUET.

      1 Reply Last reply Reply Quote 0
      • undefined
        AlexLin
        last edited by 10 Sept 2018, 12:10

        Use an mobile phone's audio jack (4 connections) and connect it to the Duet Wifi trhough an opto coupler. the pin connects the pin on the audio jack to ground (i think with 200ohm).Then the phone takes an image.
        The G-code is modified through a script that adds g-code on each layer that moves thehead to a fixed position toggles the pin.
        link text

        undefined 1 Reply Last reply 10 Sept 2018, 21:39 Reply Quote 0
        • undefined
          punamenon @AlexLin
          last edited by 10 Sept 2018, 21:39

          @alexlin said in Octolapse-Like Timelapses:

          The G-code is modified through a script that adds g-code on each layer

          This is the same approach as discussed previously. I'm trying to trigger the event not on layer change, but instead at a specified time interval.

          undefined 1 Reply Last reply 11 Sept 2018, 05:35 Reply Quote 0
          • undefined
            AlexLin @punamenon
            last edited by 11 Sept 2018, 05:35

            @punamenon if you want to do it at certain time intervals and with no relation to the g-code, I would just use an external controller like and arduino/attiny...you can then still connect an io from the Duet to the Arduino to indicate when to start/stop a timelapse.

            undefined 1 Reply Last reply 11 Sept 2018, 05:40 Reply Quote 0
            • undefined
              punamenon @AlexLin
              last edited by 11 Sept 2018, 05:40

              @alexlin This is probably what I will resort to, but I shouldn't have to. The Aduino DUE which the DUET is based off should have full clock functionality. We just need to get a timer implemented in the firmware. I wish I was a programmer, I would join the Dev. team.

              undefined 1 Reply Last reply 11 Sept 2018, 09:28 Reply Quote 0
              • undefined
                AlexLin @punamenon
                last edited by 11 Sept 2018, 09:28

                @punamenon I agree that what I miss most with the Due vs Octoprint is the possibility to add plug-ins like Octoprint has

                1 Reply Last reply Reply Quote 0
                • undefined
                  punamenon
                  last edited by 12 Sept 2018, 03:02

                  I've succeeded in accomplishing Octolapse-Like Timelapse videos without using a raspberry pi: https://youtu.be/CwHVQ81GfXw

                  Total project cost was under $10

                  It would still be nice to be able to trigger photos based on a time interval.

                  undefined 2 Replies Last reply 12 Sept 2018, 03:46 Reply Quote 1
                  • undefined
                    Phaedrux Moderator @punamenon
                    last edited by 12 Sept 2018, 03:46

                    @punamenon nicely done.

                    Z-Bot CoreXY Build | Thingiverse Profile

                    1 Reply Last reply Reply Quote 1
                    • undefined
                      Phaedrux Moderator @punamenon
                      last edited by Phaedrux 9 Dec 2018, 04:51 12 Sept 2018, 04:44

                      @punamenon now I understand why you were asking about running the pause and resume macros before.

                      But I'm wondering why you didn't just use M226 to pause. Nevermind. I understand now. M226 can only be resumed manually.

                      I suppose Instead of pausing you could have inserted a retraction and G1 move to get the head out of the way, trigger the photo, and then the print head should move back to where it's needed to continue the print, shouldn't it?

                      Z-Bot CoreXY Build | Thingiverse Profile

                      undefined 1 Reply Last reply 12 Sept 2018, 05:45 Reply Quote 0
                      • undefined
                        punamenon @Phaedrux
                        last edited by 12 Sept 2018, 05:45

                        @phaedrux Wow, that would be cleaner! I should test it.

                        I was originally trying to accomplish it all through macros where I inserted a single line into the Gcode at each layer change: M98 Ptake_a_photo.g

                        Within that Macro I was trying to call pause.g and resume.g which lead to the problems with the parser that I also made a post about. With your simplified approach, I might be able to get it to work the way I was originally trying. I'll do a little testing tomorrow, and let you know how it turns out.

                        undefined 1 Reply Last reply 12 Sept 2018, 05:51 Reply Quote 0
                        • undefined
                          Phaedrux Moderator @punamenon
                          last edited by Phaedrux 9 Dec 2018, 05:52 12 Sept 2018, 05:51

                          @punamenon

                          Assuming you're using firmware retraction you can use G10 and G11 to retract.
                          G1 X0 Y0 F6000 to move the head to home. The faster you can do this, the better for oozing. Trigger your photo. Unretract. Then I would think that because it's absolute coordinates it should move to the next layer height and continue. Actually, if you insert your code AFTER the layer height move, and you have retract on layer change, it will already handle the retraction for you, and give you some clearance from the printed part for the travel move out of the way.

                          Z-Bot CoreXY Build | Thingiverse Profile

                          1 Reply Last reply Reply Quote 0
                          27 out of 29
                          • First post
                            27/29
                            Last post
                          Unless otherwise noted, all forum content is licensed under CC-BY-SA