Turn That Pi Zero Into A Streaming Camera, Step-by-Step

What makes [mwagner1]’s Raspberry Pi Zero-based WiFi camera project noteworthy isn’t so much the fact that he’s used the hardware to make a streaming camera, but that he’s taken care to document every step in the process from soldering to software installation. Having everything in one place makes it easier for curious hobbyists to get those Pi units out of a drawer and into a project. In fact, with the release of the Pi Zero W, [mwagner1]’s guide has become even simpler since the Pi Zero W now includes WiFi.

Using a Raspberry Pi as the basis for a WiFi camera isn’t new, but it is a project that combines many different areas of knowledge that can be easy for more experienced people to take for granted. That’s what makes it a good candidate for a step-by-step guide; a hobbyist looking to use their Pi Zero in a project may have incomplete knowledge of any number of the different elements involved in embedding a Pi such as basic soldering, how to provide appropriate battery power, or how to install and configure the required software. [mwagner1] plans to use the camera as part of a home security system, so stay tuned.

If Pi Zero camera projects catch your interest but you want something more involved, be sure to check out the PolaPi project for a fun, well-designed take on a Pi Zero based Polaroid-inspired camera.

30 thoughts on “Turn That Pi Zero Into A Streaming Camera, Step-by-Step

  1. Very useful, there are a lot of cheap HD cameras out there these days but if you can’t get open and secure firmware for them you really have no idea what risks you are putting on your LAN. There are boards like the PiSolMan if you want an camera that has it’s own power, but then you probably also need a battery backed Pi to cache the video data too.

    Is there and OpenSecurity project? All of these open and secure modules would make a great little ecosystem for hacker/maker types that took their IoT security seriously, unlike most vendors.

    1. Exactly. 99% of all the freaking Onvif china cameras have some of the worst firmware ever written. Granted this will not give you an Onvif camera, but it actually gives you a LOT more as you don’t have to suffer with a traditional Security recorder and their horrible firmware as well. All your cameras can record to a simple FTP server.

      The cool part is you can get Pi cameras that will take different lenses so you can have wide angle or even a really nice zoom lens to cover what you want.

    2. “there are a lot of cheap HD cameras out there these days but if you can’t get open and secure firmware for them you really have no idea what risks you are putting on your LAN.”

      Are you really concerned about a generic USB webcam’s firmware doing something malicious on your LAN?

  2. The LED throwies that were so popular a couple years ago could be supplanted by these.
    It’s a much higher pricepoint, but you could do some really interesting guerrilla street photography (or if you don’t call it art: voyeurism) with these and a WiFi connection.

  3. Currently trying to get a Raspi3 remote camera working using WebRTC. Everything on the net is about video conferencing (not remote monitoring), and mostly for the Pi2 instead of the Pi3.

    Anyone know of a good WebRTC connection broker that will run *on* the Pi3? Preferably with an example that shows how single-channel video is setup (ie – not a video chat application).

      1. That would be a good choice, but I need a WebRTC solution. The link you provided was for an RTSC version, which doesn’t fit the needs of the project.

        (RTSC is the older, VCR-ish method of streaming data. WebRTC is the more recent standard that hooks directly to HTML objects after some setup.)

    1. if it runs on a pi2 it will run on a pi3. Unless it’s a closed source binary only blob specifically written for the pi2 only and is designed to not work on anything else.

    1. HA HA yeah, Pretty much my reaction also the “Educational Computer” that’s 5+ times more expensive and never in stock. AusPi Technologies need a reality check. Oooh Oooh but We can Bid on Ebay and get it under 3 Digits if we are lucky :/

    1. That’s a much more interesting project that would deserve a HaD article on its own. I didn’t know about this Wifibroadcast and it could be very useful for my own evil plans. I’m struggling to get some video streaming working from an existing hardware I can’t modify, once I get that working I think I’ll explore this idea of using the computer card in monitor mode. Thanks for the link.

  4. i love raspberry pi! but lack of detailed instructions on projects are very frustrating. the people posting instructions often leave out minute details because they assume everyone knows linux and syntax.
    can anyone here help me with a new but simple project? basically, i would like the rpi to auto play JPG files from the ext USB flash drive, upon booting up. i am using Jessie lite. installed FBI and was able to open files on the USB drive manually. but no dice having it done automatically via cron

    1. what you are tyn to do has nothin specificly to do with a r-pi,
      you need a daemon/program to start with your linux install,
      search for linux picture frame or soemthing like that.

    1. considering I have 12 of them and they are not that hard to come by? What was your point again? The wifi/BT boards are easy to buy, and the non wifi Pi zero is easy to find as well as nobody wants to buy them. I just got a couple from MCM electronics for another project.

      1. Seriously guys, there are much better and even cheaper (compared to the true cost of the Pi Zero) alternatives out there readily available in single to thousands quantities and without unnecessary bundles. I can understand fanboyism, even advertising, but this is getting ridiculous.

        1. Cool. Please tell me more about these $5 boards with an enormous community and good vendor support. I already know about the Orange Pi Zero which lacks a video connector of any type, has no camera connector and costs a few bucks more. And the Orange Pi Lite that has all those things but support for the camera is virtually non-existent.

          I agree with your sentiment. There are some boards like the CHIP, and Orange Pi’s that are very capable and more available than the RPi’s. I have three of the Orange Pi Lites in hand and 5 of the Zeros on the way. And IMHO, the only reason the RPi Zero and Zero W exists is to draw attention away from these boards, you can’t deny that they’re a great value for the money.

  5. Motion is ok at streaming. If you want an almost latency free 640×480@30fps stream, I suggest the standard mjpg-streamer with the mjpeg patch and modprobe bcm2835-v4l2. This uses only a few percent of your CPU (IIRC, about 3-5%) and latency is about 1/4 of a second or less. It works with the pi cam or a decent USB webcam (it has to have hardware mjpeg encoding). You can get 2 or 3 640×480@30fps streams on a single pi before bandwidth becomes an issue with a pi 3 or pi zero.
    I’ve not seen EZ-Wifibroadcast, I’ll have to give that a try.

Leave a Reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.