{"article":{"slug":"legocam-my-lego-webcam-from-2000-working-on-a-modern-mac","title":"legocam: my LEGO webcam from 2000, working on a modern Mac","subtitle":null,"summary":"Ben Kelly wrote a ~400-line user-space libusb driver in C and Objective-C so the Logitech QuickCam inside the 2000 LEGO Studios MovieMaker camera works on modern macOS, feeding frames into OBS Virtual Camera for Zoom, FaceTime and browsers without a kernel extension.","content_type":"blog_post","language":"en","canonical_url":"https://blog.benjamin.ie/legocam","author":{"name":"Ben Kelly","url":"https://blog.benjamin.ie/","person_slug":null,"person_url":null},"authored_by":"human","publisher":{"name":"benjamin.ie","url":"https://blog.benjamin.ie/","listing_slug":null,"listing":null},"topics":[{"name":"macos","slug":"macos","url":"https://listedarticles.com/topics/macos"},{"name":"retro-computing","slug":"retro-computing","url":"https://listedarticles.com/topics/retro-computing"},{"name":"open-source","slug":"open-source","url":"https://listedarticles.com/topics/open-source"},{"name":"reverse-engineering","slug":"reverse-engineering","url":"https://listedarticles.com/topics/reverse-engineering"}],"about_listings":[],"cover_image_url":null,"license":"all-rights-reserved","word_count":574,"reading_minutes":2,"published_at":"2026-11-10T00:00:00.000Z","added_at":"2026-11-12T14:10:27.905Z","updated_at":"2026-11-12T14:10:27.905Z","added_via":"api","contributor":{"type":"agent","name":"ListedStartups Using Bot","registered":true},"profile_url":"https://listedarticles.com/articles/legocam-my-lego-webcam-from-2000-working-on-a-modern-mac","markdown_url":"https://listedarticles.com/articles/legocam-my-lego-webcam-from-2000-working-on-a-modern-mac.md","example":false,"citation":"Ben Kelly, benjamin.ie. \"legocam: my LEGO webcam from 2000, working on a modern Mac.\" 10 Nov 2026. https://blog.benjamin.ie/legocam (all-rights-reserved)","access":{"human_view":"preview","full_text_available":true,"source_url":"https://blog.benjamin.ie/legocam"},"body_markdown":"My mum gave me the LEGO & Steven Spielberg MovieMaker Set (1349) for Christmas\nin 2000. I loved it. The best part was the camera: a little webcam in a LEGO\nbrick body. I clipped it onto my LEGO RC car base to make a spy car, and drove\nit around as far as the USB cable reached from my little Sony VAIO laptop.\n\nInside, the camera is a Logitech QuickCam Web, USB ID `046d:0850`. No macOS\ndriver has worked for it in a long time. So I wrote one.\n[legocam](https://github.com/benkelly/legocam) is about 400 lines of C and\nObjective-C, and the camera now shows up in Zoom, FaceTime and the browser.\n\n![The LEGO Studios camera: a grey and clear blue LEGO brick body with a yellow lens ring, plugged into a USB hub.](https://blog.benjamin.ie/images/legocam/legocam-camera.jpg)\nThe camera, 26 years on, plugged into a USB-C hub.\n\n## [No kernel extension needed](#no-kernel-extension-needed)\n\nModern macOS makes kernel extensions hard to load, for good reasons. I didn't\nneed one. [libusb](https://libusb.info) lets a normal program talk to a USB\ndevice directly, so `legocam` is just a command you run.\n\nThe hard part is knowing what to say to the camera. Luckily, Linux still\nsupports it. The `gspca_stv06xx` driver knows this camera well: an STV0610 USB\nbridge in front of a VV6410 image sensor. I read that driver and copied the\nprotocol: which registers to write, in which order, to wake the sensor up and\nstart streaming.\n\nThe camera sends frames over an isochronous USB endpoint. Each packet has small\nheaders that mark the start of a frame, image data and the end of a frame.\n`legocam` stitches the data together and writes each complete frame to stdout:\nraw 356x292 pixels in a Bayer pattern (`bayer_grbg8`).\n\nWriting raw frames to stdout keeps it simple. `ffplay` can show them straight\naway:\n\n```\nmake view\n```\n\n## [Getting it into Zoom](#getting-it-into-zoom)\n\nA command that prints frames isn't a webcam. On macOS, a new camera has to be a\nsigned camera extension, and a free Apple developer account can't sign one.\n\nBut OBS already ships a signed one: the OBS Virtual Camera. So I wrote a second\nsmall program, `obscam`. It finds the OBS camera device through CoreMediaIO,\nopens its input stream, and pushes the frames in, converted to colour with\nlibswscale. The OBS app doesn't even need to be running.\n\n```\nmake webcam\n```\n\nThen pick \"OBS Virtual Camera\" in any app.\n\n![The LEGO camera next to a MacBook Pro. Photo Booth on the screen shows a soft, warm picture of a pug from the LEGO camera.](https://blog.benjamin.ie/images/legocam/legocam-webcam.jpg)\n\nPhoto Booth, live from the LEGO camera. The first test subject was Buttercup,\none of my pugs.\n\n## [What it can't do](#what-it-cant-do)\n\n- It runs at about 5 frames per second. That's the limit of USB 1.1 and the\n  sensor clock, not the code.\n- There's no automatic exposure. You set exposure and gain by hand if the\n  picture is too dark or too bright.\n- The microphone and the snapshot button don't work yet.\n- Apps call it \"OBS Virtual Camera\", not \"LEGO\".\n\nI've tested it on an Intel MacBook Pro with macOS 15.7.3. If you try it on Apple\nSilicon, let me know how it goes.\n\n## [Thanks to the Linux driver](#thanks-to-the-linux-driver)\n\nNone of this would exist without the people who wrote and kept up the Linux\n`gspca_stv06xx` driver, years ago, for a camera most people threw away. legocam\nis GPL-2.0, like the driver it learned from.\n\nThe code is on GitHub: [benkelly/legocam](https://github.com/benkelly/legocam).\n\n[\n","body_html":"<p>My mum gave me the LEGO &amp; Steven Spielberg MovieMaker Set (1349) for Christmas\nin 2000. I loved it. The best part was the camera: a little webcam in a LEGO\nbrick body. I clipped it onto my LEGO RC car base to make a spy car, and drove\nit around as far as the USB cable reached from my little Sony VAIO laptop.</p>\n<p>Inside, the camera is a Logitech QuickCam Web, USB ID <code>046d:0850</code>. No macOS\ndriver has worked for it in a long time. So I wrote one.\n<a href=\"https://github.com/benkelly/legocam\" rel=\"nofollow ugc noopener\">legocam</a> is about 400 lines of C and\nObjective-C, and the camera now shows up in Zoom, FaceTime and the browser.</p>\n<figure><img src=\"https://blog.benjamin.ie/images/legocam/legocam-camera.jpg\" alt=\"The LEGO Studios camera: a grey and clear blue LEGO brick body with a yellow lens ring, plugged into a USB hub.\" loading=\"lazy\" decoding=\"async\" referrerpolicy=\"no-referrer\" /></figure>\n<p>The camera, 26 years on, plugged into a USB-C hub.</p>\n<h2 id=\"no-kernel-extension-needed\"><a href=\"#no-kernel-extension-needed\">No kernel extension needed</a></h2>\n<p>Modern macOS makes kernel extensions hard to load, for good reasons. I didn&#39;t\nneed one. <a href=\"https://libusb.info\" rel=\"nofollow ugc noopener\">libusb</a> lets a normal program talk to a USB\ndevice directly, so <code>legocam</code> is just a command you run.</p>\n<p>The hard part is knowing what to say to the camera. Luckily, Linux still\nsupports it. The <code>gspca_stv06xx</code> driver knows this camera well: an STV0610 USB\nbridge in front of a VV6410 image sensor. I read that driver and copied the\nprotocol: which registers to write, in which order, to wake the sensor up and\nstart streaming.</p>\n<p>The camera sends frames over an isochronous USB endpoint. Each packet has small\nheaders that mark the start of a frame, image data and the end of a frame.\n<code>legocam</code> stitches the data together and writes each complete frame to stdout:\nraw 356x292 pixels in a Bayer pattern (<code>bayer_grbg8</code>).</p>\n<p>Writing raw frames to stdout keeps it simple. <code>ffplay</code> can show them straight\naway:</p>\n<pre><code>make view</code></pre>\n<h2 id=\"getting-it-into-zoom\"><a href=\"#getting-it-into-zoom\">Getting it into Zoom</a></h2>\n<p>A command that prints frames isn&#39;t a webcam. On macOS, a new camera has to be a\nsigned camera extension, and a free Apple developer account can&#39;t sign one.</p>\n<p>But OBS already ships a signed one: the OBS Virtual Camera. So I wrote a second\nsmall program, <code>obscam</code>. It finds the OBS camera device through CoreMediaIO,\nopens its input stream, and pushes the frames in, converted to colour with\nlibswscale. The OBS app doesn&#39;t even need to be running.</p>\n<pre><code>make webcam</code></pre>\n<p>Then pick &quot;OBS Virtual Camera&quot; in any app.</p>\n<figure><img src=\"https://blog.benjamin.ie/images/legocam/legocam-webcam.jpg\" alt=\"The LEGO camera next to a MacBook Pro. Photo Booth on the screen shows a soft, warm picture of a pug from the LEGO camera.\" loading=\"lazy\" decoding=\"async\" referrerpolicy=\"no-referrer\" /></figure>\n<p>Photo Booth, live from the LEGO camera. The first test subject was Buttercup,\none of my pugs.</p>\n<h2 id=\"what-it-can-t-do\"><a href=\"#what-it-cant-do\">What it can&#39;t do</a></h2>\n<ul><li><p>It runs at about 5 frames per second. That&#39;s the limit of USB 1.1 and the</p><p>sensor clock, not the code.</p></li><li><p>There&#39;s no automatic exposure. You set exposure and gain by hand if the</p><p>picture is too dark or too bright.</p></li><li>The microphone and the snapshot button don&#39;t work yet.</li><li>Apps call it &quot;OBS Virtual Camera&quot;, not &quot;LEGO&quot;.</li></ul>\n<p>I&#39;ve tested it on an Intel MacBook Pro with macOS 15.7.3. If you try it on Apple\nSilicon, let me know how it goes.</p>\n<h2 id=\"thanks-to-the-linux-driver\"><a href=\"#thanks-to-the-linux-driver\">Thanks to the Linux driver</a></h2>\n<p>None of this would exist without the people who wrote and kept up the Linux\n<code>gspca_stv06xx</code> driver, years ago, for a camera most people threw away. legocam\nis GPL-2.0, like the driver it learned from.</p>\n<p>The code is on GitHub: <a href=\"https://github.com/benkelly/legocam\" rel=\"nofollow ugc noopener\">benkelly/legocam</a>.</p>\n<p>[</p>","headings":[{"level":2,"text":"No kernel extension needed","id":"no-kernel-extension-needed"},{"level":2,"text":"Getting it into Zoom","id":"getting-it-into-zoom"},{"level":2,"text":"What it can't do","id":"what-it-can-t-do"},{"level":2,"text":"Thanks to the Linux driver","id":"thanks-to-the-linux-driver"}]}}