Skip to main content

I built my own camera with a Raspberry Pi 4

I built my own camera with a Raspberry Pi 4

/

And still can’t speak Python

Share this story

It’s always been a dream of mine to put my vintage camera lenses to work again, so when the Raspberry Pi Foundation put out a camera system that supported C- and CS-mount lenses, I knew I had to get one and turn it into a custom digital camera. There was only one thing standing in the way: my total and complete lack of coding knowledge.

My plan was to put the new Raspberry Pi High Quality Camera inside the body of a toy 35mm camera I had, giving me a way to use my vintage lenses without having to pay for processing film.

The Becca Cam: a camera made with the Raspberry Pi HQ Camera mod.
The Becca Cam: a camera made with the Raspberry Pi HQ Camera mod.
I used a 3.5-inch touchscreen for the viewfinder.
I used a 3.5-inch touchscreen for the viewfinder.
The USB-C power cable comes out of the top, next to the mini push button switch used for triggering the shutter.
The USB-C power cable comes out of the top, next to the mini push button switch used for triggering the shutter.

The Raspberry Pi is a super tiny computer that is highly programmable. People have used these to program everything from smart mirrors, to portable arcades, to COVID-19 case counters, and even super smart, super techie greenhouses. They are tiny boxes that — if you know how to code — can do pretty much anything.

For my build, I used the $50 HQ Camera Mod, a Raspberry Pi 4 computer, a USB-C portable 10,000mAh charger, a 3.5-inch touchscreen, jumper wires, a mini push button switch, the body of a Ninoka NK-700 35mm camera, and two vintage C-mount lenses.

The Raspberry Pi HQ Camera mod with the C-mount lens.
The Raspberry Pi HQ Camera mod with the C-mount lens.
A Raspberry Pi 4 computer.
A Raspberry Pi 4 computer.

The plan was simple: plug in the HQ camera board to the Raspberry Pi, program the system to take photos using a button, and then place all of the components into the gutted body of a toy, 35mm camera I found in my basement. Carrying out the plan was, well, not as straightforward.

The official Raspberry Pi Camera guide is free online and filled with code for programing different functions like stop-motion photography or setting up a security camera. But I quickly realized that, for an amateur like myself, copying and pasting code into a terminal was a game of chance, and one in which I had very little luck. Most code returned error messages, and on the off chance the code yielded the results I wanted, I had absolutely no idea how or, more importantly, why it worked.

After phoning many friends and reading the HQ Camera’s user manual upward of 50 times, I was able to program my camera to take photos using a button, which allowed me to assemble the camera’s hardware and ultimately get me out in the world taking photos. I added an external battery pack to power the system and a 3.5-inch touchscreen for previewing and operating my camera’s software.

But even that didn’t go to plan. Tune into the video for more setbacks and my rapid decline in self confidence.

1/6

Outside of the hellscape that is coding as a complete beginner while also creating a nine-minute video alone during a pandemic, Raspberry Pi’s HQ Camera mod is extremely capable for its size and the $50 it costs. There are endless possibilities with these tiny computers, but for now, I’m happier seeing what everyone on Reddit comes up with rather than trying to create something of my own.

Photography by Becca Farsace / The Verge

The Verge on YouTube /

Exclusive first looks at new tech, reviews, and shows like Processor with Dieter Bohn.

Subscribe!

Today’s Storystream

Feed refreshed 11 minutes ago Dimorphos didn’t even see it coming

J
External Link
Jess Weatherbed11 minutes ago
Won’t anyone think of the billionaires?

Forbes reports that rising inflation and falling stock prices have collectively cost members of the Forbes 400 US rich list $500 billion in 2022 with tech tycoons suffering the biggest losses.

Jeff Bezos (worth $151 billion) lost $50 billion, Google’s Larry Page and Sergey Brin (worth a collective $182b) lost almost $60b, Mark Zuckerberg (worth $57.7b) lost $76.8b, and Twitter co-founder Jack Dorsey (worth $4.5b) lost $10.4b. Former Microsoft CEO Steve Ballmer (worth $83b) lost $13.5b while his ex-boss Bill Gates (worth $106b) lost $28b, albeit $20b of that via charity donations.


T
Thomas Ricker6:45 AM UTC
Check out this delightful DART Easter egg.

Just Google for “NASA DART.” You’re welcome.


Asian America learns how to hit back

The desperate, confused, righteous campaign to stop Asian hate

Esther WangSep 26
R
Twitter
Richard Lawler12:00 AM UTC
A direct strike at 14,000 mph.

The Double Asteroid Redirection Test (DART) scored a hit on the asteroid Dimorphos, but as Mary Beth Griggs explains, the real science work is just beginning.

Now planetary scientists will wait to see how the impact changed the asteroid’s orbit, and to download pictures from DART’s LICIACube satellite which had a front-row seat to the crash.


M
The Verge
We’re about an hour away from a space crash.

At 7:14PM ET, a NASA spacecraft is going to smash into an asteroid! Coverage of the collision — called the Double Asteroid Redirection Test — is now live.


E
Twitter
Emma RothSep 26
Missing classic Mario?

One fan, who goes by the name Metroid Mike 64 on Twitter, just built a full-on 2D Mario game inside Super Mario Maker 2 complete with 40 levels and eight worlds.

Looking at the gameplay shared on Twitter is enough to make me want to break out my SNES, or at least buy Super Mario Maker 2 so I can play this epic retro revamp.


R
External Link
Russell BrandomSep 26
The US might still force TikTok into a data security deal with Oracle.

The New York Times says the White House is still working on TikTok’s Trump-era data security deal, which has been in a weird limbo for nearly two years now. The terms are basically the same: Oracle plays babysitter but the app doesn’t get banned. Maybe it will happen now, though?


R
Youtube
Richard LawlerSep 26
Don’t miss this dive into Guillermo del Toro’s stop-motion Pinocchio flick.

Andrew Webster and Charles Pulliam-Moore covered Netflix’s Tudum reveals (yes, it’s going to keep using that brand name) over the weekend as the streamer showed off things that haven’t been canceled yet.

Beyond The Way of the Househusband season two news and timing information about two The Witcher projects, you should make time for this incredible behind-the-scenes video showing the process of making Pinocchio.


E
External Link
Emma RothSep 26
Netflix’s gaming bet gets even bigger.

Even though fewer than one percent of Netflix subscribers have tried its mobile games, Netflix just opened up another studio in Finland after acquiring the Helsinki-based Next Games earlier this year.

The former vice president of Zynga Games, Marko Lastikka, will serve as the studio director. His track record includes working on SimCity BuildIt for EA and FarmVille 3.


A
External Link
Vietnam’s EV aspirant is giving big Potemkin village vibes

Idle equipment, absent workers, deserted villages, an empty swimming pool. VinFast is Vietnam’s answer to Tesla, with the goal of making 1 million EVs in the next 5-6 years to sell to customers US, Canada and Europe. With these lofty goals, the company invited a bunch of social media influencers, as well as some auto journalists, on a “a four-day, multicity extravaganza” that seemed more weird than convincing, according to Bloomberg.


J
James VincentSep 26
Today, 39 years ago, the world didn’t end.

And it’s thanks to one man: Stanislav Petrov, a USSR military officer who, on September 26th, 1983, took the decision not to launch a retaliatory nuclear attack against the US. Petrov correctly guessed that satellite readings showing inbound nukes were faulty, and so likely saved the world from nuclear war. As journalist Tom Chivers put it on Twitter, “Happy Stanislav Petrov Day to those who celebrate!” Read more about Petrov’s life here.


Soviet Colonel who prevented 1983 nuclear response
Photo by Scott Peterson/Getty Images