Raspberry Pi and Camera mount for Prusa Enclosure
 
Notifications
Clear all

Raspberry Pi and Camera mount for Prusa Enclosure  

  RSS
Kopr
 Kopr
(@kopr)
Member
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

Posted : 10/09/2024 10:34 pm
h1ghK0
(@h1ghk0)
Active Member
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,

 

Posted : 12/11/2025 6:22 pm
Kopr
 Kopr
(@kopr)
Member
Topic starter answered:
RE: Raspberry Pi and Camera mount for Prusa Enclosure

 

Posted by: @h1ghk0

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!

Posted : 12/11/2025 7:59 pm
h1ghK0
(@h1ghk0)
Active Member
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!

 

 

 

 

 

Posted : 13/11/2025 5:56 am
Kopr
 Kopr
(@kopr)
Member
Topic starter answered:
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.

Posted : 13/11/2025 9:18 pm
Kopr
 Kopr
(@kopr)
Member
Topic starter answered:
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.

Posted : 13/11/2025 11:50 pm
h1ghK0
(@h1ghk0)
Active Member
RE: Raspberry Pi and Camera mount for Prusa Enclosure

Thanks !!! That was quick!!!

I will test the new Version today in the Evening!

Posted : 14/11/2025 6:19 am
h1ghK0
(@h1ghk0)
Active Member
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,

Posted : 14/11/2025 7:12 pm
Kopr
 Kopr
(@kopr)
Member
Topic starter answered:
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
Posted : 15/11/2025 7:22 pm
h1ghK0
(@h1ghk0)
Active Member
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,

Posted : 16/11/2025 5:22 pm
Share: