-
-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webcam use on new Raspberry Pi Zero 2 W? #54
Comments
Yes, I have one here and I installed it but it's not working. |
For me it works, but unfortunately only on Windows. On macOS nothing happens. I haven't tried Linux yet. |
I have revise my statement. After switching some USB cables it's now working wonderfully. |
For the latest macOS, see also this bug tracked on the showmewebcam repo: showmewebcam/showmewebcam#164 (And consider giving showmewebcam a spin, too—it's quite nice!) |
I'm running OSX 12.0.1 now but I was running the previous version when I originally posted. I tried running with the known good 2020 - Zero 2 W did not boot (assume firmware not included for that hardware) I'll burn the image again and run the setup script, try it out with my windows 10 box. see if it's a OSX thing aka showmewebcam/showmewebcam#164 or a Pi Zero 2 W thing |
Thanks Jeff for the nice words! I'm trying to get the image to work on Pi Zero 2W, but so far it has been quite fruitless for a different reason: I can't get the image to boot. I have put the right dtb to the right place, and uprevved the kernel, but I have been stuck with the rainbow screen. I have my changes pushed to the PR there as you can see, and I would appreciate a second pair of eyes to help me understand why my PR did not resulting in a booting image. |
I see the service in a failed state so can't connect at all. New to troubleshooting Linux services but I'm pulling logs using journalctl -u piwebcam.service: Nov 08 20:38:13 Pi2 systemd[1]: Started Pi webcam. I am using a more generic 5mp camera, not the official products linked, with a new Zero W 2. OS is Raspbian lite, trying with standard raspbian now. |
Same issue, service in a failed state, on a new SD card w/ full Raspbian: pi@Pi2:~ $ journalctl -u piwebcam.service |
The segfault seems to be a better lead. You (or someone else) needs to diagnose the crash with a debugger (ala The hard part is to catch the crash at the right time. Seems like you could ssh to it, so I think compiling uvc-gadget with |
I may be able to figure out how to do this over the weekend, |
By the way, before you do that, it might be worthwhile to check out Petr Vavrin's repo to see if Petr has fixed it already: |
Just adding to the issue, I noticed from this issue that 64-bit doesn't yet support raspistill, in which it may be the problem? I do have the issue that @Selicos has, it doesn't run on win/mac/linux because it fail to run Last edit: raspistill isn't builtin anymore not even into the 32-bit, we need to compile it or use something that fit our needs, please let me know if I missed something.
|
Same here, doesn't work on bullseye :( Tried to install buster instead, but had some issues installing updates |
@gregbiv it worked for me like a charm with this 32-bit. The only issue is with the 1080p, I wanted to test the limits but no luck with either 64-bit nor the 1080p. https://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2020-12-04/ |
Can report the same. Since the camera drivers changed, it's probably the best to stick with buster, I've tried the lite version from 28.05.2021, works as expected |
Unfortunately, Debian Buster doesn't work on Pi Zero 2 W and piwebcam doesn't work on Bullseye |
Can’t be true, it works on mine. At least I didn't encounter any problems, so I assume it should work
|
Got it work with the mentioned Buster lite version directly on the Pi Zero 2 W. For future projects there is a new kid on the block https://www.raspberrypi.com/documentation/accessories/camera.html |
Thank you for sharing @A12BA5E but looks like a lot of work, I would try to make it work in the weekend, if no one would got it working before then. |
I just finished replicating this project on a Pi Zero 2 W with a cheap camera bought from AliExpress. |
I just got it working on two Raspberry Pis Zero 2 W . The only issues I ran into were an apparent cable misconnect on one, and on the other I was running the playbook on a different account after already having customized the pi myself. I had to reseat the cable for the former and edit a bunch of files for the latter. I could have also just installed from the pi user for the latter, but I'm stubborn. Tested as webcams for Win10 and MacOS Big Sur (edit 2: Intel Macbook Pro 2017) through a powered USB hub. Edit: Actually, I may have had to manually do a |
Can confirm it works on RPiZW2 by using the legacy RPi OS Lite image and doing the pip3 install --upgrade pip (as root) before running the ansible part. |
Was able to install using @midnightfreddie's suggestion. I will add that you can install headlessly on the Zero 2 W by adding a configured |
I can also confirm that the legacy Lite build can get this up and working on a Zero 2 W, however it did fail to boot/ provide a USB device error in Windows when I attempted to edit it to display with 1080p video in this link here: |
Can confirm it is working, at least for 720p, using the older version of linked here in the comments. I split up the app installs and did "sudo pip3 install --upgrade pip" before the last "sudo pip3 install --no-binary pyyaml ansible". My setup is pi zero 2 w, with pi HQ cam and 6mm lens. All working in win 10, haven't tested on my win 11 pc yet. |
Not working for me I'm afraid. |
For me I had to run "sudo apt update && sudo apt install -y python3-dev python3-pip libyaml-dev libffi-dev git" Essentially removing everything after && in the original instructions. Then follow the rest like normal. |
That still doesn't work for me. Out of interest what is the difference between your commands and what I did? |
The Raspberry Pi Zero 2 W with the Raspberry Pi OS Lite (Legacy) works fine for me. |
I cannot confirm @DerMarten. If I do that, my display manager crashes after trying to access the cam in OBS. |
I can not get it to run on the pi0w2 and i installed the legacy with GUI. For me I had no problem installing pyyaml and running the setup. I also see the Webcam in the device manager on windows but when I try to access the camera via Opencv or the Camera App on windows I get a error and from the Pi i can see, that the following Error on the Pi: sudo /home/pi/uvc-gadget/uvc-gadget -u /dev/video2 -v /dev/video |
Firstly i had the problem with the pip install:
But then I did a virtual environment (with python3 -m venv venv) and used it to install the packages. (using pip not pip3) and its ok. But then it gives errors after at the ansible script because of the user name. I then did it manually copying each command that ansible does, but it doesnt work. |
@geerlingguy |
This issue is open to investigate whether this project works correctly on the Raspberry Pi Zero 2 W. I should've tested this earlier, but I completely forgot to do it! Has anyone else tested on one?
The text was updated successfully, but these errors were encountered: