Raspberry Pi and Camera mount for Prusa Enclosure
Hi,
I have been searching a lot for a simple way how to get a simple Camera Setup working with Prusa Connect. There are few bits and pieces so I made it work, but there wasn't anything straightforward as I believe it should be as simple as:
- Buy Hardware
- Connect hardware pieces
- Boot it
- Run installer
- DONE
I need to admit that there are very advanced guides on making the Prusa Enclosure "smarter" and I indeed believe that ideally all the lights, filtration, ventilation, heating, etc. should be 100% automated it is not easy to set up as the is no simple solution.
Therefore I decided to make a comprehensive guide that contains steps:
- Buy listed hardware
- Print a few PETG files (detailed list included)
- Get fasteners from the Enclosure Spare Parts bag
- Follow a step-by-step visual guide on mounting and software setup
- No maintenance mode
- And mainly avoid requirements for special skills so the guide is
- Soldering free
- Code / Programming free (while there are still some commands required to run for safety reasons)
The reason why I chose Raspberry over ESP32 is that RPi is still widely used for other services and IOT projects and I do believe that many of us do have few boards just catching dust at home.
The long-term goal is to improve the solution and add more sensors for advanced telemetry e.g.
- Temperature
- Humidity
- PPM
But I would like to get those stats exported to the Prusa Connect as if I will have all these in separate tools it is no longer useful, so here I would need to team up I guess with the engineers from the Prusa team.
I do seek feedback as I am very biased as the project author. Mainly interested in your pain points and seeing what can be improved in the overall process. As mentioned, camera setup should be as simple as turning on a Fridge.
P.S. I do believe that the camera and any monitoring should be decoupled from the printer. Mainly a monitoring/surveillance system should be independent of the worker system. So I do believe this project does have potential even if Prusa will eventually come with a built-in camera system.
The project is on Printables.com
https://www.printables.com/en/model/989624-prusa-enclosure-raspberry-pi-camera-modification-w
RE:
Hi!
I'm using this Method to get a RPi Cam to PrusaConnect!
Since a Breakdown in the last 3 Weeks I have to set it up new.
But I cant finish the Install.
I get an Error-Message:
Failed to stop prusa-connect-camera.service: Unit prusa-connect-camera.service not loaded.
at the Point, were a Test-Picture is sent to Prusa-Connect. This works, I can see the Test-Pic.
But the Script won't be installed...
any Ideas?
Did Prusa changed something? I also had Camera-Trouble with another (PrusaConnect)Printer.
Setup: PrusaXL, RPi 4, PiOS 64bit Bookworm (as recommended)
Greetings,
RE: Raspberry Pi and Camera mount for Prusa Enclosure
Hi!
I'm using this Method to get a RPi Cam to PrusaConnect!
Since a Breakdown in the last 3 Weeks I have to set it up new.
But I cant finish the Install.
I get an Error-Message:
Failed to stop prusa-connect-camera.service: Unit prusa-connect-camera.service not loaded.
at the Point, were a Test-Picture is sent to Prusa-Connect. This works, I can see the Test-Pic.
But the Script won't be installed...
any Ideas?
Did Prusa changed something? I also had Camera-Trouble with another (PrusaConnect)Printer.
Setup: PrusaXL, RPi 4, PiOS 64bit Bookworm (as recommended)
Greetings,
Hi there,
you might find a bug in the script that is not un-expected as it wasn't tested on many use-cases.
I will try to reproduce the bug and fix the script. I will let you know.
Thanks for reporting the issue!
RE: Raspberry Pi and Camera mount for Prusa Enclosure
Thanks for the quick Response!
The Installer has already worked on the same Pi a couple of Month ago. It worked until now...
I took a Look at the Service (prusa-connect-camera: The Script cant find a Service named like that.
I can't take a look with "service Status".
If you need further Data or Information, please let me know!
RE: Raspberry Pi and Camera mount for Prusa Enclosure
Yea, that service is being created and installed by the script. I need to provision a new rPi and test what is wrong there. Unfortunately testing the script on another OS isn't trivial and this I haven't spend much time on having it cross platform.
I will try to make it work in the following week.
RE: Raspberry Pi and Camera mount for Prusa Enclosure
I have managed to get the fix sooner, so there is a new version of the installation script (version 1.1.1) available on https://github.com/koprivajakub/prusa-rpicam-py-connect/releases
The issue wasn't the service, as the script was ready for the state where the service is not installed yet. In fact, Prusa changed their API for sending a camera image to Prusa Connect. It has been fixed, and you might see a bit more log messages in the installation script now.
For transparency reasons, the fix is implemented in https://github.com/koprivajakub/prusa-rpicam-py-connect/pull/6
Thank you again for reporting, and please let me know if the fix worked for you.
Happy printing.
RE: Raspberry Pi and Camera mount for Prusa Enclosure
Thanks !!! That was quick!!!
I will test the new Version today in the Evening!
RE: Raspberry Pi and Camera mount for Prusa Enclosure
Good Evening,
I'm sorry, it wont't work:
After downloading and sudo install, I get:
[PYI-1909:ERROR] Failed to load Python shared library '/tmp/_MEI3xXT97/libpython3.13.so.1.0': /lib/aarch64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /tmp/_MEI3xXT97/libpython3.13.so.1.0)
Greetings,
RE: Raspberry Pi and Camera mount for Prusa Enclosure
Can you try that on OS version Raspberry Pi Trixie? It was built on that OS. Also I would recommend to run:
- sudo apt update
- sudo apt upgrade
RE: Raspberry Pi and Camera mount for Prusa Enclosure
Toodeloo!
That was it! Used actual Trixie 64bit. Update & Upgrade.
Congratulations. You have finished the setup.If the service above is marked as Enabled, Active and Running, you should see the image to be updated every 10 sec. in the Prusa Connect.
It fully works now! Thanx a lot for the (quick) Support!
Greetings,