Pi Camera V3/IMX Chipset Based Cameras Not Working

@nDeavor , thank you for you post about the Zero W2. I have added a not to post 72 that this method is confirmed on 3A+, 3B, and 4, but has not successfully been used on a Zero 2W.

I personally have a 3B and an original Zero W so rely on reports from users for other versions.

1 Like

I don't really know what I'm doing, but I was able to get a Pi Camera V3 working on my Zero 2 W.

I followed @ltlowe instructions and flashed the latest octopi image to my sd card
then followed @Caouch instructions to increase the swap file size.
then back to the remaining instructions from @ltlowe

at this point the camera was still not working, so I went to raspi-config and enabled "legacy camera support" even though it warns that this function is deprecated... as soon as I reboot and load the octoprint UI i have a crisp image with working autofocus. Still waiting to get this back on my MK3S to see what the performance is like. But very promising so far.

Thanks for everyone's help, I'll post an update after my first print.

This thread looks like what I need to get my new V3 going, so thanks for all the work and info from everyone. Quick noob question though. I've messed things up before, so I just want to be ultra careful: When you say "Flash (the distro) to a microsd card", can I transfer that zip file to my current mSD card that is currently running OctoPi and it will overwrite the current distro? Or do I need to start over with a new card. The only reason I ask is because I had to do lots of work to turn my 4 inch screen from portrait to landscape and its "working" right now. Just don't want to mess that up. Thanks for any help.

@joshself if you flash the new image to your current SD card it will overwrite the current content, including all configuration and customizations. As far as I know, there is no way to upgrade. It's a fresh install.

I always use a second SD card for things like this so I can go back and look at the old one if I forget or mess up reapplying custom changes or configuration.

1 Like

Thanks for that info. I'll try it tonight and let you guys know how it went.

FYI, I'm working on an updated OctoPi build with a new camera-streamer based webcam stack and here's details on that including a test image I'm looking for feedback on:

1 Like

Thanks for your tremendous work, this is an outstanding script. It looks like the repository for the image to be downloaded has changed. Can you pls let me know where tio find it? Or has the name of the image file changed?

Another +1 for this script and install. Thanks! My camera looks great and I'm working on Timelapses now. It took about 20 minutes and a few tweaks on my end but the camera shows up great in Octo. I DID end up doing a new card and new install though and I'm still working on getting my 4" Waveshare pi screen rotated and the touch rotated to landscape aspect if anyone has any good pointers on how to do this. But the touch screen "works" in Portrait mode right now so I'm just going with it.

Hi
Just looking for some advice. Completely new to PI and coding inc SSH etc. I have purchased a Raspberry Pi 4 Model B and a HyperPixel 4.0 Square touchscreen. I was unable to get the screen working with OctoPi so I had to install the 32bit OS lite Bullseye OS with no desktop environment. I then manually installed Octoprint then installed OctoDash and they are both functioning fine.
I have a Raspberry Pi camera V3 with I have been able to get working using the libcamera commands and produced a test jpeg and a short video. Thats as far as I have got and have not been able to find a way to connect the Camera to OctoPrint. Will running this script resolve my issue? Also my only experience with coding on PI and all this has been from the forums and YT so I suspect something I have said don't make sense.
Any help appreciated.
Ruhel

@Andre_Rousseau, Thank you for the kind words, but I believe my script's time is done. Octopi 1.0.0 went official a few days ago, and there is a new camera stack that supports the Camera Module 3 being tested. I have not had a chance to try it myself, but I suggest you try that instead.

Feedback for the new camera-streamer based webcam stack

Good morning, is there any way to rotate the camera 90ΒΊ? I don't mean in octoprint, I mean in the camera-stream settings, would anyone know how to do it? Thanks and best regards

@ltlowe i ran your script and can't get the pi cam 3 working :frowning:

Forgot to add details sorry,

i have a Prusa MK3S+ using SimplyPrint which is octoprint based running on a raspberry pi 4 model b 3gb ram.

It shouldn't matter that i'm running SimplyPrint since the webcam doesn't show up in octoprint when connected to the octoprint UI.

the script requires OctoPi 1.0.0 as a base OS because it needs to be bullseye for camera-streamer to work. The SimplyPi image is currently still based on the buster image.

Copy and pasting this worked for me without any further issues on my Pi 3B+ with Camera module V3. Thank you so much gambiting! Trying to solve this as a new Pi and Octoprint user taught me a lot but it was becoming frustrating. I'm so glad Octoprint is fully functional now.

I am new here and reading through this thread, I'm getting lost. Let me know if I should make a new thread, but can someone please point me in the right direction as far as how to get my raspberry pi camera module 3 to work with my raspberry pi.

My current set up is a raspberry pi 3A+ with OctoPrint version 1.8.7 and OctoPi version 1.0.0. I have raspberry pi camera module 3 attached, but cannot get it to work with OctoPrint. I have read through this thread, but I don't know where I should start. Am I suppose to install a whole other operating system on the raspberry Pi? Can someone tell me where I am suppose to start, please? Thank you!

@Scrambler2612, Official support (from Raspberry Pi) for the camera V3 is available in Debian 11 (Bullseye) based operating systems. Since you have OctoPi 1.0.0 you have satisfied that requirement. You may need to be up-to-date by using sudo apt update && sudo apt upgrade.

OctoPrint, however, needs some additional software to use the camera V3 and that support is currently in testing. To use it will require a new OS image.

I suspect that "a new image" may actually mean "multiple new images". You probably could get away with "two new images" but installing the latest available now and then waiting until the testing phase is over and installing the final image but this assumes that the currently available image works for you.

You can follow the progress of the testing phase in https://github.com/OctoPrint/OctoPi-UpToDate/issues/2.

I have a USB SD card adapter which I can move from my desktop (where I download and flash new images) to my RPi (where I can move files from the previous image to the new one). If you don't have any files other than those related to OctoPrint, then making an OctoPrint backup on the old image, downloading it, and then restoring it to the new image should be sufficient. You can also use something like WinSCP to backup and restore files instead.

Thank you so much for taking the time to respond to my question. I just flashed the new image to my SD card and the camera works! The image quality is quite good too. Thank you so much!

Having now read through this thread and over on the feedback thread for the new camera streamer stack I'm a little puzzled for what to do.

I previously posted a call for help over on the Raspberry Pi forums, before checking here and realizing the issues probably isn't related to a vanilla installation. Here's my post for reference.

In summary, I've got a fresh configuration of OctoPrint install flashed using the Raspberry Pi flashing tool on the Bullseye version. I've updated and upgraded everything and things are working great including OctoDash.

So am I correct in the assessment that the only way to fix this is to flash this new, beta image? Or can I run the script from @ltlowe?

Obviously, I'd love for the fix to come as part of an incremental update rather than a complete re-deployment or making any ad hoc changes that might later complicate an update.

I think @b-morgan's post just above sets out the issue reasonably well:

The script might still work but it has been dropped in favour of the new OS image.

Unfortunately it won't ever come from an incremental update as the webcam streaming stack is not set up for this. Perhaps in the future it might be set up to be updatable, who knows - but we definitely can't change the past so you will have to flash a newer image (ie. the testing image linked) than what is available right now.