I think it serving a webpage for you to control exposure, white balance etc would be great, also as most people want 1080p the 4k sensor could also give a virtual pan and tilt
Thank you, what a perfect timing! I am actually in the process of trying to do exactly that. I have 3 pi zeros which I plan on using like that. Literally one of them and a camera module are on my bench as a WIP right now. :D
Jeff, thanks for doing all the hard work on this project. I just finished building the webcam, and it works like a charm. I can't believe that the image is that clear. Can't wait to mount it to my telescope. Thanks again.
i had issues running on the zero w as well, i got it all working using 2020-02-07 Raspbian release from his github page and no updates to the os...if you get theModuleNotFoundError: No module named 'yaml....then try pip3 install pyyaml... good luck
Just assembled my pi-zero camera and I can confirm it works! One thing I did differently is I started with the Raspberry Pi OS Lite that is command-line only, but it works equally well. Thanks, Jeff, for the tutorial and github files!
That's awesome. I replaced 4 cameras for last years and always experienced problems with quality of mount, quality of cables, autofocus, etc. And the majority of those cameras costed me about $100 each. My next webcam would be rpi-based! I can replace USB cable, I can manually focus it. That's great!
Did this project back in December and I've been using the Pi webcam for all of my online college classes. I couldn't fine the plastic piece at the time so I used cardboard and zip-ties. Super sketch but hey, it works. Thanks for an awesome project! I'm looking forward to making your Pi NAS pretty soon.
For someone who's yet to purchase a pi, I'm ever so delighted I subbed to your channel. Always such good content. Definitely will be making quite a few purchases in the future...
I know the camera is at the heart of this video but I really smiled at the (currently) latest comment in the tasks on the git project. “Complete overhaul. Let’s make this thing actually work” Refreshing to see an Ansible master sometimes just need to start again - makes me feel better.
@@JeffGeerling Same! I have thought about a remote telescope setup, as winter sets in. Get the scope out, and then run it from inside where it is warm.
There are adaptors out there for C/CS mounts so you can replace the eyepiece with the PI HQ camera - got one but not tried it at night yet. I've also done a 3d printed case for the camera & a 3A but designed it so the camera part can be housed separately so not much weight on the telescope
I tried this and love the result. Jeff made it very easy. With a 6mm lens I can use this on Zoom to show a white board with enough resolution to have people read what I write over Zoom. Adjusting the HQ camera ring allows me to adjust to a very close focus to show details of small things (say, a small magnetic floating over a cooled super conductor). This is a great project. Thanks so much for making this video.
Interesting! It looks like the code for autofocus (python in this case) is not too complicated, either: github.com/ArduCAM/RaspberryPi/blob/master/Motorized_Focus_Camera/Autofocus.py It won't compete with a high-end mirrorless SLR or anything like that, but using OpenCV and a contrast-detect algorithm could be better than nothing! Definitely warrants further investigation 🤔
Hi! Actually Arducam also makes a 12MP High Quality Camera Webcam Adapter, *with microphone*, and pushes up to *1080P 60fps*, 2k 30fps, 4K 20fps and 12MP 10fps: ua-cam.com/video/yZN4rpoQw7A/v-deo.html
I cant beleave how awesome this works, its one of the best projects I have done with my Pi and something I have been looking for for years.....there will be beer money sent I can assure you
Thank you for this excellent tutorial and Ansible playbook! For anyone wanting to directly output the video to the HDMI output the solution is simple: * Use raspi-config to autologin to the CLI * place 'raspivid -t 0' as the last command into the .bashrc file in the home directory of the pi user. Can not be used as a webcam then. The output goes either to USB or to HDMI, not both at the same time.
Dear Jeff, I just came to this video because looking at Pi cameras for a project. I noticed You said "i hope this video doesn't cause a shortage of pis" wow, you should buy lottery tickets man you can predict the future
@@benedolt I would recommend either using extension tubes (just get a bunch of C->CS adapter rings and stack them) for a cheap solution, or get a C mount macro or close-up lens.
This is great. I followed all the steps and it all works perfectly. One tiny thing is that step 6 of the instructions doesn’t also install git at the moment so step 7 fails 🙂.
I would like to suggest a video.... a raspberry pi home security system with a raspberry pi or a pi zero and a raspberry pi camera....... with focus on recording in intermittent segments like a dash cam does deleting videos after a certain time or when card is full or file limit is full... or with a motion sensor... and also being able to record in the dark... like a camera set up pointing at a drive way from inside window or at front door to the house.... just a suggestion... i enjoy and appreciate all your videos they are all very well informed and educational... thanks and have a great day.
I've used this for a few months using a regular V2 8 megapixel Pi Cam (not HD). It always works in Zoom and Teams. I have had it running in the background all day without issue to other apps. I've disconnected and reconnected the USB cable throughout the day, also without issue. There are limitations with the regular V2 Pi camera itself. There is no white balancing, so sometimes my face is a bit redder than normal. The auto-exposure will underexpose your face when there is a window or other bright light in the frame.
I built a Pi Zero camera too and there's definitely some issues at low light. I get a lot of flickering in low light, and it's not frame rate / shutter speed issues. I added ferrite core chokes to eliminate interference on the power cable but it still persists. With regards to performance: I set it up to boot up with "Raspivid" running which will output a preview image via the HDMI output (which you'd have to deal with on the computer software side). This will also bypass a lot of lag and performance problems as it is mostly passing the HDMI through the Pi without added processing. You can kill that process and restart it manually if you want to adjust settings (iso, frame rate, white balance, etc). In theory you can use it for whatever purpose you like as it will operate like a standard video camera, even recording to attached storage. Add a PiJuice HAT with battery and you'll have portable power.
I agreed with you that spending the time and using a pi and/or pi camera to do things that can be solved by cheap alternatives, SUCKS. 1) Home surveillance using multiple Pis with IR cameras was garbage and was able to buy a cheap 360 1080p camera set from random company which had a full app and local storage for 1/2 the price of just the Pi at $25 on sale. (FAIL) 2) Monitoring multiple 3d printers was nice but the pi (3b, 3b+ 4 2gb) gets SUPER hot just running the web interface and with the Pi cameras the resolution and frame rate that I could get it to run was worthless (Before pandemic I was able to get the c920 for $30 which was way better except the auto focus would lock on something in the background). (FAIL) 3) Pi hole - Ad blocking for all (SUCCESS) I am glad that you got this to work and it looks great. Good job!
A great project which was really simple to follow and setup, so thanks for the ansible automation. Would love to hear about any other uses you find for the HQ camera...
I built this back in September, and was really happy with the results! I tried out a couple of different cmount lenses, 6mm, 8mm, and 25mm. It's got a crazy crop factor!
@@mlindholm Definitely the 6mm for webcam all the way! The 8mm was a big jump, and for the 25 mm I literally had to be across the room! You can see the results on my channel, in a video called "Build a Better USB Webcam" I don't think I can post the link here, because UA-cam will flag it as spam.
I didn't learn from your mistake at 7:45. Please, if you're building one of these, remember to remove the ring for a 6mm camera! I spent way too long trying to figure why I couldn't focus.
Tried it on a Raspberry Pi Zero (first one, not the W model) with the standard camera module (v2.1). Using it connected to a Linux computer. It's working great! Thanks for sharing this. I made the setup on a Pi model 3B, installing Raspberry OS Lite, then plugged the card in the Pi Zero when the ansible script was finished.
Know that this is a very reliable setup. I have used my Pi Zero with the HQ cam as a webcam since august as a teacher using Zoom. I literally have the webcam on and running on my Dell laptop 8am-3pm daily, and it just chugs along without much issue. Know that in the webcam settings of whatever app you are using you may want to up the brightness since the default setting runs a little dark.
I hope to make that brightness setting a little easier to control as well in the uvc-gadget code. It's current default is tailored more towards use on a Mac.
Jeff, just wanted to say thank you and also to the developers of the various tools and libraries. This was a very fun project! For other folks benefit, I used a pi camera v2, mostly flawlessly. It was very slow in parts because I enabled the camera and had very little ram. I was foolishly on this youtube video and github (on the pi zero!) while doing this...that I do not recommend and will not repeat on the next round. But this worked flawlessly. Thank you again for the fun! AWESOME!
Fun fact: In college, when I took a public speaking class, I actually scored off the charts for public speaking anxiety in the test we took at the beginning of the year :D It's definitely a thing where the only way to overcome that anxiety is to do it over and over!
All of the c-mount lenses I own are manual focus. If there are indeed autofocus c-mount lenses, the pi camera module doesn't have an interface to control them.
I found a more elegant solution to powering the camera off when you're done with it: just add "dtoverlay=gpio-shutdown" to config.txt, then wire a button between GPIO3 and ground. (as a bonus this will also startup the Pi, meaning you can leave it plugged in)
Wow, that is fantastic Jeff. Thank you for all the work and experience you put into the Raspberry Pi Webcam Open Source project. I'm thinking of housing it to IP67 water/dust proof standards (or better) and using it externally as a backup camera(s) on my camper trailer. I have to work out the heat dissipation issue that will create too. I have so much to do!!!
I figure I forget enough things in my day as it is. Might as well make the things I build automated and repeatable so my own memory doesn't really matter!
I'd be happy if I could use my Pixel 3 XL's camera without hassel. The phone is now out of support, but both front/rear Camera's are amazing for a Linux Webcam
What's nice is that this also works with the cheap 10$ Chinese 5mp Pi camera. I did that because even that was waaaaaay better than my laptop cam, and because my 5mp night vision camera makes it easy to make creepy phone calls at night 😂
@@JeffGeerling it'd be a real shame if you don't shoot a video for your channel with the V2 NoIR camera. It's EXTREMELY creepy, especially with IR lamps providing the lighting 😁 EDIT: Too late for Halloween though...
Thank you so much for sharing this info! Your timing is perfect, I'm a musician about to start streaming performances and I need to keep expenses down. After some quick looking around, I think I'll opt for the 2.8-12mm lens instead, a little extra expense, but the 125deg FOV will be great.
Hey @Zulf, I have a cannon Powershot SX1 IS. I'm unable to figure out how to use it as webcam. Need some suggestions. Do you use a capture card or new EOS webcam utility? Mine goes into photo transfer mode if I plug in miniUSB with webcam utility. I think 6 months ago watched your video about EOS webcam utility not working. 😎
I mean, if you already have a DSLR or mirrorless camera, then you can get a decent HDMI capture card and technically it's cheaper (I even have a video on how I stream with both my a6000 and a Nikon D750), but not on the all-in cost (even buying used, it would go past $100). But the quality is oh-so-much better than any webcam you can buy :)
@@JeffGeerling Yes true however a canon T2i used on ebay is very cheap and also doubles as a decent photos camera. I use the Canon Webcam tool and its actually decent. Im not sure I'm as talented as you to make one like you did. I would give it a go though. I have Retro Pie setup which i don't use much anymore. hmm...
@@JeffGeerling I use The canon Via USB i do have HDMI cards but i use them with an old Camcorder. They work great too and actually I got a Camcorder 1080p with HDMi out and a cheap HDMI Out Card and that setup was under £70 and in dollars would be close to about $90ish ? but it has zoom and autofocus with tracking. many options out there but yours is COOL as hell. Keep creating
Thankfully I bought my HQ camera 2 months ago and it arrived a couple weeks ago. Haven't unboxed the sucker yet. I do have a variety of really nice lenses to try it with so looking forward to the holiday this week to put it thru its paces.
It's a ton of fun! Even though I have three SLRs that beat the usability and image quality, it's more fun to do experiments using a software-controlled camera like the HQ camera! Plus getting 2000+ mm reach out of my longer lenses adapted to C mount makes for some fun experiments!
Jeff, your timing is excellent as I, too, have found that webcams don't seem to have the value they once had. I'm trying to set up a UA-cam channel but have no idea how to capture videos off of various old but still functional cameras ranging from cell phones to digital SLRs and port them to a video editor. Right now the process of connecting them to my computer and stitching the images together into a single seamless video seems like magic to me. Can you explain that process for us in future videos? Thanks! Subbed.
The teaser at 11:19 excites me. been looking for a microscope camera. All seem way too expensive for what they are. Telescopes and Microscopes are very much the same interface. If you can, please try it on an AMSCOPE microscope.
Jeff, I build it and sofar it is awesome. Next week I will test it. Great sharpness, the ony things I noticed were the 6mm lens that you must unscrew it a little from the mount to get it sharp and the flat cable is far from ideal. But it is in total, every Dutch Euro worth. Thnx a lot for this Christmas present.
I'll be interested to see how you got this working with a telescope, I have had a lot of trouble getting any photos of anything but the moon. Great work!
Yeah, I have two Pi Zeros working as wireless IP cams. I think camera applications are where they really excel. And if you use v4l2rtspserver on a minimal Raspbian install, you can stream h264 and have better control over image quality with little CPU strain. Not nearly as user-friendly as Motion Eye OS, but last I checked M E was still using MJPEG streaming, which is a bandwidth hog.
Looks like it could be interesting for astrophotography. You'd want to remove the IR cut filter and thermoelectrically cool the sensor, but it could yield decent results taking 200s exposures.
I found that the newest version of the raspberry pi operating system doesn't seem to work with this, so I started over with the legacy buster version. I also had to install Ansible using sudo apt install ansible after running sudo apt-get update and sudo apt-get upgrade. Running the ansible install at the end of the command shown in this video didn't work for some reason, the ansible-playbook command was not found. With these changes though, it seems to work as advertised. Thank you for this tutorial and the ansible playbook, this is an excellent solution for a problem I had where I needed a very lightweight camera solution that wouldn't affect the balance on a small portable telescope.
There is a much easier solution. For some reason its become hard to find in searches, but motioneye is a quick and easy way to create a webcam or full security camera solution. No need to load and then change raspberry pi OS, since it is an OS ready to go. It can also be installed onto pi OS if you want too, but then your back to complex. No where near as complex as what your proposing outside of your script assistance though. Not sure why no one talks about motion eye anymore, its been around for a long time and is really well built.
There are a number of things like motion eye, like piwebcam, which instruct you to either drop a full OS image on the Pi or install it manually, but these are IP-based cameras, which are different than standard USB webcams. Additionally, I'm often more leery of installing full OSes that are distributed outside of more official sources, especially on a device that has a camera on it that could be controlled through the software without my knowledge. I would definitely trust some of these projects more than others, but at the core they don't solve the 'plug in the camera, use it in your apps' problem that USB webcams (not IP cameras) solve.
I think you can sacrifice image resolution for higher FPS. Sometimes, FPS are more important than resolution. I wonder how well a couple of these web cams would work with Mocap For All. I think the lack of a microphone is a benefit for that, because the software can only use the video. Hmm. Maybe the motion capture data could be fed back to the cameras to guide a motor to adjust the focus to follow the person. The end goal in my mind, would be to set up a relatively cheap full body tracking system for VR. I think FPS is more important there, as long as the image has enough detail to pick up the QRcode on the floor. Though the changing camera focus might cause the QRcode to go fuzzy... Conundrum.
Hey Jeff, thank you for the detailed guide and making this easier! For some reason I could not get this to work, any ideas or trouble shooting tips you could give?
Wow thanks alot for this awesome video! I'm in dire need of a webcam and was considering my options with building one myself. Finally I can get that Rpi Zero out of its drawer! =)
Hey Jeff, great project. I was wondering, will the SD card self destruct by unplugging the "webcam" without powering it off? Also could you please make a video where you use this setup as a usb microscope? Thanks.
I have not had an issue with power off and card corruption. It's not really writing anything to the card in OTG mode (though there's a tiny chance it could I guess). If it corrupts, I'd just re-flash and re-install it. You can also set it to not write to the microSD card (RAM only), or log in over SSH (I do this on the W) and run `sudo shutdown now`.
I set it up on my Pi2B with Rpi 8MB Camera Module 2. It didn't work. Ran it on the 4B also didn't work. So I reinstall using the February version of RPI OS and now it worked on my 4GB RPI4B but the video quality is quite laggy on VLC but fine on QuickTime Player. Thanks anyway. Great work there Jeff.
I got it working. Forgot to upgrade. But I also installed yaml and now it works like a dream. Thanks Jeff for your valuable channel and all the work that goes into making these gems/tutorials and GitHub projects. I’m using the 16mm lens and the result is amazing. Thanks again. By the way if anyone knows where I can get my hands on a zero w2 let me know, global shortage.
I'm really curious to know the latency of it. I've been trying to build a system in my truck which uses an x86 64 bit mini pc as a head unit that has a backup camera, two Blind Spot cameras, and a front bumper camera(amongst others). The issue is this I need a camera that has zero latency which apparently other than HD over analog does not exist.
i just did this, works perfectly! thanks jeff! i did deviate a bit on the install steps by using brew to install ansible on my mac... and some of the commands i used are probably useless because of that... but i got it to work in the end!
Omg, that's so cool, I have a spare Zero doing nothing right now, I'm somewhat tempted, I recently started video sessions for voice therapy, using a sad excuse for a webcam on my laptop. Kind of want to try this, then mount it to the top of my laptop, mostly for giggles. :D
now let's add a servo and a 3d printed gear for some autofocus. and also add a good mic. the great thing is that you can use the pi for some more funky calculations like pip or color correction. also a great option would be to be able to stream the rpi desktop via the webcam feed.
This is the highest form of UA-cam videos. 10/10 excellent. Thanks for making the project and recording this video.
: The highest form is no form.
I think it serving a webpage for you to control exposure, white balance etc would be great, also as most people want 1080p the 4k sensor could also give a virtual pan and tilt
Thank you, what a perfect timing! I am actually in the process of trying to do exactly that. I have 3 pi zeros which I plan on using like that. Literally one of them and a camera module are on my bench as a WIP right now. :D
Do it!
I love the outtakes. This is literally me trying to make a UA-cam video. Ordering all parts, can't wait to review this build!
"John microphone"....that was funny Jeff. I literally laughed out loud.
No 'John microphone', but I've seen about a million microphone 'jacks' - lol! They're everywhere!
Jeff, thanks for doing all the hard work on this project. I just finished building the webcam, and it works like a charm. I can't believe that the image is that clear. Can't wait to mount it to my telescope. Thanks again.
I had some issues running this off of the zero w but with the new zero w2 it runs perfectly
Still not working for me.
i had issues running on the zero w as well, i got it all working using 2020-02-07 Raspbian release from his github page and no updates to the os...if you get theModuleNotFoundError: No module named 'yaml....then try pip3 install pyyaml... good luck
unbelievable your channel has only 81 thousand viewers.. This USB RaspiCam project is *amazing* ! great work !
Just assembled my pi-zero camera and I can confirm it works! One thing I did differently is I started with the Raspberry Pi OS Lite that is command-line only, but it works equally well. Thanks, Jeff, for the tutorial and github files!
Great! Most of my Pis run headless.
That's awesome. I replaced 4 cameras for last years and always experienced problems with quality of mount, quality of cables, autofocus, etc. And the majority of those cameras costed me about $100 each.
My next webcam would be rpi-based! I can replace USB cable, I can manually focus it. That's great!
Did this project back in December and I've been using the Pi webcam for all of my online college classes. I couldn't fine the plastic piece at the time so I used cardboard and zip-ties. Super sketch but hey, it works. Thanks for an awesome project! I'm looking forward to making your Pi NAS pretty soon.
For someone who's yet to purchase a pi, I'm ever so delighted I subbed to your channel. Always such good content. Definitely will be making quite a few purchases in the future...
I just setup my own Pi Webcam this weekend and I am very happy with the result. Awesome project! And thank you Jeff for the detailed instructions
I know the camera is at the heart of this video but I really smiled at the (currently) latest comment in the tasks on the git project. “Complete overhaul. Let’s make this thing actually work” Refreshing to see an Ansible master sometimes just need to start again - makes me feel better.
Haha! That's every project for me :D - fail 100 times, then find a way to make it work on the 101st try.
I've been thinking about a Pi camera as an astrocam. I'll be excited for that one.
Me too! What I'm pondering right now is if I'd be able to set up a Pi that stacks images and also controls a motor for a built-in star tracker!
@@JeffGeerling Same! I have thought about a remote telescope setup, as winter sets in. Get the scope out, and then run it from inside where it is warm.
@@JeffGeerling Can't wait to see that.
There are adaptors out there for C/CS mounts so you can replace the eyepiece with the PI HQ camera - got one but not tried it at night yet. I've also done a 3d printed case for the camera & a 3A but designed it so the camera part can be housed separately so not much weight on the telescope
@@BuckeyeStormsProductions Always nice when it's cold outside! Usually the best nights for viewing, too :/
Oh, man. I found you 3 years ago when searching for high quality webcam
An excellent, real-world use-case for a Raspberry Pi Zero (W) *AND* an excellent, real-world use-case for Ansible all in one. This is fantastic!
Always nice to sneak Ansible in there somewhere ;)
Excellent tutorial. I am planning to get a Pi Zero W and looking for an easy project, and I just so happen to need a webcam for one of my computers!
A winning combination!
Love this Jeff! DIY Webcam is something I've been looking for and this solves that problem.
"complicated stuff like git clone" ah yes, the complicated command.
And then he went on to use that command to clone the pi-webcam repo! What a nut!
@@JeffGeerling a complete MADMAN!
@@JeffGeerling would be more automated with docker run ...
Great video, made perfect by the outtakes at the end. Thanks Jeff!
I tried this and love the result. Jeff made it very easy. With a 6mm lens I can use this on Zoom to show a white board with enough resolution to have people read what I write over Zoom. Adjusting the HQ camera ring allows me to adjust to a very close focus to show details of small things (say, a small magnetic floating over a cooled super conductor). This is a great project. Thanks so much for making this video.
Arducam makes a 12mp camera module with autofocus. It adds $40 to the total but might be worth looking into.
Interesting! It looks like the code for autofocus (python in this case) is not too complicated, either: github.com/ArduCAM/RaspberryPi/blob/master/Motorized_Focus_Camera/Autofocus.py
It won't compete with a high-end mirrorless SLR or anything like that, but using OpenCV and a contrast-detect algorithm could be better than nothing!
Definitely warrants further investigation 🤔
Hi! Actually Arducam also makes a 12MP High Quality Camera Webcam Adapter, *with microphone*, and pushes up to *1080P 60fps*, 2k 30fps, 4K 20fps and 12MP 10fps:
ua-cam.com/video/yZN4rpoQw7A/v-deo.html
@@arducamforraspberrypi8168 Ooh... I think I may need to pick up a few Arducams.
I cant beleave how awesome this works, its one of the best projects I have done with my Pi and something I have been looking for for years.....there will be beer money sent I can assure you
Mmm 🍻
Thank you for this excellent tutorial and Ansible playbook!
For anyone wanting to directly output the video to the HDMI output the solution is simple:
* Use raspi-config to autologin to the CLI
* place 'raspivid -t 0' as the last command into the .bashrc file in the home directory of the pi user.
Can not be used as a webcam then.
The output goes either to USB or to HDMI, not both at the same time.
Dear Jeff, I just came to this video because looking at Pi cameras for a project. I noticed You said "i hope this video doesn't cause a shortage of pis" wow, you should buy lottery tickets man you can predict the future
Wow, this looks like it could make a really nice soldering microscope with the proper lens.
Hmm... I didn't even think about using it for that purpose. But that would not be a bad idea at all!
That's a great idea! I already built the webcam using the 6mm lens - what lens do you think would be best for soldering? Some telelens, maybe 100mm?
@@benedolt I would recommend either using extension tubes (just get a bunch of C->CS adapter rings and stack them) for a cheap solution, or get a C mount macro or close-up lens.
Jeff, Some disagree that not having a microphone on the camera is a downside; it is a blessing.
what a coincidence, 7 seconds after uploading lol
First reply to first comment!
Here 7 mins after upload lol
This is great, can't wait to try!
@@JeffGeerling oh hey lmao, i enjoyed the video :)
Day have 96 400 sec. Here is 130 000 subscribers. You are too late!
This is great. I followed all the steps and it all works perfectly. One tiny thing is that step 6 of the instructions doesn’t also install git at the moment so step 7 fails 🙂.
Ah, good catch! Fixed the instructions here: github.com/geerlingguy/pi-webcam/commit/6ffaaa8009a64efa71ca9e16d5633e9910868b71
maaaan... love the bloopers! :) again a great video Jeff!
I would like to suggest a video.... a raspberry pi home security system with a raspberry pi or a pi zero and a raspberry pi camera....... with focus on recording in intermittent segments like a dash cam does deleting videos after a certain time or when card is full or file limit is full... or with a motion sensor... and also being able to record in the dark... like a camera set up pointing at a drive way from inside window or at front door to the house.... just a suggestion... i enjoy and appreciate all your videos they are all very well informed and educational... thanks and have a great day.
I've used this for a few months using a regular V2 8 megapixel Pi Cam (not HD). It always works in Zoom and Teams. I have had it running in the background all day without issue to other apps. I've disconnected and reconnected the USB cable throughout the day, also without issue. There are limitations with the regular V2 Pi camera itself. There is no white balancing, so sometimes my face is a bit redder than normal. The auto-exposure will underexpose your face when there is a window or other bright light in the frame.
I built a Pi Zero camera too and there's definitely some issues at low light. I get a lot of flickering in low light, and it's not frame rate / shutter speed issues. I added ferrite core chokes to eliminate interference on the power cable but it still persists. With regards to performance: I set it up to boot up with "Raspivid" running which will output a preview image via the HDMI output (which you'd have to deal with on the computer software side). This will also bypass a lot of lag and performance problems as it is mostly passing the HDMI through the Pi without added processing. You can kill that process and restart it manually if you want to adjust settings (iso, frame rate, white balance, etc). In theory you can use it for whatever purpose you like as it will operate like a standard video camera, even recording to attached storage. Add a PiJuice HAT with battery and you'll have portable power.
Also, if it's on the same wifi network as your computer you can use VNC Viewer to control your Pi remotely complete with a GUI.
I agreed with you that spending the time and using a pi and/or pi camera to do things that can be solved by cheap alternatives, SUCKS.
1) Home surveillance using multiple Pis with IR cameras was garbage and was able to buy a cheap 360 1080p camera set from random company which had a full app and local storage for 1/2 the price of just the Pi at $25 on sale. (FAIL)
2) Monitoring multiple 3d printers was nice but the pi (3b, 3b+ 4 2gb) gets SUPER hot just running the web interface and with the Pi cameras the resolution and frame rate that I could get it to run was worthless (Before pandemic I was able to get the c920 for $30 which was way better except the auto focus would lock on something in the background). (FAIL)
3) Pi hole - Ad blocking for all (SUCCESS)
I am glad that you got this to work and it looks great. Good job!
A great project which was really simple to follow and setup, so thanks for the ansible automation. Would love to hear about any other uses you find for the HQ camera...
I built this back in September, and was really happy with the results! I tried out a couple of different cmount lenses, 6mm, 8mm, and 25mm. It's got a crazy crop factor!
I’m curious which focal length you found best as a “webcam equivalent”?
@@mlindholm Definitely the 6mm for webcam all the way! The 8mm was a big jump, and for the 25 mm I literally had to be across the room! You can see the results on my channel, in a video called "Build a Better USB Webcam" I don't think I can post the link here, because UA-cam will flag it as spam.
Yesterday: webcams sold out. Today: pi & pi cameras sold out...
I didn't learn from your mistake at 7:45. Please, if you're building one of these, remember to remove the ring for a 6mm camera! I spent way too long trying to figure why I couldn't focus.
Tried it on a Raspberry Pi Zero (first one, not the W model) with the standard camera module (v2.1). Using it connected to a Linux computer. It's working great! Thanks for sharing this.
I made the setup on a Pi model 3B, installing Raspberry OS Lite, then plugged the card in the Pi Zero when the ansible script was finished.
Know that this is a very reliable setup. I have used my Pi Zero with the HQ cam as a webcam since august as a teacher using Zoom. I literally have the webcam on and running on my Dell laptop 8am-3pm daily, and it just chugs along without much issue. Know that in the webcam settings of whatever app you are using you may want to up the brightness since the default setting runs a little dark.
I hope to make that brightness setting a little easier to control as well in the uvc-gadget code. It's current default is tailored more towards use on a Mac.
Just ordered parts for this project! Can't wait to tinker with it!
I'm happy to be one of the first subscribers, epic content and outstanding quality and effort!
@4:44 That's always music to my ears!
#opensource FTW!
Jeff, just wanted to say thank you and also to the developers of the various tools and libraries. This was a very fun project! For other folks benefit, I used a pi camera v2, mostly flawlessly. It was very slow in parts because I enabled the camera and had very little ram. I was foolishly on this youtube video and github (on the pi zero!) while doing this...that I do not recommend and will not repeat on the next round. But this worked flawlessly. Thank you again for the fun! AWESOME!
Glad you got it working, thanks for posting your comment :)
You are doing great work. I noticed you used to be camera shy. But now you are doing awesome. Keep up the great work.
Fun fact: In college, when I took a public speaking class, I actually scored off the charts for public speaking anxiety in the test we took at the beginning of the year :D
It's definitely a thing where the only way to overcome that anxiety is to do it over and over!
Looking forward to the videos about the HQ module! Always thought about doing something with it, like a telescope with star tracking.
Autofocus could be added.
Anything could be added to an SBC, with the right code.
All of the c-mount lenses I own are manual focus. If there are indeed autofocus c-mount lenses, the pi camera module doesn't have an interface to control them.
I found a more elegant solution to powering the camera off when you're done with it: just add "dtoverlay=gpio-shutdown" to config.txt, then wire a button between GPIO3 and ground. (as a bonus this will also startup the Pi, meaning you can leave it plugged in)
Wow, that is fantastic Jeff. Thank you for all the work and experience you put into the Raspberry Pi Webcam Open Source project.
I'm thinking of housing it to IP67 water/dust proof standards (or better) and using it externally as a backup camera(s) on my camper trailer. I have to work out the heat dissipation issue that will create too. I have so much to do!!!
I love that you implemented setup as an Ansible Playbook.
I figure I forget enough things in my day as it is. Might as well make the things I build automated and repeatable so my own memory doesn't really matter!
I'd be happy if I could use my Pixel 3 XL's camera without hassel. The phone is now out of support, but both front/rear Camera's are amazing for a Linux Webcam
What's nice is that this also works with the cheap 10$ Chinese 5mp Pi camera. I did that because even that was waaaaaay better than my laptop cam, and because my 5mp night vision camera makes it easy to make creepy phone calls at night 😂
Haha, true. It does work just as well with any camera that works with the Pi's camera connector, including IR cams.
@@JeffGeerling it'd be a real shame if you don't shoot a video for your channel with the V2 NoIR camera. It's EXTREMELY creepy, especially with IR lamps providing the lighting 😁
EDIT: Too late for Halloween though...
@@wingedrhino33 Maybe I'll set one up to see what Red Shirt Jeff does in the workshop with all those power tools at night!
@@JeffGeerling aah perfect!
@@wingedrhino33 would u be so kind and post a sample clip somewhere with a link here? I'm very interested in an IR version of Jeff's wonderful setup.
Thank you so much for sharing this info! Your timing is perfect, I'm a musician about to start streaming performances and I need to keep expenses down. After some quick looking around, I think I'll opt for the 2.8-12mm lens instead, a little extra expense, but the 125deg FOV will be great.
Might work as a camera for my telescope as well...
Jeff, you crazy man, you saved me from a lot of trouble
This is awesome! This is perfect for my super secret project I'm working on. Thanks for doing this!
a super secret spy project maybe. (just hoaxing)
I can See this "thing" attached to a telescope :D!
Happy New Year!
That's EXACTLY what I'm doing!
Great job, kudos cool project but what if I told you I use a Canon 550d /T2i as a webcam and it's cheaper?
Hey @Zulf, I have a cannon Powershot SX1 IS. I'm unable to figure out how to use it as webcam. Need some suggestions. Do you use a capture card or new EOS webcam utility? Mine goes into photo transfer mode if I plug in miniUSB with webcam utility. I think 6 months ago watched your video about EOS webcam utility not working. 😎
I forgot to tell you, I got 2 broken Canon SX1IS for free and swapped defective parts to make a working camera. 😀
I mean, if you already have a DSLR or mirrorless camera, then you can get a decent HDMI capture card and technically it's cheaper (I even have a video on how I stream with both my a6000 and a Nikon D750), but not on the all-in cost (even buying used, it would go past $100).
But the quality is oh-so-much better than any webcam you can buy :)
@@JeffGeerling Yes true however a canon T2i used on ebay is very cheap and also doubles as a decent photos camera. I use the Canon Webcam tool and its actually decent. Im not sure I'm as talented as you to make one like you did. I would give it a go though. I have Retro Pie setup which i don't use much anymore. hmm...
@@JeffGeerling I use The canon Via USB i do have HDMI cards but i use them with an old Camcorder. They work great too and actually I got a Camcorder 1080p with HDMi out and a cheap HDMI Out Card and that setup was under £70 and in dollars would be close to about $90ish ? but it has zoom and autofocus with tracking. many options out there but yours is COOL as hell. Keep creating
Thankfully I bought my HQ camera 2 months ago and it arrived a couple weeks ago. Haven't unboxed the sucker yet. I do have a variety of really nice lenses to try it with so looking forward to the holiday this week to put it thru its paces.
It's a ton of fun! Even though I have three SLRs that beat the usability and image quality, it's more fun to do experiments using a software-controlled camera like the HQ camera! Plus getting 2000+ mm reach out of my longer lenses adapted to C mount makes for some fun experiments!
@@JeffGeerling Indeed. My various Nikon and Sony Slr's are black boxes with annoying UI's. Having something like this to tinker with is always great!
3:35 living on the edge!
i love how you tell about your project..
It looks better than most webcams, but still as a webcam tho. Sometimes it's easier and better to get "older" mirrorless camera with hdmi output
This is perfect. Thanks Jeff! I love Ansible and can’t wait to see how you set up the code.
Jeff, your timing is excellent as I, too, have found that webcams don't seem to have the value they once had. I'm trying to set up a UA-cam channel but have no idea how to capture videos off of various old but still functional cameras ranging from cell phones to digital SLRs and port them to a video editor. Right now the process of connecting them to my computer and stitching the images together into a single seamless video seems like magic to me. Can you explain that process for us in future videos? Thanks! Subbed.
The teaser at 11:19 excites me. been looking for a microscope camera. All seem way too expensive for what they are. Telescopes and Microscopes are very much the same interface. If you can, please try it on an AMSCOPE microscope.
Fab, this is really useful & the quality is superb & what a great presentation, glad I subbed & thanks for the playbook.
Jeff, I build it and sofar it is awesome. Next week I will test it.
Great sharpness, the ony things I noticed were the 6mm lens that you must unscrew it a little from the mount to get it sharp and the flat cable is far from ideal. But it is in total, every Dutch Euro worth. Thnx a lot for this Christmas present.
I'll be interested to see how you got this working with a telescope, I have had a lot of trouble getting any photos of anything but the moon. Great work!
Yeah, I have two Pi Zeros working as wireless IP cams. I think camera applications are where they really excel. And if you use v4l2rtspserver on a minimal Raspbian install, you can stream h264 and have better control over image quality with little CPU strain. Not nearly as user-friendly as Motion Eye OS, but last I checked M E was still using MJPEG streaming, which is a bandwidth hog.
Thank you very much! It worked on the first try with a Pi 4 and a night vision camera.
Worked like a charm!
Looks like it could be interesting for astrophotography. You'd want to remove the IR cut filter and thermoelectrically cool the sensor, but it could yield decent results taking 200s exposures.
Thank you Jeff for this quality video and project.
Great work Jeff! Was curious to know what kind of framerates we could expect from such a setup?
I found that the newest version of the raspberry pi operating system doesn't seem to work with this, so I started over with the legacy buster version. I also had to install Ansible using sudo apt install ansible after running sudo apt-get update and sudo apt-get upgrade. Running the ansible install at the end of the command shown in this video didn't work for some reason, the ansible-playbook command was not found. With these changes though, it seems to work as advertised. Thank you for this tutorial and the ansible playbook, this is an excellent solution for a problem I had where I needed a very lightweight camera solution that wouldn't affect the balance on a small portable telescope.
There is a much easier solution. For some reason its become hard to find in searches, but motioneye is a quick and easy way to create a webcam or full security camera solution. No need to load and then change raspberry pi OS, since it is an OS ready to go. It can also be installed onto pi OS if you want too, but then your back to complex. No where near as complex as what your proposing outside of your script assistance though. Not sure why no one talks about motion eye anymore, its been around for a long time and is really well built.
There are a number of things like motion eye, like piwebcam, which instruct you to either drop a full OS image on the Pi or install it manually, but these are IP-based cameras, which are different than standard USB webcams.
Additionally, I'm often more leery of installing full OSes that are distributed outside of more official sources, especially on a device that has a camera on it that could be controlled through the software without my knowledge.
I would definitely trust some of these projects more than others, but at the core they don't solve the 'plug in the camera, use it in your apps' problem that USB webcams (not IP cameras) solve.
Great job. And thanks for the tip about that mounting plate.
I think you can sacrifice image resolution for higher FPS. Sometimes, FPS are more important than resolution.
I wonder how well a couple of these web cams would work with Mocap For All. I think the lack of a microphone is a benefit for that, because the software can only use the video.
Hmm. Maybe the motion capture data could be fed back to the cameras to guide a motor to adjust the focus to follow the person.
The end goal in my mind, would be to set up a relatively cheap full body tracking system for VR. I think FPS is more important there, as long as the image has enough detail to pick up the QRcode on the floor. Though the changing camera focus might cause the QRcode to go fuzzy... Conundrum.
this has amazing potential, thank you!
Hey Jeff, thank you for the detailed guide and making this easier! For some reason I could not get this to work, any ideas or trouble shooting tips you could give?
Wow thanks alot for this awesome video! I'm in dire need of a webcam and was considering my options with building one myself. Finally I can get that Rpi Zero out of its drawer! =)
LOL, the bloopers are great!!!
GoPro Hero 6 works as a great webcam alongside a camlink 4K USB adaptor.
Bought all the parts, awsome Project
This is excellent for my documentation project, thanks so much.
Hey Jeff, great project. I was wondering, will the SD card self destruct by unplugging the "webcam" without powering it off? Also could you please make a video where you use this setup as a usb microscope? Thanks.
I have not had an issue with power off and card corruption. It's not really writing anything to the card in OTG mode (though there's a tiny chance it could I guess). If it corrupts, I'd just re-flash and re-install it.
You can also set it to not write to the microSD card (RAM only), or log in over SSH (I do this on the W) and run `sudo shutdown now`.
@@JeffGeerling thanks. Running everything from RAM only seems a good choice.
it actually look good, just a little bit color correction and turn black level down a little bit and you good to go, noice!
I set it up on my Pi2B with Rpi 8MB Camera Module 2. It didn't work. Ran it on the 4B also didn't work. So I reinstall using the February version of RPI OS and now it worked on my 4GB RPI4B but the video quality is quite laggy on VLC but fine on QuickTime Player. Thanks anyway. Great work there Jeff.
I got it working. Forgot to upgrade. But I also installed yaml and now it works like a dream. Thanks Jeff for your valuable channel and all the work that goes into making these gems/tutorials and GitHub projects. I’m using the 16mm lens and the result is amazing. Thanks again. By the way if anyone knows where I can get my hands on a zero w2 let me know, global shortage.
Great video the camera looks like much better quality. You're the best!
I'm really curious to know the latency of it. I've been trying to build a system in my truck which uses an x86 64 bit mini pc as a head unit that has a backup camera, two Blind Spot cameras, and a front bumper camera(amongst others). The issue is this I need a camera that has zero latency which apparently other than HD over analog does not exist.
Very nice Strat in the background.
Very nice, thanks. If it had auto focus, I'd definitely try this.
Any plans on doing a video using the HD camera module as part of a pi-based home security setup using something like motionEyeOS?
i just did this, works perfectly! thanks jeff!
i did deviate a bit on the install steps by using brew to install ansible on my mac... and some of the commands i used are probably useless because of that... but i got it to work in the end!
Good job pal.
Show how to reduce boot time with the PI
Omg, that's so cool, I have a spare Zero doing nothing right now, I'm somewhat tempted, I recently started video sessions for voice therapy, using a sad excuse for a webcam on my laptop. Kind of want to try this, then mount it to the top of my laptop, mostly for giggles. :D
cool, Like the bloopers at the end
now let's add a servo and a 3d printed gear for some autofocus. and also add a good mic.
the great thing is that you can use the pi for some more funky calculations like pip or color correction.
also a great option would be to be able to stream the rpi desktop via the webcam feed.