
A camera with no lens? No way!
Learn the science of how a camera works by building your own pin-hole lenses and using them to shoot your own film!
So you want to build a camera?
Why. Hi there? I hear you want to build your own camera? That's great and, if you wanted to go fully analogue, like back in the old days, you could totally do that. Digital cameras are hard to build at home though, but they are great for being able to see results instantly.
You can totally build out the optics yourself though, and once your on top of that, you can get some photographic film and a dark room so you can build out the rest of the camera.
So, how about you go grab a digital camera and we get started? Deal? Great!
Just make sure you grab a camera with a removeable lens, 'cos otherwise, whoever owns the camera might not be too happy when you break the lens off; broken glass is also a bummer !
It should look like this:

If it's a mirrorless camera you'll be able to see the sensor. If it's an older DSLR (Digital Single-Lens Reflex) you'll see a mirror inside and the sensor will be behind that. The sensor is the part of the camera that is sensitive to light; it convert the light it sees into a digital picture that you can view on your computer. Try not to touch it or get it dirty!
You need your camera set up so that it displays whatever the sensor sees directly on the back screen. Some cameras will just do that automatically. Others, (e.g. Canon DSLRs) may complain that the lens is missing. Often you can just click past the warning and it will just work.
Who needs a lens anyway?
When you look at a camera, what do you see? The lens, right? That big piece unblinking piece of glass that stares you down when you're trying to record a Tiktok. Even your camera phone has a lens, although it's much smaller. If you think about a camera, I bet the first thing you think of is the lens, right?
So, what would you say if I told you that, strictly speaking, the lens is completely unnecessary? You definitely need something to capture the image: the digital sensor or a piece of photographic film. But you don't actually need a lens. Crazy, right?
So, step one. Let's just take the lens off, and see what happens. Best way to figure out what it does is to see what happens without it, right?
Take off the lens and hold the camera up and try to film something. What do you see on the screen? You probably see something like this:

The sensor is sensitive to light and, with nothing in front of it, all the light reflected off our scene is landing directly on the sensor. The sensor is so sensitive, that every part of the sensor is receiving more than the maximum amount of light it can record, and so we just get a white screen.
What we want is for light from one part of our scene to only land on one part of the sensor. For example, imagine that there is a single red flower in our scene. If we're going to see a red flower in our image, then the red light that the flower is reflecting must arrive at the sensor only at the place where the flower will be in our image. But, at the moment, it's not the case. Light from the flower is hitting every part of the sensor.
You can see this happending in the first two slides of the animation below.
Pin hole to the rescue!
So, what happens if we put some alluminium foil with a pin-hole in front of our sensor? Well… the foil blocks most of the light from our scene; so, it will be a lot darker inside the camera and the sensitive sensor won't be overwhelmed with light. But, more importantly, it will only allow light from the red flower to strike the sensor in one place. Any red light reflected towards other parts of the sensor will be blocked by the foil.
You can see how this works in slide 3 of the animation. Now the light from the red and white flowers is separated and is falling on different parts of the sensor.
Try it yourself!
Why don't you try it for yourself? All you need is…
- A sheet of alluminium cooking foil
- A pin; the thinner the better
- Some tape to fix the foil over the camera
- A digital camera with a removable lens
Make as small a hole as you can in the foil and use the tape to stick it over the opening in the camera so that no light leaks through; be careful not to touch the sensor or get anything on it. It should look like this:

Now, go outside and turn your camera on. This is best on a bright sunny day around noon. Do you see anything? The image will be very dark, so turn your camera up to the maximum ISO setting. “ISO” controls how sensitive the camera is to light, you want to set this to maximum and then reduce it if the image is too bright.
If you don't see anything on the screen, then it may be that you don't have the ISO turned up enough or the maximum ISO of the camera isn't high enough. To check, try pointing your camera at something bright like a light bulb (not the sun!). You see an image of the light bulb, even if everything else is dark.
Congratulations! You have just built your own “lens” ! I bet that was easier than you were expecting.
Can I make different types of pin-hole “lens” ?
Yes! The biggest difference between one lens and another is the length. Some are really short and others are very long. Compare these two!

What difference does the length of the lens make? Take a look at the interactive animation below. You can change the distance between the camera sensor and the pin-hole by dragging the slider…
Can you see that, as the lens barrel gets longer, the closer to parallel the light rays have to be to reach the sensor? That means the only the central part of the scene is visible and the image of the pumpkin gets larger. If you make the lens barrel as long as it can be, then only the area between the pumpkins eyes is visible. If you make it as short as possible, then the pumpkin is tiny.
You can do this yourself by finding a tube that you can put can tape to the front of the camera and then taping the foil with the pin-hole over the end of it. If the tube is at all shiny or a light colour, make sure to line it with some black suger paper. Otherwise, light will reflect off the sides and mess up the image.
Be careful not to make the tube too long though. The longer it is, the darker the image will get, so you may not be able to see anything if you make it too long! Here's one we made out of a coffee tin. We drilled a hole in one end, which we covered with foil. The hole isn't too large, so we can patch it with some tape and put the tin back into service in the kitchen when we've finished with it.

Over to you!
So, now you know how to build you own lens! What else could you make a lens out of? What's the longest lens you can make and still get an image from it? Don't you think it's wild that you can build your own lens with nothing more than a tube and some foil?? 🤯🤯