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

    raspberry camera on new firmware version

    Scheduled Pinned Locked Moved
    General Discussion
    4
    8
    260
    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.
    • Tinchusundefined
      Tinchus
      last edited by

      Hello. I have update since some weeks to 3.5.4 version. I ahve a duet3, sbc raspberry 3 b+
      I have a raspi camera attached. I really use it from time to time, jsut to check sometime if print is ok from remote. It used to work very well on previous version, on this one I know raspbian has changed to bookworm (I say it like if I really know what it is jajajaj)
      To my surprise doing the sudo raspi-config in order to activate the camera no longer exist. Si I dont know if the camera is there or not,
      Can somebody point on how to activate de camera please?
      Thanks inadvance

      droftartsundefined 1 Reply Last reply Reply Quote 0
      • droftartsundefined
        droftarts administrators @Tinchus
        last edited by

        @Tinchus In RRF 3.5 and later, use the Spyglass camera plugin for cameras connected to the RPi via the CSI connector, and Motion for USB-connected cameras. Unfortunately we currently don't have documentation for Spyglass, but as far as I understand it is straightforward.

        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
        • the_Kundefined
          the_K
          last edited by

          I've been put a fresh Bookworm DuetPi 32-bit lite image on my Raspberry Pi 3B+ and its the first time ive tried using a Pi cam ( on the CSI connector) but the spyglass plugin only rund for a few secconds.

          I'm not sure if the DSF package has what i need to run the camera?

          Could anyone point be to a guide that is a little more helpfull than plugins.duet3d. com /plugins/SpyglassWebcamServerPlugin ?

          doese hostename in this "[HOSTNAME]:8080 " mean duet3.local?

          Tinchusundefined 1 Reply Last reply Reply Quote 0
          • Tinchusundefined
            Tinchus
            last edited by

            Sorry for the late update. In my case problem is solved. I used the spyglass plugin. I got it from here: https://plugins.duet3d.com/plugins/SpyglassWebcamServerPlugin.html

            The build instructions... never used them. I just downloaded the pluging, intalled through DWC interface, on the general settings I completed the url http://printer2.local:8080/stream (later I noticed theat hostname was automatically replaced by the internal ip number)
            And it works perfect.

            The raspi image I have is a brand new one, nothing extra installed or removed but userland in order to have some commands to verify the cam that seems to not be installed by default:

            sudo apt install cmake
            git clone https://github.com/raspberrypi/userland
            cd userland
            ./buildme
            sudo cp build/bin/* /bin/
            sudo reboot
            and then tested camera with raspistill -o image.jpg

            I really dont know if userland had any effect on camera installation but since bookworm removed any easy way to activate/deactivate the camera (to the level of knowledge I have at least) I installed userland in order to have some debugging on the camera. With raspistill at least I knew the camera was there and detected and then I just installed the pluging
            I hope it helps

            stuartofmtundefined 1 Reply Last reply Reply Quote 2
            • stuartofmtundefined
              stuartofmt @Tinchus
              last edited by stuartofmt

              Just a quick note: I am putting some finishing touched to a plugin that supports USB cameras. It should be ready in a few days . I've always found motion can be somewhat heavy in terms of CPU load (its got a lot built into it).
              This plugin is fairly minimal: http endpoint, scaling(8 resolutions), rotate (90, 180, 270) and format choices (most will use the default MJPEG).
              Its based on an earlier streamer I wrote so it should be pretty robust on day-one.
              I'll post details when I'm done.
              It won't be for everyone - but I think it has enough for many (and its a plugin 🙂 )

              My test platform is Bookworm and DWC 3.6.0-beta.4

              1 Reply Last reply Reply Quote 1
              • Tinchusundefined
                Tinchus @the_K
                last edited by

                @the_K Im not able to replicate the installation on another printer. The same as you it is happening to me: plugin just runs for 1 second. Looking at the logs I can see an error about a camera module, so I installed:

                sudo apt -y install python3-picamera2

                With this I can start the plugin and stays active. Still, I cant see the camera on DWC

                the_Kundefined stuartofmtundefined 2 Replies Last reply Reply Quote 0
                • the_Kundefined
                  the_K @Tinchus
                  last edited by

                  I'm going to try different versions of the pi duet when I have time to see if that has any effect.

                  1 Reply Last reply Reply Quote 0
                  • stuartofmtundefined
                    stuartofmt @Tinchus
                    last edited by

                    @Tinchus said in raspberry camera on new firmware version:

                    @the_K Im not able to replicate the installation on another printer. The same as you it is happening to me: plugin just runs for 1 second. Looking at the logs I can see an error about a camera module, so I installed:

                    sudo apt -y install python3-picamera2

                    With this I can start the plugin and stays active. Still, I cant see the camera on DWC

                    I’ve always found it useful to prove a streamers settings with a browser before proceeding further. There are just sooo many variables …. Having said that, given a pi camera and the pi libraries - it should more-or-less just work (or at least log sensible errors)

                    I’ve stopped using pi cameras, so I stopped supporting my old pi streamer. However - you may ( or not ) find something useful in my old notes

                    https://github.com/stuartofmt/Pi-Notes/tree/master

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