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

my timelapse implementation with pi zero

Scheduled Pinned Locked Moved
General Discussion
6
12
829
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
    doryo
    last edited by 18 Sept 2019, 05:20

    Hi all,
    This is my implementation for automated layerlapse using the awesome duetwifi board
    all information can be found under the link below
    https://github.com/doryosef/dts

    Basically it listen to telnet and execute commands on the pi zero

    1 Reply Last reply Reply Quote 2
    • ?
      A Former User
      last edited by 18 Sept 2019, 05:27

      Neat approach. Might be worth noting that in earlier versions M118 did not send a newline, so if your service is dependent on that it may only be compatible with the relatively recent reprap firmware.

      1 Reply Last reply Reply Quote 0
      • undefined
        doryo
        last edited by 18 Sept 2019, 05:45

        My waitForMessage function collect the characters coming from telnet and store them for 1 sec
        if it match the command it will add it to the queue for executing it
        🙂

        so it should be compatible with old version as well
        (I checked it only on duet version 2.02)

        1 Reply Last reply Reply Quote 2
        • undefined
          PaulHew
          last edited by 25 Feb 2020, 09:59

          @doryo
          Thanks for writing this.
          I am running a Pi3, is it possible for the Pi to create the final timelapse video.

          Good work BTW, easier to implement than MotionEye.

          Just testing it now.

          Regards,
          Paul.

          RailCore II - Duet Mini + 1LC, Voron V0.1 - Duet Mini
          Voron 2.4 disassembled..... Waiting for the RailCore Mini....

          undefined undefined 2 Replies Last reply 25 Feb 2020, 12:39 Reply Quote 0
          • undefined
            droftarts administrators @PaulHew
            last edited by 25 Feb 2020, 12:39

            @PaulHew said in my timelapse implementation with pi zero:

            I am running a Pi3, is it possible for the Pi to create the final timelapse video.

            I'd think so, as he uses ffmpeg to make the video.

            @doryo FYI this project has been added to https://duet3d.dozuki.com/c/Community_Projects

            Ian

            Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

            1 Reply Last reply Reply Quote 0
            • undefined
              Danal @PaulHew
              last edited by 25 Feb 2020, 13:51

              @PaulHew said in my timelapse implementation with pi zero:

              I am running a Pi3, is it possible for the Pi to create the final timelapse video.

              Duet3 with Pi configurations do not support telnet in the same way that Duet 2 and/or stand-alone-3 support telnet.

              Therefore, the code will not work as shown.


              Having said that, the Pi in a Duet3+Pi is perfectly capable of taking timelapse (assuming it has a camera) and there are several ways to interface to do that... just not telnet.

              Delta / Kossel printer fanatic

              undefined 1 Reply Last reply 25 Feb 2020, 14:13 Reply Quote 0
              • undefined
                PaulHew
                last edited by 25 Feb 2020, 13:56

                Hi Ian,

                Doryo's scripts to create the timelapse are to be run under a bash shell on a PC / Windows.
                (I have an old laptop and will try with that)

                My programming skills are in different area, such as IOS and Simpl and have tried to edit the timelapse.sh but I am a bit lost! Even broke it down just to get one part working but i am getting errors.

                I have installed ffmpeg on my Pi so I am ready.

                I look forward to hearing from Doryo as it would be nice to get this all working on the Pi3.
                IMHO it is simpler to implement, and if @doryo does reply and assist, i am more than happy to create a guide on what to do, beginning to end.

                Regards,

                Paul

                RailCore II - Duet Mini + 1LC, Voron V0.1 - Duet Mini
                Voron 2.4 disassembled..... Waiting for the RailCore Mini....

                1 Reply Last reply Reply Quote 0
                • undefined
                  PaulHew @Danal
                  last edited by 25 Feb 2020, 14:13

                  @Danal If I get to the point of writing a guide, which I hope I will be able to, I will make sure to inform that it is for Duet2 boards only.
                  In regards, to the Duet3, I am surprised someone has not written something that considering that in most instances it will be connected to a SBC.

                  RailCore II - Duet Mini + 1LC, Voron V0.1 - Duet Mini
                  Voron 2.4 disassembled..... Waiting for the RailCore Mini....

                  undefined undefined 2 Replies Last reply 25 Feb 2020, 14:14 Reply Quote 0
                  • undefined
                    jay_s_uk @PaulHew
                    last edited by 25 Feb 2020, 14:14

                    @PaulHew said in my timelapse implementation with pi zero:

                    Duet2 boards only.

                    It will also work with duet 3 boards in standalone mode

                    Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                    1 Reply Last reply Reply Quote 0
                    • undefined
                      Danal @PaulHew
                      last edited by 25 Feb 2020, 14:16

                      @PaulHew said in my timelapse implementation with pi zero:

                      @Danal If I get to the point of writing a guide, which I hope I will be able to, I will make sure to inform that it is for Duet2 boards only.
                      In regards, to the Duet3, I am surprised someone has not written something that considering that in most instances it will be connected to a SBC.

                      Duet 2 or stand-alone Duet 3... both should work, in that Telnet is the same.

                      Add a Pi, and telnet now goes to the Pi. So any script that wishes to connect to the RepRap firmware telnet, that won't work.

                      And... yes, a D3+Pi script for timelapse, I'm surprised someone hasn't written that yet. I may take a run at it, when I get done with some scripting for aligning tools on toolchanging printers.

                      Delta / Kossel printer fanatic

                      1 Reply Last reply Reply Quote 0
                      • undefined
                        doryo
                        last edited by 25 Feb 2020, 22:00

                        @PaulHew
                        I think pi 3 will not handle the job properly as it need more gpu power, not sure ...
                        I tried with pi zero which got stuck every time I tried to execute ffmpeg

                        just FYI
                        every print it create tar zip with all the timelapse
                        So when executing the script timelapse.sh on windows machine it will create movie for each print.

                        @droftarts
                        Awesome thanks

                        1 Reply Last reply Reply Quote 1
                        • undefined
                          PaulHew
                          last edited by 29 Feb 2020, 08:39

                          @doryo Thanks for replying to this and my message on Github.
                          Eventually I worked out what I was doing wrong after spending hours on understanding bash shell and commands etc.

                          The files are already on the Pi, so all I needed to do is run ffmpeg to create the .mov in my Samba share folder, delete the .jpgs and clear the log.

                          I created a new .sh to perform those functions.
                          I admittedly only had 10 images and only took about 20 secs to process.
                          Also I need to tweak the ffmpeg options.

                          I hope to do a proper test in the coming days and will post my results, then write a guide from blank card etc.

                          Regards,
                          Paul

                          RailCore II - Duet Mini + 1LC, Voron V0.1 - Duet Mini
                          Voron 2.4 disassembled..... Waiting for the RailCore Mini....

                          1 Reply Last reply Reply Quote 1
                          • First post
                            Last post
                          Unless otherwise noted, all forum content is licensed under CC-BY-SA